generated from mwc/project_game
trying to import state to help me determine the
number of mines
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
from retro.game import Game
|
||||
from board import Board
|
||||
from minecounter import num_mines
|
||||
|
||||
|
||||
width = 25
|
||||
height = 25
|
||||
state= {"Score":0}
|
||||
score =state["Score"]
|
||||
score = state["Score"]
|
||||
num_snacks = 10
|
||||
num_mines = num_mines(score)
|
||||
board = Board(width,height,num_snacks,num_mines)
|
||||
board = Board(width,height,num_snacks)
|
||||
|
||||
game = Game(
|
||||
board.get_agents(num_snacks, num_mines),
|
||||
board.get_agents(num_snacks),
|
||||
state,
|
||||
board_size = (width, height),debug=True
|
||||
)
|
||||
game.play()
|
||||
game.play()
|
||||
#print(board.num_mines)
|
||||
Reference in New Issue
Block a user