Age | Commit message (Collapse) | Author |
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
jquery.js is a symlink to the version in use
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
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>
|
|
renamed state in game_state
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
the content was removed from the common file but not rewrote in place
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
we now have the opcode and a 'content' section
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
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>
|
|
use a proper syntax with opcode and no spaces in names
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
use the keyword var to avoid assigning them to the global object window.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
it is dangerous, but that's what is interesting !
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
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>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
moved from cao-common.js to cao-desktop.js
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
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>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|
|
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
|