From 7daa5284f9eddf6d4b4e7838919e80ce25324bb0 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Sun, 25 Sep 2022 00:10:13 +1000 Subject: Lots of changes! --- simple.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 simple.py (limited to 'simple.py') diff --git a/simple.py b/simple.py deleted file mode 100644 index 1ff37f2..0000000 --- a/simple.py +++ /dev/null @@ -1,19 +0,0 @@ -import random -import sys - -import robots - -def random_walk(whoami, state): - my_robots = state.robots_by_player[whoami] - return ''.join( - random.choice('ULDRP') - for _ in range(len(my_robots)) - ) - -if __name__ == '__main__': - name, = sys.argv[1:] - server = robots.Server() - server.SERVER_NAME = name - server.add_simple_bot(random_walk, 'Bot1') - server.add_simple_bot(random_walk, 'Bot2') - server.run() -- cgit v1.2.3