summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-08Fix double trigger become_judge.Jeremie Taboada
2015-06-08Fix merge fail.Jeremie Taboada
2015-06-08Continue implementation.Jeremie Taboada
2015-06-08Continue UI integration.Jeremie Taboada
2015-06-08Add bower.jsonJeremie Taboada
2015-06-08Update gitignore.Jeremie Taboada
2015-06-08Add become judge page.Jeremie Taboada
2015-06-08Add UI and start integration.Jeremie Taboada
2015-06-08added .gitignoreOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-08the server now handles the language properlyOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-08server: multilingual/french supportOlivier Gayot
moved the card files in a per-language directory as follows. * $LANG/cards/white * $LANG/cards/black Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05fix invalid field nameOlivier Gayot
renamed state in game_state Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05provide the state of the game to a newcomerOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05added the desktop content to the desktop fileOlivier Gayot
the content was removed from the common file but not rewrote in place Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05removed the promptOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05remove desktop things from the common fileOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05fixed invalid removal of cardOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05removed debug logsOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05handle the notifications on the clientOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05use a map to handle the response handlingOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05fix desktop code in the common partOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-05changed the structure of the notificationsOlivier Gayot
we now have the opcode and a 'content' section 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-04standardize the notificationsOlivier Gayot
use a proper syntax with opcode and no spaces in names Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04js: pay attention to the scope of the variablesOlivier Gayot
use the keyword var to avoid assigning them to the global object window. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04js: fixed invalid scope for thisOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04renamed the title pagesOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04listen to the world instead of localhostOlivier Gayot
it is dangerous, but that's what is interesting ! Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04handle the disconnection of the clientsOlivier Gayot
when a client disconnects, we must not try to send him a message since its socket is destroyed. However, a race condition can still probably occur if a client is disconnected during the handling of a request which leads to a notification. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04display the cards played and allow to select oneOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04fix no return when the black card is not revealedOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04moved the content of the desktop version into the proper fileOlivier Gayot
moved from cao-common.js to cao-desktop.js Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04renamed files to prepare for the mobile versionOlivier Gayot
the files have been renamed from game to cao. Moreover, we now prepare them to adapt to the mobile version of the game. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04added the first version of the GUIOlivier Gayot
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-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-04fixed bug the card id was considered a stringOlivier Gayot
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-04fixed inversion between black and white cardsOlivier Gayot
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-04added the squeleton for the clientOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-04add a working main server fileOlivier Gayot
The server is ready to deal with requests from web browsers. 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-04removed useless contentOlivier 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>
2015-06-03added the cards and the method to load themOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-06-03added a first version of the server main functionOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>