]> git.cworth.org Git - lmno.games/commit
anagrams: Add letters to the rack optimistically
authorCarl Worth <cworth@cworth.org>
Mon, 9 Mar 2026 02:09:05 +0000 (22:09 -0400)
committerCarl Worth <cworth@cworth.org>
Mon, 9 Mar 2026 02:09:05 +0000 (22:09 -0400)
commit9dd2ead4eb7d03b7645ffdd400f008a5afc6bb19
treeeea1eecf1a18f71c2854efbe9daf46b76ab381b2
parentb6dbca7851896355c2e75b6c015b66b7181d1205
anagrams: Add letters to the rack optimistically

Rather than waiting for a server response before displaying the letters
in the rack.

We _do_ still wait for the server response, and if it fails, then we
will revert and move the letter from the rack back to the center of
the board.

This optimistic addition guarantees that letters are added to the rack
in the order that the user typed them, (even if the responses to each
request come back in some other order). Reliable typing---what a concept!
anagrams/anagrams.jsx