project_game/gamefiles/nav_game.py

19 lines
360 B
Python

from retro.game import Game
from board import Board
from score 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)
)
game.play()