Our Project describes a Cards Against Copyright mobile game app that allows users to register and play games with up to 3 players by responding to prompt cards. The app assigns roles of Card Master and Card Players, selects random prompt and response cards, and has the Card Master pick a winning response until one player reaches 10 points or quits, at which point a new game begins. It also provides contact information for the student development team.
6. /**
* The SMS CallBack URL serves as the main controller of the app.
* Takes an incoming SMS and parses the SMS body as follows:
* 1. Register: registers the sender's phone number in the game system.
* 2. Play: places registered users in the game queue (max. 3 players).
* 2.1 Starts a game if there are 3 players in each game queue.
* 2.1.1 Randomly assigns one player as the Card Master.
* 2.1.2 Presents each Card Players with 3 randomly selected response cards.
* 2.1.3 Randomly selects one prompt card and displays it to all players.
* 2.1.4 Card Players select a response to the prompt.
* 2.1.5 Card Master selects the funniest response.
* 2.1.6 Card Players are notified of the Card Master's selection.
* 2.1.7 The winning Card Player is given 1 point.
* 2.1.8 Game continues until a Card Player scores 10 points or until a Card Player quits the game.
* 2.2 Places players in a game queue until there are 3 players.
* 3. Ragequit: ends the game for all players of a game. Only ragequitters would do this.
* 4. Number options: see 2.1.4 to 2.1.5
* 5. Score: displays the score of the current game
*/