]> git.cworth.org Git - lmno-server/commit
anagrams: Implement an idle counter to detect a game-end condition
authorCarl Worth <cworth@cworth.org>
Sun, 8 Mar 2026 22:33:12 +0000 (18:33 -0400)
committerCarl Worth <cworth@cworth.org>
Sun, 8 Mar 2026 22:33:12 +0000 (18:33 -0400)
commit7fe2800b907ceba5335c953383b12679a1b0932b
tree68b5d18f30cded980c345c49331df03d07646a38
parent402c8489c040d664d6dccb919768d5d2ec310b97
anagrams: Implement an idle counter to detect a game-end condition

The idle counter doesn't start until the bag is empty. After that,
any client post resets the counter. Once the counter expires the
servers sends a game-ending event to all clients. If they don't
reply that the user is still looking, then the game will be ended.
anagrams.js