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():
|
for column in board.columns():
|
||||||
if column.allIt(it.checked):
|
if column.allIt(it.checked):
|
||||||
return board.bingoScore(number)
|
return board.bingoScore(number)
|
||||||
|
raise newException(ValueError, "there is no winner")
|
||||||
|
|
||||||
proc main(): int =
|
proc main(): int =
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue