Hi, this is a simple maze creator and runner, my question is there is a weird thing happening with the vertical wall placement that makes it so that east and west are reversed for some reason for context:
it is supposed to make a hashmap of the walls with a key of (x, y) and a boolen values of (North, East, South, West) False for no wall and True for a wall, walls at the far end of the maze are made and then functions for wall addition
the maze starts from bottom left, with x and y being different from hline and vline (image for clearer explanation)
horizontal wall is supposed to look at the index of the line then to bulid a wall at that index and it affects North and South wall for example in the player in the pic x, y = (5, 2) the get_walls method is supposed to return = (True, False, True, False) and it works based on some tests, though didn't test on edge cases
vertical wall on the other hand in the picture at index (4, 2) it is supposed to return (False, False, False, True) West is true
but it returns (False, True, False, False), it means that East is true not west
the code contains alot of comments to check where is the problem, and the assertion is commented cause of the problem