Commit 617bd8ec authored by Fardale's avatar Fardale
Browse files

Merge branch 'master' of gitlab.crans.org:arrighi/prog2

parents 02d8ba52 f63c5f6f
...@@ -238,26 +238,7 @@ class Demineur { ...@@ -238,26 +238,7 @@ class Demineur {
c_restantes -= 1 c_restantes -= 1
propage(8,x,y) propage(8,x,y)
false false
case 9 => case 9 => for (i <- 0 to (tailleX-1)) {
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)) {
for (j <- 0 to (tailleY-1)) { for (j <- 0 to (tailleY-1)) {
if (champ(i)(j) == 9) { if (champ(i)(j) == 9) {
boutons(i)(j).icon = new ImageIcon(getClass.getResource("case_mine.png")) boutons(i)(j).icon = new ImageIcon(getClass.getResource("case_mine.png"))
...@@ -267,7 +248,6 @@ class Demineur { ...@@ -267,7 +248,6 @@ class Demineur {
} }
} }
true 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