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:
@ -46,9 +46,9 @@ class Map:
|
|||||||
|
|
||||||
if not self.pos_in_map(next_step):
|
if not self.pos_in_map(next_step):
|
||||||
return self.Tiles.BORDER
|
return self.Tiles.BORDER
|
||||||
if self.map[*next_step] == "#":
|
if self.map[next_step] == "#":
|
||||||
return self.Tiles.OBSTACLE
|
return self.Tiles.OBSTACLE
|
||||||
if self.map[*next_step] == ".":
|
if self.map[next_step] == ".":
|
||||||
return self.Tiles.FREE
|
return self.Tiles.FREE
|
||||||
|
|
||||||
def next_direction(self, direction: str):
|
def next_direction(self, direction: str):
|
||||||
|
|||||||
Reference in New Issue
Block a user