generated from mwc/project_game
Resubmit commit 1
Re-wrote the player and board game because i kept getting stuck on creating the walls. There was an agent error so i needed to start from the begining again. I looked up resources online and used the tic tac toe and retro labs for help.
This commit is contained in:
25
escape_the_maze.py
Normal file
25
escape_the_maze.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from retro.game import Game
|
||||
from player import Player
|
||||
|
||||
def main():
|
||||
board_size = (100, 40)
|
||||
|
||||
player = Player(board_size)
|
||||
|
||||
state = {
|
||||
"win": False,
|
||||
}
|
||||
|
||||
game = Game(
|
||||
agents=[player],
|
||||
state=state,
|
||||
board_size=board_size,
|
||||
debug=False,
|
||||
framerate=24,
|
||||
color="white_on_black",
|
||||
)
|
||||
|
||||
game.play()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user