Simulation does not check if all corners were visited in cornersProblem
When I run the cornerProblem on open maze, the game simulation ends as soon as the food in the bottom left corner is eaten, no matter if all corners have been visited.
I think this is because in def consume(position, state), the game is won if there is no more food left, and there is no further check.
However, in the assignment it says, that all corners should be visited, regardless of whether there’s food at those locations:
In the Corners Problem, the maze contains four dots—one in each corner. The objective is to find the shortest path that visits all four corners, regardless of whether there’s food at those locations
I think this is a bit confusing and should be specified. Either it is required that there is food in all corners, then the corner problem should not be able to start without the food (instead of just giving a warning), or the food is not required, in which case the game logic would need to be updated.