Model your Favorite Game using Groovy, Javascript, or Java
$30-5000 USD
Paid on delivery
The goal of this game is to create a model of any interactive game using Groovy or JavaScript (I prefer Groovy). A model is a representation of the game. I am interested in interactive games (such as Scrabble, card games, tic tac toe, ludo, etc.).
You choose the game you know best.
I have a Groovy model of Tic Tac Toe available to guide you. I will use Tic Tac Toe as example through this description. This specific model completely fits on 15 lines of code!
Here is what the model should include:
1) A message or event representing the action of a user (e.g. in tictactoe, an event would be user B put a cross at position A1). These events or messages are represented as JSON objects.
2) A set of rules that determine whether a user action is permissible for this game or not (for instance, in Tic Tac Toe, a user cannot put a cross or a circle on top of another cross or circle). If a rule is violated the a specific error code should be communicated.
4) A winning decision that given a user event/action, decides whether the user just won the game or not
5) An-in memory data structure that represents thw whole game and is used especially by 2) and 4).
Project ID: #3154674