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
|
# 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
|
||||||
|
|||||||
1
mine.py
1
mine.py
@@ -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 = '_'
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user