From 4b0925dda916932e22d2f90f53a8a680c91c1440 Mon Sep 17 00:00:00 2001 From: top13001 Date: Sat, 30 Apr 2016 23:41:02 -0400 Subject: [PATCH] added backHeuristic --- src/model/Board.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/model/Board.java b/src/model/Board.java index a28df7d..c4f867d 100755 --- a/src/model/Board.java +++ b/src/model/Board.java @@ -486,8 +486,19 @@ public class Board { } public int centHeuristic(Color color) { + int heuristicval = 0; + int[] coordinates = {11,12,15,16,20,21,24,25}; - int[] coordinates = + for (int value : coordinates){ + + + Location piece_loc = samuelMapping(value); + Piece chosen_piece = getPiece(piece_loc); + if (isActive(chosen_piece)==false + && chosen_piece.getType()==Type.NORMAL && chosen_piece.getColor() == color){ + + } + } return 0; }