chrono lié aux cases
This commit is contained in:
parent
0342d7e75c
commit
bf51bb0f0b
2 changed files with 3 additions and 2 deletions
|
@ -35,7 +35,7 @@
|
|||
|
||||
|
||||
</div>
|
||||
<button id="debut_game" class="game_button" onclick="chrono()">GO!</button>
|
||||
<!-- <button id="debut_game" class="game_button" onclick="chrono()">GO!</button>-->
|
||||
<button id="fin_game" class="game_button" onclick="reset()">CIAO</button>
|
||||
|
||||
<div id="popup" class="popup">
|
||||
|
|
|
@ -13,7 +13,7 @@ class Case_grille {
|
|||
|
||||
let grille = [];
|
||||
let hauteur = 7;
|
||||
let largeur = 14;
|
||||
let largeur = 7;
|
||||
let number_mines = 10 ;
|
||||
let first_click = true ;
|
||||
|
||||
|
@ -134,6 +134,7 @@ function selectImage(idCase) {
|
|||
if (first_click) {
|
||||
creerGrille(hauteur,largeur,number_mines,x,y) ;
|
||||
first_click = false ;
|
||||
chrono() ;
|
||||
}
|
||||
|
||||
if (grille[y][x] == 0) {
|
||||
|
|
Loading…
Reference in a new issue