update, need help with man.py generate_new_snack

This commit is contained in:
Chris Mekelburg
2024-12-04 21:45:52 -05:00
parent cf8eefcb8b
commit 729e1085ee
10 changed files with 61 additions and 17 deletions

View File

@@ -1,19 +1,19 @@
from retro.game import Game
from board import Board
from score import num_mines
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)
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)
)
#print(board.get_agents())
print(len(board.get_agents(10,10)))
game.play()