there might be no winner
This commit is contained in:
parent
2a49721dab
commit
25ee296a57
|
@ -74,6 +74,7 @@ proc bingo(): int =
|
|||
for column in board.columns():
|
||||
if column.allIt(it.checked):
|
||||
return board.bingoScore(number)
|
||||
raise newException(ValueError, "there is no winner")
|
||||
|
||||
proc main(): int =
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue