Table of Contents

SearchProblem

Environment kuimaze2.SearchProblem shall be used for problems of finding the shortest path in a maze. It is used in optional task 01-easy_search and the first mandatory semestral task 03-search.

Available methods

After creation of the SearchProblem instance (see Usage), you can use the following methods of the environment:

Usage

To use the environment, you need to:

To update the graphical display of the environment (if you created it with env = SearchProblem(…, graphics=True)), use:

env.render()
Method render() has many arguments that can be used to display various parts of your algorithm. See help(SearchProblem.render).