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.
This commit is contained in:
2024-12-25 15:26:51 +01:00
parent 923f63b2ce
commit bc094b504f

View File

@ -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):