This commit is contained in:
Dragon Fire
2024-03-23 23:37:47 -04:00
parent 8a7fcfe7b5
commit 5cd147ad80
+1 -1
View File
@@ -86,7 +86,7 @@ module.exports = class TicTacToeCommand extends Command {
sides[opponent.bot && !userTurn ? choice : Number.parseInt(choice, 10) - 1] = sign;
taken.push(choice);
const win = this.verifyWin(sides, msg.author, opponent);
if (taken.length === 8 && !win) winner = 'tie';
if (taken.length === 9 && !win) winner = 'tie';
if (win) winner = win;
if (lastTurnTimeout) lastTurnTimeout = false;
userTurn = !userTurn;