Commit Graph

5 Commits

Author SHA1 Message Date
Cory 8e54c5fe12 Okay... I don't know why it doesn't work when
the mines can be hidden, so I have a janky
workaround. You might have to try moving the
cursor multiple times but at least now it actually
works. Next step, add flagging!!!!
2024-05-19 02:33:51 -04:00
Cory f0e166d6bd I somehow uncommented something by accident!
I recommented it.
2024-05-18 22:46:21 -04:00
Cory 71e22504ab I made everything spawn on turn 1 using the
Spawner class. When you press enter, you're told
if the space is clear or is a mine, in which
case you lose. Next step is to reveal the numbers.
2024-05-18 21:59:57 -04:00
Cory 3334db0c8b Figured out how to spawn a mine and end the game
if the cursor is over the mine. We now have to
not end the game until the user SELECTS the space
the mine is at. I hadn't realized that is_empty
only works if display is True? So I moved the
game.end() to the mine class.
2024-05-18 21:03:33 -04:00
Cory cff4129336 Installed retro and got a cursor that moves...
Need to do:
-Populate 10 mines randomly
-Have the game end when a mine is selected (figure
out how to select something)
-Figure out an algorithm to reveal squares
-Figure out how to show numbers in revealed
squares
-Add flag functionality?
2024-05-18 20:24:36 -04:00