It is currently Wed Jun 19, 2013 10:24 pm Advanced search

Python Tournament Engine

Random stuff about the contest, posts that don't fit in the other forums.

Re: Python Tournament Engine

Postby nneonneo » Thu Feb 04, 2010 7:54 am

New packages posted! Have a peek at the changelog and grab the newest versions on the first post.

Thanks to joeyjoejoe for the "gauntlet" suggestion: it's been implemented as the "-u" flag in tournament.py, so you can give your bots different IDs and pick which ones should participate in each match.
nneonneo
Captain
 
Posts: 26
Joined: Sun Jan 31, 2010 5:39 am

Re: Python Tournament Engine

Postby amstan » Thu Feb 04, 2010 7:55 am

wasn't this already implemented? i remember using it since tuesday
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 692
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: Python Tournament Engine

Postby nneonneo » Thu Feb 04, 2010 8:00 am

It was: I've tweaked it so the selected bot is always first player (and hence always the same colour) -- this is the same fix that I applied to your version.
nneonneo
Captain
 
Posts: 26
Joined: Sun Jan 31, 2010 5:39 am

Re: Python Tournament Engine

Postby amstan » Thu Feb 04, 2010 8:06 am

But i want lightbot to be blue! not red!
Blue is for good, red is for evil.

Are you trying to make ppl turn evil?
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 692
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: Python Tournament Engine

Postby nneonneo » Thu Feb 04, 2010 8:11 am

amstan wrote:But i want lightbot to be blue! not red!
Blue is for good, red is for evil.

Are you trying to make ppl turn evil?


Yes. Yes I am. :twisted:

(colour definitions live at the top of round.py; you can only use combinations of RED, GREEN and BLUE, since that is all the terminal supports. Go nuts.)
nneonneo
Captain
 
Posts: 26
Joined: Sun Jan 31, 2010 5:39 am

Re: Python Tournament Engine

Postby m3lawren » Mon Feb 08, 2010 1:17 am

Running "round.exe --help" on Win7 gives me the following error:

Code: Select all
Warning: System does not support alarm(); timeouts will not be strictly enforced.
Traceback (most recent call last):
  File "round.py", line 221, in <module>
  File "optparse.pyc", line 1387, in parse_args
  File "optparse.pyc", line 1427, in _process_args
  File "optparse.pyc", line 1502, in _process_long_opt
  File "optparse.pyc", line 774, in process
  File "optparse.pyc", line 796, in take_action
  File "optparse.pyc", line 1657, in print_help
LookupError: unknown encoding: cp437
m3lawren
Cadet
 
Posts: 2
Joined: Mon Feb 08, 2010 1:11 am

Re: Python Tournament Engine

Postby nneonneo » Mon Feb 08, 2010 2:01 am

m3lawren wrote:Running "round.exe --help" on Win7 gives me the following error:

Code: Select all
Warning: System does not support alarm(); timeouts will not be strictly enforced.
Traceback (most recent call last):
  File "round.py", line 221, in <module>
  File "optparse.pyc", line 1387, in parse_args
  File "optparse.pyc", line 1427, in _process_args
  File "optparse.pyc", line 1502, in _process_long_opt
  File "optparse.pyc", line 774, in process
  File "optparse.pyc", line 796, in take_action
  File "optparse.pyc", line 1657, in print_help
LookupError: unknown encoding: cp437


Thanks for noticing this. I've uploaded new packages: can you verify that it is fixed?
nneonneo
Captain
 
Posts: 26
Joined: Sun Jan 31, 2010 5:39 am

Re: Python Tournament Engine

Postby m3lawren » Mon Feb 08, 2010 2:30 am

Seems to be working fine now, thanks.
m3lawren
Cadet
 
Posts: 2
Joined: Mon Feb 08, 2010 1:11 am

Re: Python Tournament Engine

Postby 0x000000 » Wed Feb 10, 2010 8:49 am

Can somebody tell me what the "nullwins" and "nulllosses" values mean?
0x000000
Cadet
 
Posts: 2
Joined: Tue Feb 09, 2010 8:41 am

Re: Python Tournament Engine

Postby nneonneo » Wed Feb 10, 2010 1:39 pm

nulllosses is the number of times that a contestant fails (prints bad output, exits early, spends too long on a move, or some other problem). nullwins is the number of times that a contestant won because the other player failed.
nneonneo
Captain
 
Posts: 26
Joined: Sun Jan 31, 2010 5:39 am

PreviousNext

Return to Misc

Who is online

Users browsing this forum: No registered users and 1 guest