Reafctored
This commit is contained in:
parent
3032aeeca8
commit
3a30bab4bc
@ -12,11 +12,6 @@ public class EightPuzzleNode extends Node<int[][]>
|
|||||||
super(state);
|
super(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
private EightPuzzleNode(final int[][] value, final Node<int[][]> parent)
|
|
||||||
{
|
|
||||||
super(value, parent);
|
|
||||||
}
|
|
||||||
|
|
||||||
private EightPuzzleNode(final int[][] value, final Node<int[][]> parent, final int heuristicCosts)
|
private EightPuzzleNode(final int[][] value, final Node<int[][]> parent, final int heuristicCosts)
|
||||||
{
|
{
|
||||||
super(value, parent, heuristicCosts);
|
super(value, parent, heuristicCosts);
|
||||||
|
@ -6,7 +6,7 @@ import java.util.Objects;
|
|||||||
public abstract class Node<T>
|
public abstract class Node<T>
|
||||||
{
|
{
|
||||||
protected final T value;
|
protected final T value;
|
||||||
protected int heuristicCosts;
|
protected final int heuristicCosts;
|
||||||
private final Node<T> parent;
|
private final Node<T> parent;
|
||||||
private int heuristicEstimation;
|
private int heuristicEstimation;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user