summaryrefslogtreecommitdiff
path: root/QTable
diff options
context:
space:
mode:
Diffstat (limited to 'QTable')
-rwxr-xr-xQTable/qtsnake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/QTable/qtsnake.py b/QTable/qtsnake.py
index 4b1eac7..55fda1b 100755
--- a/QTable/qtsnake.py
+++ b/QTable/qtsnake.py
@@ -70,7 +70,7 @@ class QSnake:
rewards[best_action] = float("inf")
yield best_action
- def pick_greedy_action(self, q, pid, epsilon):
+ def pick_greedy_action(self, q, pid, epsilon=0):
'''
given a q table, the id of the player
taking action, and a randomization factor,