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.
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).