bugfix
This commit is contained in:
parent
db91c72db1
commit
e13effbe75
@ -599,3 +599,4 @@
|
|||||||
68 36 4 24 71
|
68 36 4 24 71
|
||||||
43 31 60 19 95
|
43 31 60 19 95
|
||||||
52 55 13 83 78
|
52 55 13 83 78
|
||||||
|
|
||||||
|
@ -56,6 +56,9 @@ with open('data', 'r') as fp:
|
|||||||
else:
|
else:
|
||||||
# add the next array of numbers to the temporary board object
|
# add the next array of numbers to the temporary board object
|
||||||
temp_board.append(line.strip().split())
|
temp_board.append(line.strip().split())
|
||||||
|
if(len(temp_board)):
|
||||||
|
print('ERROR: You must have an empty line at the end of your data.')
|
||||||
|
exit()
|
||||||
|
|
||||||
winning_number,winning_board_index = FindWinner(numbers)
|
winning_number,winning_board_index = FindWinner(numbers)
|
||||||
print('Winning Number:', winning_number, ', Winning Board Index: ', winning_board_index)
|
print('Winning Number:', winning_number, ', Winning Board Index: ', winning_board_index)
|
||||||
|
Loading…
Reference in New Issue
Block a user