fix(doc): update tutorial guide and fix doc build (#2835)

* fix(doc): update tutorial guide

* fix(doc): update tutorial guide
This commit is contained in:
Danilo Britto 2024-11-04 19:43:35 -05:00 committed by GitHub
parent bf4bcf20c5
commit 795528efb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -446,7 +446,7 @@ const useGameStore = create(
typeof nextSquares === 'function'
? nextSquares(state.squares)
: nextSquares,
}));
}))
},
setXIsNext: (nextXIsNext) => {
set((state) => ({
@ -454,11 +454,11 @@ const useGameStore = create(
typeof nextXIsNext === 'function'
? nextXIsNext(state.xIsNext)
: nextXIsNext,
}));
}))
},
};
})
);
}
}),
)
```
Each time a player moves, `xIsNext` (a boolean) will be flipped to determine which player goes next