com.github.dieterdepaepe.jsearch.problem.npuzzle.PuzzleEnvironment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsearch-examples Show documentation
Show all versions of jsearch-examples Show documentation
Example problem sets for the JSearch library.
package com.github.dieterdepaepe.jsearch.problem.npuzzle;
/**
* Problem environment for solving the N-Puzzle problem.
* @author Dieter De Paepe
*/
public class PuzzleEnvironment {
private SlidingPuzzle puzzle;
private PuzzleFields targetState;
public PuzzleEnvironment(SlidingPuzzle puzzle, PuzzleFields targetState) {
this.puzzle = puzzle;
this.targetState = targetState;
}
public SlidingPuzzle getPuzzle() {
return puzzle;
}
public PuzzleFields getTargetState() {
return targetState;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy