summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ward <pwar3236@usyd.edu.au>2010-01-05 06:56:13 +1100
committerPeter Ward <pwar3236@usyd.edu.au>2010-01-05 06:56:13 +1100
commitf788bdcf63d14dd97f0802391b0676ca84c900ce (patch)
tree9d98fbf8ef0ab30ee573fadf9eeff4cf723feb25
parent62527ef65ec78124f97426ba1e7f44fafe1be134 (diff)
Renamed old bots to process bots.
-rwxr-xr-xbots/peter.py (renamed from oldbots/peter.py)0
-rwxr-xr-xbots/peter_smart.py (renamed from oldbots/peter_smart.py)0
-rwxr-xr-xbots/peter_smart2.py (renamed from oldbots/peter_smart2.py)0
-rwxr-xr-xconsole_snake.py4
-rw-r--r--processbot.py (renamed from oldbot.py)0
-rwxr-xr-xpygame_snake.py4
-rwxr-xr-xpyglet_snake.py13
7 files changed, 9 insertions, 12 deletions
diff --git a/oldbots/peter.py b/bots/peter.py
index 72bbc95..72bbc95 100755
--- a/oldbots/peter.py
+++ b/bots/peter.py
diff --git a/oldbots/peter_smart.py b/bots/peter_smart.py
index b099cdd..b099cdd 100755
--- a/oldbots/peter_smart.py
+++ b/bots/peter_smart.py
diff --git a/oldbots/peter_smart2.py b/bots/peter_smart2.py
index 8f431ca..8f431ca 100755
--- a/oldbots/peter_smart2.py
+++ b/bots/peter_smart2.py
diff --git a/console_snake.py b/console_snake.py
index 8c327e5..3c40b24 100755
--- a/console_snake.py
+++ b/console_snake.py
@@ -59,14 +59,14 @@ class ConsoleSnakeEngine(SnakeEngine):
def main(*args):
from bots import *
- from oldbot import BotWrapper
+ from processbot import BotWrapper
game = ConsoleSnakeEngine(25, 25, 50)
game.add_bot(right_bot)
game.add_bot(random_bot)
game.add_bot(random_bounds_bot)
game.add_bot(random_square_bot)
- game.add_bot(BotWrapper('oldbots/peter.py'))
+ game.add_bot(BotWrapper('bots/peter.py'))
game.run()
if __name__ == '__main__':
diff --git a/oldbot.py b/processbot.py
index 3bd3038..3bd3038 100644
--- a/oldbot.py
+++ b/processbot.py
diff --git a/pygame_snake.py b/pygame_snake.py
index 64faf9b..6ee0eeb 100755
--- a/pygame_snake.py
+++ b/pygame_snake.py
@@ -138,7 +138,7 @@ class PygameSnakeEngine(SnakeEngine):
if __name__ == '__main__':
from bots import *
- from oldbot import BotWrapper
+ from processbot import BotWrapper
ROWS = 25
COLUMNS = 25
@@ -150,7 +150,7 @@ if __name__ == '__main__':
game.add_bot(random_bot)
game.add_bot(random_bounds_bot)
game.add_bot(random_square_bot)
- game.add_bot(BotWrapper('oldbots/peter.py'))
+ game.add_bot(BotWrapper('bots/peter.py'))
game.run()
game.new_game(ROWS, COLUMNS, APPLES)
diff --git a/pyglet_snake.py b/pyglet_snake.py
index 79ae047..2ef11a8 100755
--- a/pyglet_snake.py
+++ b/pyglet_snake.py
@@ -109,15 +109,12 @@ class PygletSnakeEngine(SnakeEngine, pyglet.window.Window):
if __name__ == '__main__':
from bots import random_bounds_bot, random_square_bot
- from oldbot import BotWrapper
- from peter_bot import peter_bot
+ from processbot import BotWrapper
game = PygletSnakeEngine(25, 25, 50, results=True)
-# game.add_bot(random_bounds_bot)
-# game.add_bot(random_square_bot)
- for i in xrange(0):
- game.add_bot(BotWrapper('oldbots/peter.py'))
- for i in xrange(1):
- game.add_bot(peter_bot)
+ game.add_bot(random_bounds_bot)
+ game.add_bot(random_square_bot)
+ for i in xrange(2):
+ game.add_bot(BotWrapper('bots/peter.py'))
game.run()