From e3c85daf96889dd7aac04a0e741d1409f74e549d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Fuglede=20J=C3=B8rgensen?= Date: Sat, 26 Aug 2023 20:29:19 +0200 Subject: [PATCH] Change iou to iol This closes #4. --- 2015/day11/solutions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2015/day11/solutions.py b/2015/day11/solutions.py index 6e92d8f..a3247eb 100644 --- a/2015/day11/solutions.py +++ b/2015/day11/solutions.py @@ -18,8 +18,8 @@ def has_three_straight(s): return False -def has_no_iou(s): - return 'i' not in s and 'o' not in s and 'u' not in s +def has_no_iol(s): + return 'i' not in s and 'o' not in s and 'l' not in s def has_double_pair(s): @@ -42,7 +42,7 @@ def has_double_pair(s): def solve(s): while True: increase(s, len(s)-1) - if has_three_straight(s) and has_no_iou(s) and has_double_pair(s): + if has_three_straight(s) and has_no_iol(s) and has_double_pair(s): return ''.join(s)