A physical Minesweeper implementation built for Adafruit NeoTrellis powered by an Arduino (tested using Uno).
Instead of numbers being used to represent the number of bombs in neighbouring cells, colours are used. The colours are as follows:
- Blue
- Green
- Pink
- Cyan
- Brown(ish)
- Blue (less on)
- Yellow
- Red
- Tap a cell to reveal it
- Hold a cell and release to flag/unflag
- Tap a coloured cell to clear all it's neighbours
- Built using the Adafruit seesaw library.
- Refactor to use OOP?
- Code is currently a bit of a mess
- Would be nice to have rendering logic etc. contained within a class so that more complex visual state could be held. I'm thinking pulsing colours.
- Create reusable iterator logic for neighbours
- Difficulty selection
- Restart without hard reset
- Sound
- Choose better colours
- Colours for 1, 2, & 3 are okay, but the others aren't great.
Press a coloured square to clear neighbours- Explosion animation?
- Timed mode?
- Have the board (or maybe just flags) flash faster to indicate time left
- Would make the smaller game board a little more fun
- Test with larger NeoTrellis configuration (only tested with 2x2 NeoTrellis')
