Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications Dexa 2022 Workshops 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 In Computer And Information Science 33

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Alfred Taudes ,Atif Mashkoor ,Johannes Sametinger ,Jorge Martinez-Gil ,Florian Sobieczky ,Lukas Fischer ,Rudolf Ramler ,Maqbool Khan ,Gerald Czech

1st Edition

3031143426, 978-3031143427

More Books

Students also viewed these Databases questions

Question

There are corporate goals other than to improve profit. Name three.

Answered: 1 week ago

Question

Describe the senses of taste and smell.

Answered: 1 week ago

Question

e. What difficulties did they encounter?

Answered: 1 week ago