From 8a1af6f9fa73f216c6f1633f9e02112338f3ca12 Mon Sep 17 00:00:00 2001 From: wordsmith Date: Mon, 7 Feb 2022 18:50:13 -0500 Subject: [PATCH] Daily Industrial Wordl --- .tool-versions | 1 + CNAME | 1 - src/App.css | 2 +- src/App.tsx | 8 +------- src/Game.tsx | 22 +++------------------- src/util.ts | 8 +++++++- 6 files changed, 13 insertions(+), 29 deletions(-) create mode 100644 .tool-versions delete mode 100644 CNAME diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..ba4cc25 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 16.13.1 diff --git a/CNAME b/CNAME deleted file mode 100644 index 0b0e09a..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -hellowordl.net \ No newline at end of file diff --git a/src/App.css b/src/App.css index 676f394..751dc77 100644 --- a/src/App.css +++ b/src/App.css @@ -140,7 +140,7 @@ table.Game-rows > tbody { } body.dark { - background-color: #404040; + background-color: #121213; color: #e0e0e0; color-scheme: dark; } diff --git a/src/App.tsx b/src/App.tsx index 4c8e667..9c8bc72 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -74,16 +74,14 @@ function App() { fontStyle: difficulty > 1 ? "italic" : "inherit", }} > - hell + Industrial Wordl - o wordl
{page !== "game" ? ( link("❌", "Close", "game") ) : ( <> - {link("❓", "About", "about")} {link("⚙️", "Settings", "settings")} )} @@ -96,11 +94,7 @@ function App() { visibility: page === "game" ? "visible" : "hidden", }} > -
- {page === "about" && } {page === "settings" && (
diff --git a/src/Game.tsx b/src/Game.tsx index 05617b0..7f1358c 100644 --- a/src/Game.tsx +++ b/src/Game.tsx @@ -157,7 +157,7 @@ function Game(props: GameProps) { const onKey = (key: string) => { if (gameState !== GameState.Playing) { if (key === "Enter") { - startNextGame(); + // startNextGame(); } return; } @@ -192,9 +192,7 @@ function Game(props: GameProps) { setCurrentGuess((guess) => ""); const gameOver = (verbed: string) => - `You ${verbed}! The answer was ${target.toUpperCase()}. (Enter to ${ - challenge ? "play a random game" : "play again" - })`; + `You ${verbed}! The answer was ${target.toUpperCase()}.`; if (currentGuess === target) { setHint(gameOver("won")); @@ -287,7 +285,7 @@ function Game(props: GameProps) { disabled={gameState !== GameState.Playing || guesses.length === 0} onClick={() => { setHint( - `The answer was ${target.toUpperCase()}. (Enter to play again)` + `The answer was ${target.toUpperCase()}.` ); setGameState(GameState.Lost); (document.activeElement as HTMLElement)?.blur(); @@ -318,21 +316,7 @@ function Game(props: GameProps) { letterInfo={letterInfo} onKey={onKey} /> -
- {challenge - ? "playing a challenge game" - : seed - ? `${describeSeed(seed)} — length ${wordLength}, game ${gameNumber}` - : "playing a random game"} -

- {" "} {gameState !== GameState.Playing && (