Commit Graph

19 Commits

Author SHA1 Message Date
Nathaniel Tampus
24861fec36 remove game from activeGames immediately on end 2023-04-09 02:41:46 +08:00
Nathaniel Tampus
b448ded981 update log message 2023-04-05 21:52:22 +08:00
Nathaniel Tampus
3f851602ea add started & ended timestamps to game table 2023-04-05 21:50:34 +08:00
Nathaniel Tampus
577cba6ff4 count game history stats for users 2023-04-02 18:24:21 +08:00
Nathaniel Tampus
651cfb9d2a emit receivedMove first before gameOver 2023-04-02 15:01:52 +08:00
Nathaniel Tampus
75eb21c337 save finished games to db 2023-04-02 00:00:09 +08:00
Nathaniel Tampus
8d19c88c83 rename reason to endReason 2023-04-01 20:58:29 +08:00
Nathaniel Tampus
d469cdff56 allow player to claim win/draw for abandoned games 2023-03-25 19:18:01 +08:00
Nathaniel Tampus
17ef05b31c sync user info in games, adjust game timeout 2023-03-19 20:51:29 +08:00
Nathaniel Tampus
021bbee894 lower game deletion timeout to 10 minutes 2023-03-08 23:14:01 +08:00
Nathaniel Tampus
4e3e77e014 adjust game inactivity time to 15 minutes 2023-03-06 18:41:54 +08:00
Nathaniel Tampus
0a3fd532cd leaveLobby improvements 2023-03-06 13:26:49 +08:00
Nathaniel Tampus
754d149c4a session id detection improvements 2023-03-06 13:06:23 +08:00
Nathaniel Tampus
5699663dd2 don't remove player on disconnect 2023-03-05 19:03:58 +08:00
Nathaniel Tampus
bd39cf8c46 npm workspaces, NodeNext for server 2023-02-05 13:49:40 +08:00
Nathaniel Tampus
dc233b2c84 server-side move validation improvements 2023-01-16 15:25:39 +08:00
Nathaniel Tampus
a65202357e add timeout for inactive games
#1
also removed some redundant code
2023-01-16 15:10:53 +08:00
Nathaniel Tampus
e823fb15e9 handle invalid move exceptioin & support promotion 2023-01-16 14:36:55 +08:00
Nathaniel Tampus
17ce3cf4c4 move to public repo 2023-01-03 15:47:30 +08:00