Programming Assingment Number 1 for CSDS 391: Introduction to Artificial Intelligence.
This Slide Puzzle contains the code for an 8 piece slide puzzle solver using Search Algorithms. This repository contains the source code and test cases.
Eight Puzzle
- setState - Sets the puzzle state.
- move - Move the blank tile 'up', 'down', 'leI', or 'right'.
- randomizeState - Make n random moves from the goal state.
- printState - Prints the current puzzle state.
Solving A-star
- heuristic 1 (h1) - number of missplaced tiles
- heuristic 2 (h2) - manhattan distance
Solving Local Beam Search
- Utilized hueristic 2 (h2) - manhattan distance