generated from mwc/project_game
I somehow uncommented something by accident!
I recommented it.
This commit is contained in:
Binary file not shown.
Binary file not shown.
BIN
__pycache__/spawner.cpython-312.pyc
Normal file
BIN
__pycache__/spawner.cpython-312.pyc
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
1
mine.py
1
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 = '_'
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user