An attempt to build an agent to solve a modified version of the 8 puzzle problem.
This code code is available on Github at the following link
To clone the repository, enter the follwoing command on a Git supported machine
git clone git@github.com:prithvi-narayan-bhat/8_tile_puzzle_problem.git
- Breadth First Search
- Depth First Search
- Iteratively Deepening Search
- Uniform Cost Search
- Greedy First Search
- A* Search
- Depth Limited Search
The project was developed and tested on a Linux Mint machine (Kernel 5.15.0-56-generic) with Python3 (Version 3.10.6). However, I am positive it can be run without any modifications on any compatible system
Ensure the the following files are all present in the same directory when executing
- expense_8_puzzle.py
- auxillary.py
- goal_state.txt
- start_state.txt
Enter the following to view the CLI help interface
To run the application and perform any particular algorithm, run the following
A text file that includes the grid of tiles (tested for 3x3). It could look like this 2 3 6 1 0 7 4 8 5 END OF FILE
A text file that includes the grid of tiles (tested for 3x3). It could look like this 1 2 3 4 5 6 7 8 0 END OF FILE
Acceptable algorithms parameters are the following
- BFS -> Breadth First Search
- DFS -> Depth First Search
- IDS -> Iteratively Deepening Search
- UCS -> Uniform Cost Search
- GFS -> Greedy First Search
- ASS -> A* Search
- DLS -> Depth Limited Search (will receive a second prompt for the maximum permissable depth (Integer value))
Flag to either log the progress into a file or not Acceptable values
- l -> log = True
- nl -> log = False