]> git.cworth.org Git - lmno.games/commit
letterrip, anagrams: Make game reload smoother
authorCarl Worth <cworth@cworth.org>
Sun, 8 Mar 2026 15:11:10 +0000 (11:11 -0400)
committerCarl Worth <cworth@cworth.org>
Sun, 8 Mar 2026 15:11:10 +0000 (11:11 -0400)
commit767b68639ca150cc130472dd8df68ea7eb2cc53e
tree8fb153e0c9f1e3f28d8790e494fe9b833de78cfd
parent9d05ebbaeb47173867b43f608083d830e9eecd37
letterrip, anagrams: Make game reload smoother

Previously we were requiring each player to do a separate join_game
(even after they were already part of the game). Notably, if the user
ever reloaded their browser, they had to click "Join game" yet again.

Instead, in this commit we add a game.started state. And we only need
one player to start the game, triggering the send of the started game
state to all players.

Now, if a player reloads their browser, they will just see the game
state, and not a "join game" button.
anagrams/anagrams.jsx
letterrip/letterrip.jsx