Heidi Wang

Minesweeper

project

Play the game!

I had coded Minesweeper in Java in the console in 2022, and I had always wanted to add a more fleshed out visual interface to it. With this project, I also added a separate game controller, which is always nice to have to be able to play with a dedicated input device.

Game Description

Plays a modified version of minesweeper.

Takes inputs from keyboard and from Arduino through serial comm

Development Notes

Operation

win
cannot dig when flagged, lose, restart
win after lose
restart and win with keyboard, 4x speed

Web

Code

link to code file

States

web
starting state
web
win state
web
lose state
web
win-after-lose state

Circuit and Firmware

Schematic

schematic

Instead of the built in GND and 5V pins, I used pin 11 and pin 10, which were adjacent to the input pin 9, so the wiring would be more secure inside the product casing.

Circuit

circuit
circuit
circuit in product
in casing

Code

link to code file