This commit is contained in:
Dragon Fire
2020-03-17 17:43:18 -04:00
parent 718cc1c47d
commit fece1f88ef
+1 -1
View File
@@ -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';