generated from mwc/project_game
19 lines
390 B
Python
19 lines
390 B
Python
from retro.game import Game
|
|
from board import Board
|
|
|
|
width = 25
|
|
height = 25
|
|
num_snacks = 10
|
|
num_mines = 10
|
|
board = Board(width,height,num_snacks,num_mines)
|
|
score = 0
|
|
state= {"Score":0}
|
|
#man = Man(board_size)
|
|
game = Game(
|
|
board.get_agents(num_snacks, num_mines),
|
|
state,
|
|
board_size = (width, height)
|
|
)
|
|
#print(board.get_agents())
|
|
print(len(board.get_agents(10,10)))
|
|
game.play() |