Skip to content

Commit a26cd5b

Browse files
committed
Addition of _correctMoves for tracking successful player turn.
1 parent cf7a4a4 commit a26cd5b

File tree

1 file changed

+1
-0
lines changed
  • workspaces/simon-game/src/app/components

1 file changed

+1
-0
lines changed

workspaces/simon-game/src/app/components/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type GameState = "pre-game" | "game-over" | "player-turn" | "cpu-turn";
99
export function App() {
1010
const [playerMoves, setPlayerMoves] = useState<readonly number[]>([]);
1111
const [gameState, setGameState] = useState<GameState>("pre-game");
12+
const [_correctMoves, _setCorrectMoves] = useState<readonly number[]>([0,1,2,3]);
1213

1314
if (gameState === "pre-game") {
1415
return (

0 commit comments

Comments
 (0)