예제 #1
0
def play():
	
	print("\n ----- Playing the game -----\n")

	env = Environment(wrap = WRAP, 
					  grid_size = GRID_SIZE, 
					  rate = 100, 
					  tail = TAIL,
					  action_space = 3)

	env.play()
예제 #2
0
def play():

    env = Environment(wrap=True,
                      grid_size=10,
                      rate=100,
                      tail=True,
                      action_space=3,
                      food_count=1,
                      obstacle_count=0,
                      multiplier_count=0,
                      map_path=None)  #sets up envirnnment

    env.play()  #allows user to play
예제 #3
0
def play():
    print("\n ----- Playing the game -----\n")

    GRID_SIZE = 50

    MAP_PATH = "./Maps/Grid{}/map4.txt".format(GRID_SIZE)

    env = Environment(wrap=True,
                      grid_size=GRID_SIZE,
                      rate=100,
                      tail=False,
                      food_count=1,
                      obstacle_count=15,
                      multiplier_count=0,
                      action_space=5,
                      map_path=MAP_PATH)

    env.play()