diff --git a/web-optimle/www/src/App.css b/web-optimle/www/src/App.css index e281cd1..bc3fb06 100644 --- a/web-optimle/www/src/App.css +++ b/web-optimle/www/src/App.css @@ -279,6 +279,7 @@ a:active { .pick-puzzle-type { display: flex; flex-direction: row; + column-gap: 0.5em; } .top-right { diff --git a/web-optimle/www/src/Game.tsx b/web-optimle/www/src/Game.tsx index b5be67d..5fb1143 100644 --- a/web-optimle/www/src/Game.tsx +++ b/web-optimle/www/src/Game.tsx @@ -70,6 +70,7 @@ export function Game(props: GameProps) { Try to guarantee a win in 2 guesses!
); + const [shareMsg, setShareMsg] = useState(""); const tableRef = useRefNot quite! The answer could've been {game.possible_word().toUpperCase()}. (Enter to try again)
); @@ -154,7 +173,6 @@ export function Game(props: GameProps) { } catch (e) { console.warn("navigator.clipboard.writeText failed:", e); } - setHint(url); } const onKey = (key: string) => { @@ -219,10 +237,6 @@ export function Game(props: GameProps) { [puzzleType]: { ...oldStats[puzzleType], won: true, - guesses: [ - ...(oldStats[puzzleType].guesses || []), - result, - ], }, })); } else if (guesses.length + 1 === puzzle.history.length + MAX_GUESSES) { @@ -319,27 +333,7 @@ export function Game(props: GameProps) { {gameState === GameState.Won && (