trying to import state to help me determine the

number of mines
This commit is contained in:
Chris Mekelburg
2024-12-10 21:36:09 -05:00
parent 947f9647ba
commit 5980c6bb22
5 changed files with 35 additions and 15 deletions

View File

@@ -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)