Commit 79d4048d authored by Fardale's avatar Fardale

prout

parent 592bddd4
......@@ -150,9 +150,10 @@ 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)}
......@@ -239,7 +240,7 @@ class Demineur {
propage(8,x,y)
false
case 9 =>
if(premierCoup){initialise; clique_action(x,y)}
if(premierCoup){initialise; clique_action(x,y); println("echec")}
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