mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 15:19:14 +02:00
Fix
This commit is contained in:
@@ -99,7 +99,7 @@ module.exports = class TicTacToeCommand extends Command {
|
||||
}
|
||||
|
||||
verifyWin(sides) {
|
||||
const evaluated = tictactoe.boardEvaluate(this.convertBoard(sides));
|
||||
const evaluated = tictactoe.boardEvaluate(this.convertBoard(sides)).status;
|
||||
if (evaluated === 'win' || evaluated === 'loss' || evaluated === 'tie') return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user