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