From 3a30bab4bc80d63aae7d96415efae5a4778b3be2 Mon Sep 17 00:00:00 2001 From: Niklas Birk Date: Thu, 4 Apr 2019 19:00:24 +0200 Subject: [PATCH] Reafctored --- src/search/EightPuzzleNode.java | 5 ----- src/search/Node.java | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/search/EightPuzzleNode.java b/src/search/EightPuzzleNode.java index 3581c04..47712b5 100644 --- a/src/search/EightPuzzleNode.java +++ b/src/search/EightPuzzleNode.java @@ -12,11 +12,6 @@ public class EightPuzzleNode extends Node super(state); } - private EightPuzzleNode(final int[][] value, final Node parent) - { - super(value, parent); - } - private EightPuzzleNode(final int[][] value, final Node parent, final int heuristicCosts) { super(value, parent, heuristicCosts); diff --git a/src/search/Node.java b/src/search/Node.java index a017c88..0d7d3f8 100644 --- a/src/search/Node.java +++ b/src/search/Node.java @@ -6,7 +6,7 @@ import java.util.Objects; public abstract class Node { protected final T value; - protected int heuristicCosts; + protected final int heuristicCosts; private final Node parent; private int heuristicEstimation;