Question: Simple High School Coding: I need a code written in Python that can move a small robot car through a maze and keep track of
Simple High School Coding: I need a code written in Python that can move a small robot car through a maze and keep track of visited areas. Any form of linked lists or adjency lists or adjency matrix as the method would be good. Id like a lay out something like this:
Class Position. have a class for the position
int X (Basically the X and Y axis for it current position and visited position)
int Y (Basically the X and Y axis for it current position and visited position)
North South East West (Basically I want every part to be able to know if the next area is connected to it from the North, East, South, or West. Basically how each area relates to each other on location)
Bool: Visited is True (Basically a boolean to say whether or not a specific area has been visited)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
