generated from mwc/project_game
almost done, just one issue with display score
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user