Skip to content

Commit 4e5e748

Browse files
authored
Merge pull request #67 from boardgamers/randomboolean-patch-1
bugfix variable typo in doc example
2 parents dd2d5a0 + 16a08c0 commit 4e5e748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/docs/docs/guide/tictactoe.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ We don't have to check that it's the current player - it's already done by the g
6060
The function could be as simple as this:
6161

6262
```ts
63-
export function move(state: GameState, move: Coord, player: Player) {
63+
export function move(state: GameState, coord: Coord, player: Player) {
6464
state.board[coord.x][coord.y] = player;
65-
state.moves.push({ player, coord: move });
65+
state.moves.push({ player, coord });
6666

6767
return state;
6868
}

0 commit comments

Comments
 (0)