We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd2d5a0 + 16a08c0 commit 4e5e748Copy full SHA for 4e5e748
apps/docs/docs/guide/tictactoe.md
@@ -60,9 +60,9 @@ We don't have to check that it's the current player - it's already done by the g
60
The function could be as simple as this:
61
62
```ts
63
-export function move(state: GameState, move: Coord, player: Player) {
+export function move(state: GameState, coord: Coord, player: Player) {
64
state.board[coord.x][coord.y] = player;
65
- state.moves.push({ player, coord: move });
+ state.moves.push({ player, coord });
66
67
return state;
68
}
0 commit comments