Skip to content

Different game results depending on whether logging is ON or OFF #8

@apinkin

Description

@apinkin

Hi Ulope, seeing some weird behavior which is reproducible consistently on two of my systems. Depending on whether logging is on (using --log option) I get different number of turns. I'm really puzzled what can be causing this. I don't have any random factor in my my bot's code, and sorted() in python is supposed to do stable sort.

  1. No logging

java -jar tools/PlayGame.jar maps/map1.txt 1000 200 log.txt "python MyBot.py" "python MyBot.py"
...
Turn 143
Player 2 Wins!

  1. Player 2 logging ON

java -jar tools/PlayGame.jar maps/map1.txt 1000 200 log.txt "python MyBot.py" "python MyBot.py --log 2.log"

...
Turn 132
Player 2 Wins!

  1. Both players logging ON

java -jar tools/PlayGame.jar maps/map1.txt 1000 200 log.txt "python MyBot.py --log 1.log" "python MyBot.py --log 2.log"
...
Turn 140
Player 2 Wins!

Any ideas? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions