Commit graph

194 commits

Author SHA1 Message Date
caf4b3e2d8 Allow printing match statistics 2023-11-22 10:12:06 -08:00
8cba945823 Allow specifying data source via environment variable 2023-11-21 16:23:35 -08:00
b4bbf10287 Record game results to database 2023-11-21 16:16:33 -08:00
34de22fae1 Fix handling 'ok' command 2023-11-20 12:42:11 -08:00
44b1eb1fd3 Fix calculating whether players may bear off 2023-11-19 17:55:37 -08:00
5ccc3464fb Inform clients when unknown commands are received 2023-11-19 17:36:46 -08:00
667d0e9ba0 Send join and leave events to spectators 2023-11-17 16:41:31 -08:00
e8fb2fd4d2 Fix sending roll events 2023-11-17 11:37:04 -08:00
9b8b1767eb Fix rematch command for spectators 2023-11-17 11:22:20 -08:00
28ba643bf9 Support spectating matches
Resolves #3.
2023-11-16 17:12:17 -08:00
d0f8b45b0f Add match listing API 2023-11-16 09:25:26 -08:00
2493c76bdf Fix rematch command 2023-11-15 14:51:55 -08:00
c3db42daee Send game state to both players from the perspective of player 1 (black) 2023-11-15 14:41:56 -08:00
ce3a930372 Update PROTOCOL 2023-11-14 17:51:36 -08:00
a1b1b0d30f Fix creating rematch for more than one point 2023-11-14 15:12:40 -08:00
ea34f7b9b3 Fix panic when terminating client 2023-11-14 08:41:14 -08:00
019317f4f2 Fix race condition when terminating client 2023-11-14 00:14:30 -08:00
97fe9ebf0d Update community advertisement 2023-11-13 19:29:49 -08:00
328e37f900 Add method for calculating player pip count 2023-11-13 18:51:29 -08:00
4acaf3128e Show matches that have started as full in match listing 2023-11-13 11:26:06 -08:00
9b2226d9a8 Mention community in new match notice 2023-11-12 19:42:22 -08:00
5a1716ba27 Add new match notice 2023-11-12 11:11:35 -08:00
e200fbb195 Only allow doubling in multi-point matches 2023-11-10 22:33:48 -08:00
2bc5ed236b Fix calculating backgammon win 2023-11-10 17:15:49 -08:00
7e7aed5776 Use crypto/rand to generate random numbers 2023-11-03 12:48:29 -07:00
8646e4cc39 Update README 2023-11-03 10:51:25 -07:00
522663becc Add match start and end times to board state 2023-11-02 14:48:36 -07:00
171948e21c Skip previously found moves when calculating legal moves 2023-11-01 23:15:36 -07:00
41fa0a24b0 Fix using dice roll when bearing off 2023-11-01 22:47:59 -07:00
b89776c323 Fix calculating whether player may bear off 2023-10-30 21:12:58 -07:00
991fd6d481 Update README 2023-10-27 12:13:41 -07:00
7d2fc6e156 Update README 2023-10-26 20:24:09 -07:00
764def5eea Only send hello message to non-JSON clients 2023-10-26 15:20:52 -07:00
e62a9053a3 Clear write queue on client disconnect 2023-10-26 13:09:14 -07:00
e01ccd8e3c Set initial client connection read/write timeout 2023-10-26 12:53:24 -07:00
bd2cb2c880 Reduce ping timeout 2023-10-24 21:40:36 -07:00
07e9c3dc1e Require client name to be specified when logging in 2023-10-23 00:15:13 -07:00
27b011cf5b Update README 2023-10-22 22:29:28 -07:00
c4aa14d514 Award extra points for backgammons and gammons 2023-10-20 14:53:37 -07:00
70d2ccb39b Fix doubling cube posession 2023-10-20 14:24:18 -07:00
8da2829b6a Add doubling cube 2023-10-20 13:51:32 -07:00
f96a4fdb1a Allow specifying match points 2023-10-18 19:59:48 -07:00
0bfb03f767 Fix legal move calculation 2023-09-30 15:22:04 -07:00
db3870b9fe Fix joining match 2023-09-30 13:50:31 -07:00
cc53c885e7 Do not log pings, pongs or game listings 2023-09-30 11:39:30 -07:00
bb716d69b9 Replace spaces with underscores in password fields 2023-09-30 10:43:49 -07:00
e179df3fbc Rejoin match in progress when reconnecting 2023-09-20 08:10:14 -07:00
1e7c6a1d02 Require clients to leave current match before creating a new one 2023-09-19 00:55:47 -07:00
c4a1a3f99d Fix FailedLeave event 2023-09-19 00:32:01 -07:00
7b233c9c4a Update README 2023-09-18 23:56:34 -07:00