This site requires JavaScript, please enable it in your browser!
Greenfoot back
Tronkex
Tronkex wrote ...

2021/1/4

Win screen for minesweeper

Tronkex Tronkex

2021/1/4

#
So I dont really know how I should check if the game is won. My idea was that I have a function that returns true if all objects (tile.class) in the game have either the string "flaggedBomb" or "open". But I dont know how to realize it.
danpost danpost

2021/1/4

#
Tronkex wrote...
So I dont really know how I should check if the game is won. My idea was that I have a function that returns true if all objects (tile.class) in the game have either the string "flaggedBomb" or "open". But I dont know how to realize it.
The flagged bomb count should equal flag count AND the sum of that and open count should be total cell count (width times height).
You need to login to post a reply.