Commit graph

43 commits

Author SHA1 Message Date
d496bca168 Keep separating hall and login, simplifying both, generalize listSelector and add one for games 2019-12-12 22:16:49 +01:00
0147ca0135 Forgot unused variable 2019-12-11 22:05:17 +01:00
8f3567660f Split login and main screen («hall») and make all those screens «submodules» of the screen module 2019-12-11 22:03:16 +01:00
d018c7e62c Start separating the login stage from selecting an opponent (still a *lot* of work to do, barely started) 2019-12-08 23:01:44 +01:00
9e228c7e94 Handle WS reconnection in messaging module 2019-11-24 22:56:53 +01:00
11e33a95bb Add the correct imports for new session module 2019-11-24 22:56:00 +01:00
403ee2da92 Add start routine in session module picking the correct message and add an explicit loggedIn private boolean, rename the getter 2019-11-24 22:54:46 +01:00
0b834b4876 Sort initializers into separate init functions for DOM and WS events, stop passing session.loggedIn() around in refresh and setMode functions and send first message through session 2019-11-24 22:52:57 +01:00
cd517821c3 Add a module to wrap around localStorage and make it handy 2019-11-24 17:52:22 +01:00
8147589377 Save latest game state received in client to send it back to server and make the client work again with the new message protocol 2019-10-19 09:31:58 +02:00
7804aeecef Use lighter syntax and adapt client code 2019-10-18 19:01:46 +02:00
55ec64fafc Use the new public field counting the turns and adapt the web
interface
2019-10-18 19:01:46 +02:00
b03c7fd087 Add a stateful «turnCard» variable like «selected» to fix the «double card» bug when choosing a card in the river after a Turned card step 2019-10-18 19:01:13 +02:00
6dfaaee385 Handle errors in a mor aesthetical way and allow to hide them (+fixes a bug caused by an implicit access to a DOM element by its id) 2019-10-18 17:55:50 +02:00
0abc020d13 Factorize code for turned cards and make sure selected hand cards are unselected after being played 2019-10-18 17:54:27 +02:00
e9205b67c7 Use the new APILanguage and simplify a lot of code 2019-08-24 23:29:40 +02:00
0f685c0a98 Add support for websocket even over SSL and wait for websocket to be properly open before trying to ping 2019-08-21 16:41:06 +02:00
ac114c16df Add debug facilities in messaging module toggled by GET parameter 2019-08-13 13:46:25 +02:00
b2253b81d6 Handle the end of games 2019-08-12 23:07:49 +02:00
66d2926635 Implement status handling to provide visual clue about the game state 2019-08-12 14:05:57 +02:00
70e8981eb4 Remove shameful commented-out code — not even in the right language ! 2019-01-15 21:39:29 +01:00
6b26ce72a1 Animate turns by showing the cards movements 2019-01-13 20:01:55 +01:00
5c1ce754f5 Add a translation module and add a french translation 2019-01-01 12:57:27 +01:00
Sasha
a967e438ce Fix dialog layer not cleared when dialog gets closed 2018-08-26 21:56:54 +02:00
Sasha
05484db40f Implement custom asynchronous dialogs 2018-08-26 18:43:08 +02:00
Sasha
b61dd53f91 Remove inelegant handling of remaining cards count in client thanks to newly available count in 'deck' property of game states 2018-07-28 12:48:31 +02:00
Sasha
4e220fa1c0 Specify encoding in HTML 2018-07-28 12:44:19 +02:00
Sasha
3b4e3be37f Handle decreasing deck and opponent's hand 2018-05-26 21:26:12 +02:00
Sasha
cda5efce1f Added a back used by default for the cards 2018-05-26 11:49:24 +02:00
Sasha
b62ca896ea Attempt to center things a little 2018-05-26 11:47:34 +02:00
Sasha
c5b9b0b170 Improved layout to separate zones for each player and the table 2018-05-22 12:09:53 +02:00
Sasha
57f93ca116 Replace card names by pictures in a sprite 2018-05-20 19:17:51 +02:00
Sasha
dc49f4eb0e Playable game, only end of game isn't handled yet 2018-05-16 22:59:22 +02:00
Sasha
83201d5c95 Card-shaped cards in client GUI, sending move but not handled on server 2018-05-13 18:08:12 +02:00
Sasha
20001ebfc5 Start designing the client GUI to handle games 2018-05-12 15:32:00 +02:00
Sasha
2cf5d48419 Basic client dialogs to login and start a new game 2018-05-11 12:31:53 +02:00
Sasha
e929920677 Make sure keys are always only integers 2018-04-13 10:43:11 +02:00
Sasha
a8f951fad4 Remove intermediate name->key hash by using custom comparison function 2018-04-13 10:42:11 +02:00
Sasha
eb2fd7a7cb Add support for custom comparison function in insertion 2018-04-13 10:39:50 +02:00
Sasha
d022ab9aa4 Simplify guest selection and handle disconnections 2018-04-13 09:57:36 +02:00
Sasha
315db97abb Rename object 'keys' to fix bug (there's already a function named that way) 2018-04-13 09:11:35 +02:00
Sasha
59f8751fb6 Use session keys in the client to remove ambiguity 2018-04-12 23:01:40 +02:00
Sasha
fab330b71d First draft, basic session handling 2018-04-11 13:26:41 +02:00