Closed kant2002 closed 6 years ago
@michalsustr Please take a look. I could implement this, but what to discuss with you first, so my work could fall into your understanding of the product. I actually want to implement first option, since then second option could be implemented by the user themselves as part of their testing environment
At the moment the code does "Clean files from previous game run, print message about that and proceed with game." implemented here:
https://github.com/Games-and-Simulations/sc-docker/blob/master/scbw/docker_utils.py#L390
My take on that is that if you specify the name of the game (it is not randomly generated) it should be run without interruption.
I updated to check whether the folder exists also in CLI and exit if the user doesn't agree.
https://github.com/Games-and-Simulations/sc-docker/blob/master/scbw/cli.py#L179
expected behavior
There two possibility
actual behavior
Second game is immediately quits and it is appears that bot is crashing.
See #34 for example how long it take to troubleshoot such issues
steps to reproduce
Run game with same name twice