Instructions
You are required to create an AI player as a Python class. This AI player will be placed into a maze application.
After initialisation, the AI player will have the information of the maze including
- size of the maze
- coordinate of the entrance
- possible actions from the entrance
- coordinates of the exits
The maze application will request the next node to be expanded from the AI player.
This next node is a coordinate of a cell on the maze.
The maze will then inform the AI player information of that cell including
- possible actions from the cell
- whether it is an entrance
- whether it is an exit
The AI player will then inform the maze if he/she has found the solution.
If the AI player has found the solution, the maze will display the solution.
If not, the process will repeat from requesting next node
Flowchart of the maze application
Interaction between maze and player
← Problem Player class →