All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dieterdepaepe.jsearch.problem.npuzzle.PuzzleEnvironment Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
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