From c3ca0455eb8e2a4eb63d56a667d94a51197fa627 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 11:09:48 -0500 Subject: [PATCH] Don't need to block blue and purple anymore --- commands/games-mp/connect-four.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/commands/games-mp/connect-four.js b/commands/games-mp/connect-four.js index aa3e48ec..cebef330 100644 --- a/commands/games-mp/connect-four.js +++ b/commands/games-mp/connect-four.js @@ -66,11 +66,7 @@ module.exports = class ConnectFourCommand extends Command { const playerOneEmoji = color; let playerTwoEmoji = color === colors.yellow ? colors.red : colors.yellow; try { - const available = Object.keys(colors).filter(clr => { - if (color === colors.blue && clr === colors.purple) return false; - if (color === colors.purple && clr === colors.blue) return false; - return color !== clr; - }); + const available = Object.keys(colors).filter(clr => color !== clr); if (opponent.bot) { playerTwoEmoji = colors[available[Math.floor(Math.random() * available.length)]]; } else {