Added assertion in main to make clear that iteration has stopped
This commit is contained in:
parent
312e0a955f
commit
f10f763078
1 changed files with 1 additions and 2 deletions
3
main.py
3
main.py
|
@ -22,8 +22,7 @@ def main():
|
|||
|
||||
while '.' in string:
|
||||
new_string = iterate_board(string)
|
||||
if new_string == string:
|
||||
break
|
||||
assert new_string != string
|
||||
string = new_string
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue