Update #2, making some progress after being stuck

This commit is contained in:
Chris Mekelburg
2024-12-03 21:49:59 -05:00
parent b1541ddf77
commit cf8eefcb8b
15 changed files with 95 additions and 46 deletions

19
gamefiles/nav_game.py Normal file
View File

@@ -0,0 +1,19 @@
from retro.game import Game
from board import Board
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)
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()