Skip to content

The eightpuzzle.py file can solve 'eight puzzles' problem with any input

Notifications You must be signed in to change notification settings

RezzaMir/Artificial-Intelligence-EightPuzzle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

AI - EightPuzzle

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'

  1. python -m venv C:\Users\User\Desktop\EightPuzzle\venv

  2. Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

  3. wait a bit

  4. 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))

Screenshot (1046)

About

The eightpuzzle.py file can solve 'eight puzzles' problem with any input

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages