there might be no winner

This commit is contained in:
Christian Ulrich 2021-12-04 15:16:50 +01:00
parent 2a49721dab
commit 25ee296a57
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 0 deletions

View File

@ -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: