almost done, just one issue with display score

This commit is contained in:
Chris Mekelburg
2024-12-11 22:34:22 -05:00
parent 5980c6bb22
commit 60a4069e87
11 changed files with 70 additions and 137 deletions

View File

@@ -1,18 +1,18 @@
from retro.game import Game
from board import Board
'''This contains the main info for setting up and running the game.'''
width = 25
height = 25
state= {"Score":0}
score = state["Score"]
state= {"Score":00}
num_snacks = 10
board = Board(width,height,num_snacks)
board = Board(width,height,num_snacks,state) #sets the original board
game = Game(
board.get_agents(num_snacks),
board.get_agents(num_snacks,state),
state,
board_size = (width, height),debug=True
)
game.play()
#print(board.num_mines)
game.play()