Minor changes

This commit is contained in:
Loic Guegan 2022-11-01 23:40:05 +01:00
parent 48d8b7bfd5
commit 59ed0cdf73
2 changed files with 2 additions and 8194 deletions

View file

@ -32,7 +32,7 @@ qtable=np.zeros((2**13, 4))
game=Snake(length=50,fps=200,startat=(10,10))
game=Snake(length=1,fps=200,startat=(10,10))
def isWall(h,game):
if h[0]<0 or h[1]<0 or h[0] >= game.grid_width or h[1] >= game.grid_height:
@ -97,7 +97,7 @@ def event_handler(game,event):
reward=-10
attempt=0
elif event==1:
reward=1
reward=5
attempt=0
# This come from me I do not now if it is the best way to identify a state

8192
qtable.txt

File diff suppressed because it is too large Load diff