triceo / drooms

Drools-based competition in a Snake-like game
3 stars 3 forks source link

Move active players list to one place. #17

Closed tomason closed 9 years ago

tomason commented 10 years ago

Right now, list of active players is kept in GameController as well as CommandDistributor. One of my previous pull requests (strategy validation) caused the NPE, because player was only removed from CommandDistributor' player list. This moves the list of active players to CommandDistributor to avoid problems in future.

The change coming with this is that players are reported as removed right when the turn starts, not before it ends.