Commit 261d140d authored by Fardale's avatar Fardale

reprout

parent 79d4048d
......@@ -150,10 +150,9 @@ class Demineur {
// Propagation du dévoilement des cases vides
def propage(c: Int, x: Int, y: Int){
if(premierCoup){premierCoup = false}
if(c == 0 || premierCoup){
if(premierCoup){premierCoup = false}
if (x > 0) {
if(boutons(x-1)(y).enabled && champ(x-1)(y) != 9){clique_action(x-1,y)}
......@@ -240,7 +239,7 @@ class Demineur {
propage(8,x,y)
false
case 9 =>
if(premierCoup){initialise; clique_action(x,y); println("echec")}
if(premierCoup){initialise; clique_action(x,y)}
else{
for (i <- 0 to (tailleX-1)) {
for (j <- 0 to (tailleY-1)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment