summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ward <peteraward@gmail.com>2011-05-27 17:04:59 +1000
committerPeter Ward <peteraward@gmail.com>2011-05-27 17:04:59 +1000
commite0962ffe58cd43534ebc98ee7e83f70b992855a8 (patch)
tree836f4f1d019dfa0289b899a11fc35af6c3b1cc3b
parent368a79abc1982615dc521e2128abd15ba1d28966 (diff)
Minor fixes.
-rw-r--r--snake.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/snake.py b/snake.py
index add6e62..89e97da 100644
--- a/snake.py
+++ b/snake.py
@@ -15,8 +15,9 @@ import traceback
from common import *
class SnakeEngine(object):
- def __init__(self, rows, columns, n_apples, wrap=False, results=False):
- super(SnakeEngine, self).__init__()
+ def __init__(self, rows, columns, n_apples, wrap=False, results=False,
+ *args, **kwargs):
+ super(SnakeEngine, self).__init__(*args, **kwargs)
self.wrap = wrap
self.bots = {}