From bc094b504fba03ea27eae8f0b78fbdb618dd8fce Mon Sep 17 00:00:00 2001 From: Kees van Kempen Date: Wed, 25 Dec 2024 15:26:51 +0100 Subject: [PATCH] 2024(6): multi-indices should not be unpacked This is a problem that became one after switching laptops. It occurred on WSL 2, probably Ubuntu 20.04 LTS, Python 3.10.12. --- 2024/06/part1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2024/06/part1.py b/2024/06/part1.py index 7625c85..d676e6e 100644 --- a/2024/06/part1.py +++ b/2024/06/part1.py @@ -46,9 +46,9 @@ class Map: if not self.pos_in_map(next_step): return self.Tiles.BORDER - if self.map[*next_step] == "#": + if self.map[next_step] == "#": return self.Tiles.OBSTACLE - if self.map[*next_step] == ".": + if self.map[next_step] == ".": return self.Tiles.FREE def next_direction(self, direction: str):