jlefkoff / GridBoard

a project to use an LED matrix for grid based games for the '21 Interactive art installations winterm
MIT License
0 stars 1 forks source link

Minesweeper Icons #12

Closed gsalaman closed 3 years ago

gsalaman commented 3 years ago

We've got minesweeper icons for "1", "2", and "3", but I think it's possible to have up to "8" (in a diabolical case).

May want to assign this to one of the "game design" members if any are interested in still creating icons...

Note...wasn't sure whether to flag this as a "bug" or "feature request"; chose "bug" as it's missing functionality.

jlefkoff commented 3 years ago

The highest theoretical number we need on an 8x8 grid is a 4. Which is a dark blue (see here)

gsalaman commented 3 years ago

What about this board situation, where x shows a bomb, and I'm using dashes for "no bomb around":

x x x 2 - - - -
x 8 x 3 - - - -
x x x 2 - - - -
2 3 2 1 - - - -
- - - - - - - - 
...

(yes, it's diabolical....)

And thought my way through the MS logic...it's actually not that bad. May be a good excuse to run through "HLD/LLD"...

jlefkoff commented 3 years ago

That is technically correct, yes. What we should avoid is "hidden" bombs with no neighboring number as discussed in this question

gsalaman commented 3 years ago

Ah...okay. That leads to the question: "what are the requirements on our board?" Sounds like we've got at least three:

In any event, we're still missing the "4" png...

gsalaman commented 3 years ago

Added 4 and 5. We'll respin the board if there are more than 5 touching a given square.