pwmarcz / kaboom

Cruel but fair Minesweeper clone
https://pwmarcz.pl/kaboom
MIT License
210 stars 18 forks source link

Lowlights solved tiles in countdownMode #21

Open misterperson opened 4 years ago

misterperson commented 4 years ago

I wanted to generalize this to outside of countdown mode, too, but I added a lowlight effect to solved tiles, an effect Tametsi achieves even outside of countdown mode.

misterperson commented 4 years ago

The conditional that checks if a tile is solved can be simplified to checking if all neighbors of a tile are revealed or flagged instead of looping over 3 times to do some math