diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-11-01 15:09:08 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-11-01 15:09:08 +0100 |
| commit | 4f113282d7a709790854f8194b6c9c77f2f164b3 (patch) | |
| tree | a2b3723e5304a396aa399290a9abd90d7fd6b10e /qlearning.py | |
| parent | a417a3054c1ce54a5ff2866848797c1610f2202d (diff) | |
Minor changes
Diffstat (limited to 'qlearning.py')
| -rwxr-xr-x | qlearning.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qlearning.py b/qlearning.py index 797e2a9..5cb3d8a 100755 --- a/qlearning.py +++ b/qlearning.py @@ -39,7 +39,7 @@ def isWall(h,game): return(False) -def event_handler(game): +def event_handler(game,event): h=game.snake[0] left=(h[0]-1,h[1]) right=(h[0]+1,h[1]) |
