Question: a Maze class which is a simple class that will take in the definition of a maze as a string, and convert it into a

a Maze class which is a simple class that will take in the definition of a maze as a string, and convert it into a matrix, which can be indexed using the at function. The at function takes in a coordinate (x,y) as input, and returns a symbol representing the cell of the maze (i.e, whether it is empty, a wall, etc.)
a MazeState class which is simply just a maze and a position for the player (this suffices to define the state of a player in a maze).
a MazeProblem class, which is incomplete. The goal of this project is to complete this definition of a maze problem, so that it can be solved by one of the search algorithms already included in the AIMA repository. Once properly implemented, the included
test.py script will run tests over multiple different mazes, each time showing the maze, the solution found, and the number of steps (actions) required to solve the maze (each action counts as one step).
Turn in: your modified version of
maze.py onto the course website under Assignments and Homework 1. Assignments are due Friday, January 26 by 11:59 pm. Please start early in case you encounter any unexpected difficulties.
Included files:
homework01.pdf: this document
maze.py: this includes a skeleton of the MazeProblem class that you want to complete.
test.py: this file includes several tests of your MazeProblem class. Make sure every test passes before you submit your assignment. This file contains the public tests, whereas your assignment will be graded based on private tests that will be revealed when the solutions are posted.
search.py and
util.py come from the AIMA python repository.
Hint: Read the code. USE THE DEBUGGER. For example, insert this line in your code:
import pdb; pdb.set_trace()
and whenever your code runs this line, it will start the command-line debugger at that point in the code.
 a Maze class which is a simple class that will take

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!