You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`Bingo! Board ${boardIndex} won the game in ${index+1} moves on the called number ${callout}! The unmarked sum was ${unmarkedSum}, for a total score of ${winningScore}`)
113
-
returnfalse;// acts like a break statement in an "every"
114
-
}
105
+
if(index>=5&&board.isBingo()){
106
+
constunmarkedSum=board.calcSumOfUnmarked()
107
+
winningScore=callout*unmarkedSum
108
+
console.log(
109
+
`Bingo! Board ${boardIndex} won the game in ${
110
+
index+1
111
+
} moves on the called number ${callout}! The unmarked sum was ${unmarkedSum}, for a total score of ${winningScore}`
112
+
)
113
+
returnfalse// acts like a break statement in an "every"
0 commit comments