Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 1.09 KB

README.md

File metadata and controls

10 lines (10 loc) · 1.09 KB

8-Puzzle-State-Generator

This university projective was to learn and use tree traversal search methods. This project in particular uses Depth-First Search. Based on two inputted 8 puzzle states, all reachable states are generated and displayed, including common reachable states between the two. image
The program can be run via the batch file as well as importing the project and running it via the Java file in a development environment/program.
Running the batch file will prompt the command line where the states can be inputted.
The input string requires a blank space to represent the moving empty square in the puzzle.
E.g. The above states would be represented by:
'8 6547231' and ' 12345678' respectively
The results are saved in the text file 'Output.txt'. This file will store, all reachable states for both states, the number of all reachable states for both states, the reachable states which are common for both states and the number of these.