From 8f6771371793c0baf8298f2571e04cce176f68d4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 23:32:15 -0400 Subject: [PATCH] Fix --- commands/games-mp/tic-tac-toe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/tic-tac-toe.js b/commands/games-mp/tic-tac-toe.js index a85ade04..87e72ede 100644 --- a/commands/games-mp/tic-tac-toe.js +++ b/commands/games-mp/tic-tac-toe.js @@ -118,8 +118,8 @@ module.exports = class TicTacToeCommand extends Command { } verifyWin(board, player1, player2) { - if (this.playerWon(board, player1)) return player1; - if (this.playerWon(board, player2)) return player2; + if (this.playerWon(board, 'X')) return player1; + if (this.playerWon(board, 'O')) return player2; return null; }