Updated test cases and made engine work correctly according to tests
authorJustin Worthe <justin@worthe-it.co.za>
Mon, 25 Jun 2018 18:26:05 +0000 (20:26 +0200)
committerJustin Worthe <justin@worthe-it.co.za>
Mon, 25 Jun 2018 18:26:05 +0000 (20:26 +0200)
commit286763000e4e5919c07f2840c64ecc7932530175
tree5d89610326de388ec1937f07a9562df85699fe9e
parent7bf7d8d977733cb02258b4a79faf2417c52e9323
Updated test cases and made engine work correctly according to tests

I don't think a tesla appeared in this match. I need to contrive a bot
to build one.
243 files changed:
src/engine/command.rs
src/engine/mod.rs
src/input/json.rs
src/strategy/monte_carlo.rs
tests/after_113/Round 003/OpponentCommand.txt [deleted file]
tests/after_113/Round 003/PlayerCommand.txt [deleted file]
tests/after_113/Round 005/PlayerCommand.txt [deleted file]
tests/after_113/Round 007/OpponentCommand.txt [deleted file]
tests/after_113/Round 008/OpponentCommand.txt [deleted file]
tests/after_113/Round 008/PlayerCommand.txt [deleted file]
tests/after_113/Round 009/OpponentCommand.txt [deleted file]
tests/after_113/Round 009/PlayerCommand.txt [deleted file]
tests/after_113/Round 010/OpponentCommand.txt [deleted file]
tests/after_113/Round 010/PlayerCommand.txt [deleted file]
tests/after_113/Round 011/OpponentCommand.txt [deleted file]
tests/after_113/Round 011/PlayerCommand.txt [deleted file]
tests/after_113/Round 012/OpponentCommand.txt [deleted file]
tests/after_113/Round 012/PlayerCommand.txt [deleted file]
tests/after_113/Round 013/OpponentCommand.txt [deleted file]
tests/after_113/Round 013/PlayerCommand.txt [deleted file]
tests/after_113/Round 014/OpponentCommand.txt [deleted file]
tests/after_113/Round 014/PlayerCommand.txt [deleted file]
tests/after_113/Round 015/OpponentCommand.txt [deleted file]
tests/after_113/Round 015/PlayerCommand.txt [deleted file]
tests/after_113/Round 016/OpponentCommand.txt [deleted file]
tests/after_113/Round 016/PlayerCommand.txt [deleted file]
tests/after_113/Round 017/OpponentCommand.txt [deleted file]
tests/after_113/Round 017/PlayerCommand.txt [deleted file]
tests/after_113/Round 018/OpponentCommand.txt [deleted file]
tests/after_113/Round 018/PlayerCommand.txt [deleted file]
tests/after_113/Round 019/OpponentCommand.txt [deleted file]
tests/after_113/Round 019/PlayerCommand.txt [deleted file]
tests/after_113/Round 020/OpponentCommand.txt [deleted file]
tests/after_113/Round 021/OpponentCommand.txt [deleted file]
tests/after_113/Round 022/OpponentCommand.txt [deleted file]
tests/after_113/Round 022/PlayerCommand.txt [deleted file]
tests/after_113/Round 023/OpponentCommand.txt [deleted file]
tests/after_113/Round 023/PlayerCommand.txt [deleted file]
tests/after_113/Round 024/OpponentCommand.txt [deleted file]
tests/after_113/Round 025/OpponentCommand.txt [deleted file]
tests/after_113/Round 025/PlayerCommand.txt [deleted file]
tests/after_113/Round 026/OpponentCommand.txt [deleted file]
tests/after_113/Round 026/PlayerCommand.txt [deleted file]
tests/after_113/Round 027/OpponentCommand.txt [deleted file]
tests/after_113/Round 027/PlayerCommand.txt [deleted file]
tests/after_113/Round 028/PlayerCommand.txt [deleted file]
tests/after_113/Round 029/OpponentCommand.txt [deleted file]
tests/after_113/Round 030/OpponentCommand.txt [deleted file]
tests/after_113/Round 030/PlayerCommand.txt [deleted file]
tests/after_113/Round 031/OpponentCommand.txt [deleted file]
tests/after_113/Round 031/PlayerCommand.txt [deleted file]
tests/after_113/Round 032/OpponentCommand.txt [deleted file]
tests/after_113/Round 033/PlayerCommand.txt [deleted file]
tests/after_113/Round 034/OpponentCommand.txt [deleted file]
tests/after_113/Round 034/PlayerCommand.txt [deleted file]
tests/after_113/Round 035/OpponentCommand.txt [deleted file]
tests/after_113/Round 037/PlayerCommand.txt [deleted file]
tests/after_113/Round 038/PlayerCommand.txt [deleted file]
tests/after_113/Round 039/OpponentCommand.txt [deleted file]
tests/after_113/Round 039/PlayerCommand.txt [deleted file]
tests/after_113/Round 040/OpponentCommand.txt [deleted file]
tests/after_113/Round 040/PlayerCommand.txt [deleted file]
tests/after_113/Round 041/OpponentCommand.txt [deleted file]
tests/after_113/Round 041/PlayerCommand.txt [deleted file]
tests/after_113/Round 042/OpponentCommand.txt [deleted file]
tests/after_113/Round 042/PlayerCommand.txt [deleted file]
tests/after_113/Round 043/PlayerCommand.txt [deleted file]
tests/after_113/Round 044/OpponentCommand.txt [deleted file]
tests/after_113/Round 044/PlayerCommand.txt [deleted file]
tests/after_113/Round 045/PlayerCommand.txt [deleted file]
tests/after_113/Round 046/OpponentCommand.txt [deleted file]
tests/after_113/Round 046/PlayerCommand.txt [deleted file]
tests/after_113/Round 047/PlayerCommand.txt [deleted file]
tests/after_113/Round 049/OpponentCommand.txt [deleted file]
tests/after_113/Round 049/PlayerCommand.txt [deleted file]
tests/after_113/Round 050/PlayerCommand.txt [deleted file]
tests/after_113/Round 051/OpponentCommand.txt [deleted file]
tests/after_113/Round 051/PlayerCommand.txt [deleted file]
tests/after_113/Round 052/OpponentCommand.txt [deleted file]
tests/after_113/Round 052/PlayerCommand.txt [deleted file]
tests/after_113/Round 053/OpponentCommand.txt [deleted file]
tests/after_113/Round 054/PlayerCommand.txt [deleted file]
tests/after_113/Round 055/OpponentCommand.txt [deleted file]
tests/after_113/Round 055/PlayerCommand.txt [deleted file]
tests/after_113/Round 057/OpponentCommand.txt [deleted file]
tests/after_113/Round 057/PlayerCommand.txt [deleted file]
tests/after_113/Round 058/PlayerCommand.txt [deleted file]
tests/after_113/Round 059/OpponentCommand.txt [deleted file]
tests/after_113/Round 059/PlayerCommand.txt [deleted file]
tests/after_113/Round 060/OpponentCommand.txt [deleted file]
tests/after_113/Round 060/PlayerCommand.txt [deleted file]
tests/after_113/Round 061/OpponentCommand.txt [deleted file]
tests/after_113/Round 061/PlayerCommand.txt [deleted file]
tests/after_113/Round 062/OpponentCommand.txt [deleted file]
tests/after_113/Round 062/PlayerCommand.txt [deleted file]
tests/after_113/Round 063/OpponentCommand.txt [deleted file]
tests/after_113/Round 063/PlayerCommand.txt [deleted file]
tests/after_113/Round 064/OpponentCommand.txt [deleted file]
tests/after_113/Round 064/PlayerCommand.txt [deleted file]
tests/after_113/Round 065/OpponentCommand.txt [deleted file]
tests/after_113/Round 066/OpponentCommand.txt [deleted file]
tests/after_113/Round 067/OpponentCommand.txt [deleted file]
tests/after_113/Round 067/PlayerCommand.txt [deleted file]
tests/after_113/Round 068/OpponentCommand.txt [deleted file]
tests/after_113/Round 068/PlayerCommand.txt [deleted file]
tests/after_113/Round 069/OpponentCommand.txt [deleted file]
tests/after_113/Round 069/PlayerCommand.txt [deleted file]
tests/after_113/Round 070/OpponentCommand.txt [deleted file]
tests/after_113/Round 070/PlayerCommand.txt [deleted file]
tests/after_200/Round 000/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 000/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 001/OpponentCommand.txt [moved from tests/after_113/Round 001/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 001/PlayerCommand.txt [moved from tests/after_113/Round 001/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 002/OpponentCommand.txt [moved from tests/after_113/Round 002/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 002/PlayerCommand.txt [moved from tests/after_113/Round 002/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 003/OpponentCommand.txt [moved from tests/after_113/Round 058/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 003/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 004/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 004/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 005/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 005/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 006/OpponentCommand.txt [moved from tests/after_113/Round 004/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 006/PlayerCommand.txt [moved from tests/after_113/Round 004/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 007/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 007/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 008/OpponentCommand.txt [moved from tests/after_113/Round 006/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 008/PlayerCommand.txt [moved from tests/after_113/Round 006/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 009/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 009/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 010/OpponentCommand.txt [moved from tests/after_113/Round 021/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 010/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 011/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 011/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 012/OpponentCommand.txt [moved from tests/after_113/Round 032/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 012/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 013/OpponentCommand.txt [moved from tests/after_113/Round 005/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 013/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 014/OpponentCommand.txt [moved from tests/after_113/Round 024/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 014/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 015/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 015/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 016/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 016/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 017/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 017/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 018/OpponentCommand.txt [moved from tests/after_113/Round 038/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 018/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 019/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 019/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 020/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 020/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 021/OpponentCommand.txt [moved from tests/after_113/Round 036/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 021/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 022/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 022/PlayerCommand.txt [moved from tests/after_113/Round 036/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 023/OpponentCommand.txt [moved from tests/after_113/Round 054/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 023/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 024/OpponentCommand.txt [moved from tests/after_113/Round 000/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 024/PlayerCommand.txt [moved from tests/after_113/Round 020/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 025/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 025/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 026/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 026/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 027/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 027/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 028/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 028/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 029/OpponentCommand.txt [moved from tests/after_113/Round 033/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 029/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 030/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 030/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 031/OpponentCommand.txt [moved from tests/after_113/Round 007/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 031/PlayerCommand.txt [moved from tests/after_113/Round 066/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 032/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 032/PlayerCommand.txt [moved from tests/after_113/Round 047/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 033/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 033/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 034/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 034/PlayerCommand.txt [moved from tests/after_113/Round 029/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 035/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 035/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 036/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 036/PlayerCommand.txt [moved from tests/after_113/Round 048/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 037/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 037/PlayerCommand.txt [moved from tests/after_113/Round 045/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 038/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 038/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 039/OpponentCommand.txt [moved from tests/after_113/Round 065/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 039/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 040/OpponentCommand.txt [moved from tests/after_113/Round 056/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 040/PlayerCommand.txt [moved from tests/after_113/Round 053/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 041/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 041/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 042/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 042/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 043/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 043/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 044/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 044/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 045/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 045/PlayerCommand.txt [moved from tests/after_113/Round 028/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 046/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 046/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 047/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 047/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 048/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 048/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 049/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 049/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 050/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 050/PlayerCommand.txt [moved from tests/after_113/Round 043/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 051/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 051/PlayerCommand.txt [moved from tests/after_113/Round 035/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 052/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 052/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 053/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 053/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 054/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 054/PlayerCommand.txt [moved from tests/after_113/Round 048/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 055/OpponentCommand.txt [moved from tests/after_113/Round 050/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 055/PlayerCommand.txt [moved from tests/after_113/Round 056/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 056/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 056/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 057/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 057/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 058/OpponentCommand.txt [moved from tests/after_113/Round 000/PlayerCommand.txt with 100% similarity]
tests/after_200/Round 058/PlayerCommand.txt [moved from tests/after_113/Round 037/OpponentCommand.txt with 100% similarity]
tests/after_200/Round 059/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 059/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 060/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 060/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 061/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 061/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 062/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 062/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 063/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 063/PlayerCommand.txt [new file with mode: 0644]
tests/after_200/Round 064/OpponentCommand.txt [new file with mode: 0644]
tests/after_200/Round 064/PlayerCommand.txt [new file with mode: 0644]
tests/bigstate.json
tests/live-comparison.rs
tests/monte-carlo-test.rs [new file with mode: 0644]
tests/state0.json