phxql/restwars

Fix starter planet creation

Closed this issue · 1 comments

If a new player is created, the location of his starter planet is generated from an RNG. If the chosen planet is already colonized, the method crashes.

Fix this! It could also be possible that the universe is completely full.

See the TODO comment in PlanetServiceImpl.java.