Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added backHeuristic
  • Loading branch information
top13001 committed May 1, 2016
1 parent b50dbfd commit 4b0925d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/model/Board.java
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4b0925d

Please sign in to comment.