mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Fix
This commit is contained in:
@@ -48,7 +48,7 @@ module.exports = class ConnectFourCommand extends Command {
|
|||||||
const board = this.generateBoard();
|
const board = this.generateBoard();
|
||||||
let userTurn = true;
|
let userTurn = true;
|
||||||
let winner = null;
|
let winner = null;
|
||||||
const colLevels = [6, 6, 6, 6, 6, 6, 6];
|
const colLevels = [5, 5, 5, 5, 5, 5, 5];
|
||||||
while (!winner && board.some(row => row.includes(null))) {
|
while (!winner && board.some(row => row.includes(null))) {
|
||||||
const user = userTurn ? msg.author : opponent;
|
const user = userTurn ? msg.author : opponent;
|
||||||
const sign = userTurn ? 'user' : 'oppo';
|
const sign = userTurn ? 'user' : 'oppo';
|
||||||
|
|||||||
Reference in New Issue
Block a user