fix bug in animate day6
This commit is contained in:
@@ -137,7 +137,10 @@ class Lab(object):
|
|||||||
|
|
||||||
cls()
|
cls()
|
||||||
print(self)
|
print(self)
|
||||||
while self.next():
|
while True:
|
||||||
|
ok, cyccled = self.next()
|
||||||
|
if not ok:
|
||||||
|
break
|
||||||
cls()
|
cls()
|
||||||
print(self)
|
print(self)
|
||||||
print(self.cycles)
|
print(self.cycles)
|
||||||
|
@@ -23,7 +23,6 @@ def _concat2(l: list[int]) -> list[int]:
|
|||||||
def may_be_true(val: int, lst: list[int], funcs) -> bool:
|
def may_be_true(val: int, lst: list[int], funcs) -> bool:
|
||||||
if len(lst) == 1:
|
if len(lst) == 1:
|
||||||
return lst[0] == val
|
return lst[0] == val
|
||||||
|
|
||||||
return any([may_be_true(val, f(lst), funcs) for f in funcs])
|
return any([may_be_true(val, f(lst), funcs) for f in funcs])
|
||||||
|
|
||||||
def solve1(eqs):
|
def solve1(eqs):
|
||||||
|
Reference in New Issue
Block a user