This commit is contained in:
Dragon Fire
2024-03-23 23:35:17 -04:00
parent 8f67713717
commit bfe5432d50
+1
View File
@@ -86,6 +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) win = 'tie';
if (win) winner = win;
if (lastTurnTimeout) lastTurnTimeout = false;
userTurn = !userTurn;