Playing a preview/singleplayer game is now possible. Choosing colors not yet possible.
Singleplayer/preview: Choosing colors now possible. Fixed a bug when more than 1 players play.
Todo: dead snakes not being removed
- Snakes now obey the colors set to them.
- Fixed bug in multiplayer relating to snakes not dying when colliding with other snakes.
- DaboiaLogic now implements the Cloneable interface: the logic chooser always returns a reference to the same object if it's selected multiple times. clone() provides a shallow copy of a new object, which is sufficient in this case.
- Snakes will now be removed from the game board when they die if there are 2 or more snakes still alive.
- Changed the names of some methods in the Player and Snake classes, which broke down most of the existing DaboiaLogic algorithms.
- refactorization. not complete.
Load of refactoring. Added a StateSavingGame and stuff... Abstracted DaboiaGame and more
Fixed bug with GameStatePlayer and SavedStateGame
Preloader should now work in practice. Next in line is showing the preloader's progress.
Update README.md
Update README.md
Merge pull request #1 from tilastokeskus/singleplayer_dev

Singleplayer dev