summaryrefslogtreecommitdiff
path: root/CAO_Player.py
AgeCommit message (Collapse)Author
2015-06-08send a notification when the score is updatedOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04transmit a new card to the player using a notificationOlivier Gayot
when it's time for another turn, we send a notification to the user plus its new card so he does not need to execute a query again. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04added a system of notificationOlivier Gayot
what the client will receive will look like: {'type': TYPE, 'content': CONTENT} TYPE will be either 'notification' or 'response' CONTENT will be the content of the notification or the response Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04the cards of a player are stored in a mapOlivier Gayot
the problem with the list is that when we take a card in the middle, the following indexes are shifted. It is inconvenient to shift them on the end user side's so we use a map with incremented indexes. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04the version version which seems to work correctlyOlivier Gayot
the main file of the project is useless tho for now on Signed-off-by: Olivier Gayot <duskcoder@gmail.com>