Fixed bug in simulate.py + hacky fix for bug in vixen
authorSam Moore <matches@ucc.asn.au>
Fri, 2 Mar 2012 15:47:24 +0000 (23:47 +0800)
committerSam Moore <matches@ucc.asn.au>
Fri, 2 Mar 2012 15:47:24 +0000 (23:47 +0800)
commit9e4bc3c0b49f5e2796a62c8fa91fe0ec78d96af2
tree9f9b913da88a94c5cab4ccc87356a2f8b1bda7cc
parente73b3387632709982d8586bb34c62db186740e58
Fixed bug in simulate.py + hacky fix for bug in vixen

simulate.py wasn't setting the "gameID" variable correctly,
meaning all games were logged to "red.vs.blue.1.1"

Bug in vixen found by [SLX]; it attempts to move outside the board.
Usually when losing.

Path finding algorithm (path.py) shouldn't move outside the board.
But somehow it is.

Hacky fix at the moment by checking for moves outside the board in
vixen's score calculation, and allocating -100 to these moves.
agents/vixen/vixen.py
judge/simulator/simulate.py

UCC git Repository :: git.ucc.asn.au