Skip to content

A compact JavaScript project designed to visually represent the optimal sequences of moves for a 15-Puzzle state using a layered graph.

Notifications You must be signed in to change notification settings

AlessandroPesare/puzzle-drawing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puzzle Drawing

Small project for Data Visualization course

The objective is to depict the complete set of optimal solutions for a given state in the 15 puzzle game using a layered graph structure.

For a solution to be considered optimal, it must be achieved through the shortest possible sequence of moves. Therefore, all solutions have the same length in terms of moves.

puzzle1

In this representation, each node corresponds to a distinct puzzle configuration, and the edges between nodes illustrate the specific moves taken to transition from one state to another.

Since each node represents a unique state, the solutions will tend to separate at the beginning and then progressively reunite, until arriving at a single final state.

Image 1 Image 2

About

A compact JavaScript project designed to visually represent the optimal sequences of moves for a 15-Puzzle state using a layered graph.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.4%
  • HTML 8.2%
  • CSS 4.4%