generated from mwc/project_game
update, need help with man.py generate_new_snack
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user