diff options
Diffstat (limited to 'QTable/qtsnake.py')
-rwxr-xr-x | QTable/qtsnake.py | 2 |
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, |