From 5f78fc008f54032e12aaae7f68ae9339706c85d0 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 14 Jun 2017 00:42:58 +0000 Subject: [PATCH] Fix --- commands/games/hangman.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games/hangman.js b/commands/games/hangman.js index 9e69eb11..25db2ed4 100644 --- a/commands/games/hangman.js +++ b/commands/games/hangman.js @@ -17,12 +17,12 @@ module.exports = class HangmanCommand extends Command { let points = 0; const confirmation = []; const display = '_'.repeat(word.length).split(''); - while (word.length !== confirmation.length || points > 6) { + while (word.length !== confirmation.length && points > 6) { await msg.code(null, stripIndents` ___________ | | | ${points > 0 ? 'O' : ''} - | ${points > 2 ? '—' : ''}${points > 1 ? '|' : ''}${points > 3 ? '—' : ''} + | ${points > 2 ? '—' : ' '}${points > 1 ? '|' : ''}${points > 3 ? '—' : ''} | ${points > 4 ? '/' : ''} ${points > 5 ? '\\' : ''} =========== The word is: ${display.join(' ')}. Which letter do you choose?