RiLeone / warbot

An autonomous, simulated game of world-conquest.
GNU General Public License v3.0
2 stars 2 forks source link

Multiple Battles in Same Turn #16

Closed RiLeone closed 4 years ago

RiLeone commented 4 years ago

Describe the bug When creating the battle pairs, if more than one pair is picked a series of things go bad, including:

To Reproduce Steps to reproduce the behavior:

  1. Enable multiple battle pairs by uncommenting range(20) at start of for-loop in get_pairs() in src/WarBot.py
  2. Run ./WarBot.py from src/
  3. Check debug prints.

Expected behavior Survivors should always have neighbour by definitions. If only one player remains, game should end (as long as no insurgence is allowed).

Additional context There might be more to it, but this is a start.

SGE-MagHead commented 4 years ago

This is the part commented out in the code right?

RiLeone commented 4 years ago

@SGE-MagHead yes, check the To Reproduce bit of the issue to see what's going on. It should be line 106 of WarBot.py (current code state) [Search for TODO and you should find the triggering line] 😄

RiLeone commented 4 years ago

This might have been solved - looks like winner states were added to all neighbourhoods, causing the graph to be linked in the wrong manner. Issue was probably solved during implementation of solution to #29. Still need to test it.

PLEASE DO NOT WORK ON THIS ISSUE FOR THE TIME BEING