diff --git a/__pycache__/free_space.cpython-312.pyc b/__pycache__/free_space.cpython-312.pyc index 83010ca..e02ba76 100644 Binary files a/__pycache__/free_space.cpython-312.pyc and b/__pycache__/free_space.cpython-312.pyc differ diff --git a/__pycache__/mine.cpython-312.pyc b/__pycache__/mine.cpython-312.pyc index 86b998b..01360c8 100644 Binary files a/__pycache__/mine.cpython-312.pyc and b/__pycache__/mine.cpython-312.pyc differ diff --git a/__pycache__/spawner.cpython-312.pyc b/__pycache__/spawner.cpython-312.pyc new file mode 100644 index 0000000..9be4ae1 Binary files /dev/null and b/__pycache__/spawner.cpython-312.pyc differ diff --git a/free_space.py b/free_space.py index 1b1f182..97ed419 100644 --- a/free_space.py +++ b/free_space.py @@ -1,7 +1,9 @@ # free_space.py # ------------ # 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: character = '*' display = True diff --git a/mine.py b/mine.py index 4104325..9afcf62 100644 --- a/mine.py +++ b/mine.py @@ -2,6 +2,7 @@ # ------------ # By Cory # This module defines a mine agent class. It ends the game if enter is pressed while the cursor is over it. + class Mine: character = '_' diff --git a/minesweeper_game.py b/minesweeper_game.py index 92f3894..20ffe74 100644 --- a/minesweeper_game.py +++ b/minesweeper_game.py @@ -1,9 +1,10 @@ # minesweeper_game.py # ------------ # 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 mine_spawner import Spawner +from spawner import Spawner board_size = (9, 9) spawner = Spawner(board_size) diff --git a/mine_spawner.py b/spawner.py similarity index 99% rename from mine_spawner.py rename to spawner.py index eb66810..d1175da 100644 --- a/mine_spawner.py +++ b/spawner.py @@ -1,4 +1,4 @@ -# mine_spawner.py +# spawner.py # ------------ # By Cory # This module defines a spawner agent class. It spawns mines and then fills the remaining spots with free spaces