]> git.cworth.org Git - lmno-server/commit
letterrip, anagrams: Make game reload smoother
authorCarl Worth <cworth@cworth.org>
Sun, 8 Mar 2026 15:13:50 +0000 (11:13 -0400)
committerCarl Worth <cworth@cworth.org>
Sun, 8 Mar 2026 15:13:50 +0000 (11:13 -0400)
commitb6072f9d5b3ab8500105f40bcc8607d77bbd91ef
treef32fb4538e902f8ed7f54d101c0db5c07bb2181a
parent4a3ba6a0988fa1eb08c34a96068ed9e9e623136f
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.js
letterrip.js