generated from mwc/project_game
18 lines
318 B
Python
18 lines
318 B
Python
from retro.game import Game
|
|
from board import Board
|
|
|
|
|
|
width = 25
|
|
height = 25
|
|
state= {"Score":0}
|
|
score = state["Score"]
|
|
num_snacks = 10
|
|
board = Board(width,height,num_snacks)
|
|
|
|
game = Game(
|
|
board.get_agents(num_snacks),
|
|
state,
|
|
board_size = (width, height),debug=True
|
|
)
|
|
game.play()
|
|
#print(board.num_mines) |