Commit 079ac989 authored by Julian Rudolf's avatar Julian Rudolf
Browse files

+ snake_logic

  contains only logic from snake game, works with shield
parent 0942632a
import gym
from gym import error, spaces, utils
from gym.utils import seeding
import Agent.snake_logic as logic
import Agent.snake_logic_old as logic
observation_map = [30, 30]
......
......@@ -623,7 +623,7 @@ def get_shield(crash_prob_queue, snake_player, snake_enemy, count=0, recalc=Fals
# and reset prism string and parameters
s = snake_player.copy()
_, dist = edges[s.edges[0]]
if recalc:
if recalc and False:
print("num of steps: " + str(dist - s.dist + 1) + " count: " + str(count))
for i in range(dist - s.dist + 1):
s.step()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment