public final class

NPuzzle

extends Object
java.lang.Object
   ↳ es.usc.citius.hipster.examples.problem.NPuzzle

Class Overview

General N-Puzzle problem.

See the description of the N-Puzzle in Heuristics Wiki

Summary

Nested Classes
class NPuzzle.Puzzle Puzzle class represents the state codification for this game. 
enum NPuzzle.PuzzleMove Actions that can be used in the N-Puzzle game. 
Public Methods
static String getPrettyPath(List<NPuzzle.Puzzle> path, int size)
Prints a search path in a readable form.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String getPrettyPath (List<NPuzzle.Puzzle> path, int size)

Prints a search path in a readable form.

Parameters
path List of puzzle states of the path.
size Size of the puzzle state (8 for 8-puzzle)
Returns
  • String representing all the transitions from initial to goal.