From f10f76307808fc73840dcc96fbedc59b0c9c6a98 Mon Sep 17 00:00:00 2001 From: flying-scorpio Date: Sat, 30 Nov 2019 17:54:07 +0100 Subject: [PATCH] Added assertion in main to make clear that iteration has stopped --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 8d730a7..e386129 100644 --- a/main.py +++ b/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