Add a list of names to pick from. Refactor a bit to allow different simulator stages.

Create a bunch of random bots.
This commit is contained in:
Marco Pesenti Gritti
2006-10-09 18:03:35 +02:00
parent 386dbe7123
commit c9b5381c16
7 changed files with 29 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/python
import sys
result = '_nick_names = [\n'
nicks_file = open(sys.argv[1], 'r')
for line in nicks_file.readlines():
name = line.strip()
result += '\'%s\', ' % (name)
result += ']'
nicks_file.close()
print result