I somehow uncommented something by accident!

I recommented it.
This commit is contained in:
Cory 2024-05-18 22:46:21 -04:00
parent e615e99e75
commit f0e166d6bd
7 changed files with 8 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,9 @@
# free_space.py # free_space.py
# ------------ # ------------
# By Cory # By Cory
# This module defines a free space agent class. It displays if enter is pressed while the cursor is on it. # This module defines a free space agent class. It displays itself and (eventually)
# its neighbors if enter is pressed while the cursor is on it.
class FreeSpace: class FreeSpace:
character = '*' character = '*'
display = True display = True

View File

@ -2,6 +2,7 @@
# ------------ # ------------
# By Cory # By Cory
# This module defines a mine agent class. It ends the game if enter is pressed while the cursor is over it. # This module defines a mine agent class. It ends the game if enter is pressed while the cursor is over it.
class Mine: class Mine:
character = '_' character = '_'

View File

@ -1,9 +1,10 @@
# minesweeper_game.py # minesweeper_game.py
# ------------ # ------------
# By Cory # By Cory
# This class implements a simple minesweeper game on a 9x9 gird. # This class implements a simple minesweeper game on a 9x9 grid.
from retro.game import Game from retro.game import Game
from mine_spawner import Spawner from spawner import Spawner
board_size = (9, 9) board_size = (9, 9)
spawner = Spawner(board_size) spawner = Spawner(board_size)

View File

@ -1,4 +1,4 @@
# mine_spawner.py # spawner.py
# ------------ # ------------
# By Cory # By Cory
# This module defines a spawner agent class. It spawns mines and then fills the remaining spots with free spaces # This module defines a spawner agent class. It spawns mines and then fills the remaining spots with free spaces