-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.md
52 lines (27 loc) · 1.3 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 8Puzzle
> Solving 8 Puzzle with A*, Recursive Best First Search and BFS
<img src="./assets/overview.png" width="350" align="middle">
<hr />
## Documentation
PuzzleNode Class :
- For holding data of each state and checking whether it reached the goal or not
ProblemTree Class:
- Solve the problem depend on the given method.
- BFS: Simple bfs search on the problem tree until reach goal state
- A*: Only open nodes with minimum heuristic value (depend on heuristic choosen (Missplace Tiles or Manhatan Distance) + nodeDepth).
- Recursive Best First Search: Recursively expanding the most promising node chosen according to a specified heuristic function.
Heuristic Class:
- calculating heuristic for given state.
<hr />
## Example
### Press Edit button to input your puzzle ###
<img src="./assets/edit.png" width="350" align="middle">
### Then press Done button to save the changes ###
<img src="./assets/example.png" width="350" align="middle">
### Finally press Run button and choose the method for solving the puzzle ###
<img src="./assets/solved.png" width="350" align="middle">
<hr />
## Author
- Soheil Changizi ( [@cocolico14](https://github.com/cocolico14) )
## License
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details