Commit f63c5f6f authored by Fardale's avatar Fardale

Impossible de prevenir d une mort directe

parent 628b04f4
......@@ -238,26 +238,7 @@ class Demineur {
c_restantes -= 1
propage(8,x,y)
false
case 9 =>
if(premierCoup){initialise; println("echec");
creation_boutons
renewbts
contents = new GridPanel(tx,ty) {
for (i <- 0 to (tx-1)) {
for (j <- 0 to (ty-1)) {
contents += bts(i)(j)
}
}
}
for (i <- 0 to (tx-1)) {
for (j <- 0 to (ty-1)) {
listenTo(bts(i)(j))
listenTo(bts(i)(j).mouse.clicks)
}
}
clique_action(x,y)}
else{
for (i <- 0 to (tailleX-1)) {
case 9 => for (i <- 0 to (tailleX-1)) {
for (j <- 0 to (tailleY-1)) {
if (champ(i)(j) == 9) {
boutons(i)(j).icon = new ImageIcon(getClass.getResource("case_mine.png"))
......@@ -267,7 +248,6 @@ class Demineur {
}
}
true
}
}
}
......
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