mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -48,7 +48,7 @@ module.exports = class ConnectFourCommand extends Command {
|
||||
const board = this.generateBoard();
|
||||
let userTurn = true;
|
||||
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))) {
|
||||
const user = userTurn ? msg.author : opponent;
|
||||
const sign = userTurn ? 'user' : 'oppo';
|
||||
|
||||
Reference in New Issue
Block a user