diff --git a/src/Game.tsx b/src/Game.tsx index eabdea2..af28dc4 100644 --- a/src/Game.tsx +++ b/src/Game.tsx @@ -73,7 +73,9 @@ function Game(props: GameProps) { setGuesses((guesses) => guesses.concat([currentGuess])); setCurrentGuess((guess) => ""); if (currentGuess === target) { - setHint("You won! (Enter to play again)"); + setHint( + `You won! The answer was ${target.toUpperCase()}. (Enter to play again)` + ); setGameState(GameState.Won); } else if (guesses.length + 1 === props.maxGuesses) { setHint( @@ -170,7 +172,9 @@ function Game(props: GameProps) { Give up - {tableRows}
+ + {tableRows} +

{hint || `\u00a0`}

{/*

{srStatus} diff --git a/src/Row.tsx b/src/Row.tsx index 6c9fa49..44e599d 100644 --- a/src/Row.tsx +++ b/src/Row.tsx @@ -27,7 +27,7 @@ export function Row(props: RowProps) {