diff --git a/src/classes/ai/aiHelpers.js b/src/classes/ai/aiHelpers.js index 73843fc8..356bac3d 100644 --- a/src/classes/ai/aiHelpers.js +++ b/src/classes/ai/aiHelpers.js @@ -105,7 +105,7 @@ function groupStacks (groupValue, stacks) { let group = new Set() let i = groupValue let j = stacks.length - while (true) { // eslint-disable-line FIX this + while (true) { // eslint-disable-line let cell = dp[i][j] // add used elements to the group if (cell.used) { diff --git a/src/components/game/MessageBox.vue b/src/components/game/MessageBox.vue index 9c36e976..e320cdd2 100644 --- a/src/components/game/MessageBox.vue +++ b/src/components/game/MessageBox.vue @@ -1,5 +1,5 @@ @@ -31,8 +31,6 @@ export default { ]) }, created () { - // Somehow message box is being destroyed and created so there are two - // listeners for this. bus.$on('ai-action', ({move}) => { const name = move.player.name if (move.playType === 'startNewStack') { @@ -41,7 +39,6 @@ export default { } else if (move.playType === 'playCardOnStack') { const newStack = this.stacks.find(s => s.stackId === move.target.stackId) - // Issue with newStack being undefined, probably related to the above issue if (newStack && newStack.isComplete()) { this.message = name + " completed a stack worth " + newStack.getScore() + " points" @@ -76,7 +73,7 @@ export default {