This python codes is a basic artificial intelligence that can solve eight puzzle with any inputs
Also add files 'utils' and 'search' if you do not have them on visual studio
https://github.com/aimacode/aima-python/blob/master/utils.py
https://github.com/aimacode/aima-python/blob/master/search.py
A) IMPORTANT: Type these on terminal Visual studio to install 'numpy'
-
python -m venv C:\Users\User\Desktop\EightPuzzle\venv
-
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
-
wait a bit
-
venv\scripts\activate
(venv) 5) pip install numpy
B) Qucik Python creator file on VS. Type these on Cmd
mkdir EightPuzzle
cd EightPuzzle
new-item EightPuzzle.py
code .
C) RESULT of input: EightPuzzle((1, 3, 8, 6, 5, 0, 4, 2, 7))