summaryrefslogtreecommitdiff
path: root/CAO_Game.py
AgeCommit message (Collapse)Author
2015-06-04show the played cards to the judge after collectingOlivier Gayot
we return the list of played cards to the judge when he collects them. this avoids a query to view_played_cards(). 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-04return more information to the end userOlivier Gayot
when the queries are successful, we try to give more usable information to the user so that no more queries are needed. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04fixed: client considered in game even when refusedOlivier Gayot
the bug happened when we tried to join a full game. the client had game field set to the actual game even though it is not supposed to participate. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04implement a way to view the black cardOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04generate proper json to send to the clientsOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04shuffle the played cards before designingOlivier Gayot
the judge tends to know with card belong to who if he can see the order 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>