Commit Graph

18 Commits

Author SHA1 Message Date
Andrio Celos
a50086aedf Allow the host to set the turn time limit in the lobby page
Suggested by Ljovynn. It can be set only before the first battle.
2023-08-31 15:16:46 +10:00
Andrio Celos
d366d955af Add upcoming cards
Upcoming cards are identified by a negative number. The pre-release number will be preserved as an alt number after release to avoid breaking saved deck and replay data that references it.
2023-08-18 21:36:19 +10:00
Andrio Celos
dcb669490c Multiple-game sets
This allows any number of games to be played in a room.
Each player bar will show the number of games that player has won. If a goal win count is selected in More Options, the set will end when someone reaches that many wins. Otherwise, players can start a new game after the game ends.
2023-08-13 22:20:23 +10:00
Andrio Celos
391fa91d61 API: Treat empty string turnTimeLimit same as not specified 2023-06-16 09:35:47 +10:00
Andrio Celos
0906969365 Implement turn time limits 2023-06-15 15:27:41 +10:00
Andrio Celos
0236d75e6d Fix inactive games not being reactivated when a move is made 2022-12-29 19:19:02 +11:00
Andrio Celos
673eb18aa9 Track inactive games and add a command to lock the server for updates
A game that has had no activity for 5 minutes is considered inactive. There can be a limited number of inactive games before they are deleted. A console command is added that will wait for all games to become inactive before stopping the server, and prevent starting new games.
2022-12-28 00:03:10 +11:00
Andrio Celos
0cdfc3bbbd #5 Implement replay URLs 2022-12-26 14:36:04 +11:00
Andrio Celos
bb75c238a8 #5 Basic replay implementation 2022-12-25 12:49:30 +11:00
Andrio Celos
e62e8dc7b8 Improve loading indicators, error and timeout handling 2022-10-28 13:36:40 +11:00
Andrio Celos
d4e8d86571 Rework sync procedure and add a loading indicator
The server will now send a sync message when the client connects via WebSocket. This removes the need to send another GET request to sync game data.
2022-10-25 12:08:18 +11:00
Andrio Celos
f2d1d3c998 Server: Enable serving client files; optionally listen on non-loopback 2022-10-20 14:31:17 +11:00
Andrio Celos
e3fd48b45e Use history.pushState where possible 2022-10-11 14:01:25 +11:00
Andrio Celos
42074825b6 Add more stages and support for up to 4 players. #3 2022-10-08 21:46:09 +11:00
Andrio Celos
a1e91f1e09 Server: Complete HTTP caching support 2022-10-06 11:32:12 +11:00
Andrio Celos
59dc677077 Fix a bug where a player rejoining triggered a join message and desyncs 2022-10-05 16:43:45 +11:00
Andrio Celos
37e13c0001 Fix 400 error when starting a new game 2022-10-01 16:24:34 +10:00
Andrio Celos
1f44ab6d56 Initial commit 2022-10-01 16:00:50 +10:00