Explain this.... in terms of using similar colors.
I can understand using similar colors to identify "mines", but there is quite a bit more to this than can be seen visually. I have the squares display how many mines are next to them, and to clear out all of the squares around them when you find a "blank" (or zero mines around that square). The trick here was to encode a non-recursive function that would clear out all of the blanks in a contiguous region.
While what I have works.... it is incredibly SLOW.
* Version 0.31 *
***IMPORTANT***
This is not yet complete, although it is a good demonstration on the use of a 2-Dimensional array.
When completed, this should be a Scratch version of the Windows "Minesweeper" game.
"Reset" the game by pressing the Green flag.
The object of this game is to try and click on every square that does *not* have a bomb or a mine.
The mine field is currently "fixed" until a later release.
Comments
You need to be logged in to post comments
Add a Comment
Nice game! If you are interested in building and battleing your own scratch bots go to scratch robotic combat.
(view all replies)Comment Reply
i set mines to 0 and i still lost by clicking on one
(view all replies)Comment Reply
This game needs a lot of work
(view all replies)Comment Reply
what's th red thing in th corner
(view all replies)Comment Reply
At one point in the game the Squares Left variable said -8.
(view all replies)Comment Reply
Once finished, this will be a useful demo of the 2D array. I've tagged this to keep an eye on. I look forward to the final version.
(view all replies)Comment Reply
Explain this.... in terms of using similar colors. I can understand using similar colors to identify "mines", but there is quite a bit more to this than can be seen visually. I have the squares display how many mines are next to them, and to clear out all of the squares around them when you find a "blank" (or zero mines around that square). The trick here was to encode a non-recursive function that would clear out all of the blanks in a contiguous region. While what I have works.... it is incredibly SLOW.
(view all replies)Comment Reply
another way to do it is to use similar colors
(view all replies)Comment Reply