April 2018
Beginner
714 pages
18h 21m
English
There are a couple of ways for you to improve the game implementation. For example, you can detect when a player has won and display a pop-up message. You can also allow an arbitrary number of players. You just need to replace the TEAM_COUNT constant with a new property in the Scene class and define more team colors. You can even create a GUI for users to provide their scripts instead of passing them as command-line arguments.
The scripting environment can also be improved. You can provide more helper functions (for example, a function to calculate the distance between two tiles) to make creating scripts easier. On the other hand, you can modify the rules and reduce the amount of available information so ...
Read now
Unlock full access