From ace2ce54a4e947250dfbab0a14ef039f9c4db147 Mon Sep 17 00:00:00 2001 From: James Tocknell Date: Fri, 19 Sep 2014 17:46:11 +1000 Subject: Fixed capturer --- capturer.py | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'capturer.py') diff --git a/capturer.py b/capturer.py index 7a698ee..54b0be6 100644 --- a/capturer.py +++ b/capturer.py @@ -46,19 +46,7 @@ class CaptureSpawns(object): return results if __name__ == '__main__': -# random.seed(42) - map_ = robots.border_map(40, 30, 0) - - add_spawns(map_, 300, 'X') - add_spawns(map_, 20, '+') - - for y in range(20): - map_[y][20] = 'X' - - add_spawns(map_, 6) - - game = robots.Game(map_) - game.add_bot(CaptureSpawns(variance=0), 'Alice') - game.add_bot(CaptureSpawns(variance=0.01), 'Bob') - viewer = robots.CursesViewer(game) - viewer.run() + server = robots.Server() + server.SERVER_NAME = 'Capturer Server' + server.add_bot(CaptureSpawns, 'Capture') + server.run() -- cgit v1.2.3