Skip to content

Commit

Permalink
Merge pull request #12 from Arcadianer/HEAD
Browse files Browse the repository at this point in the history
Head
  • Loading branch information
Arcadianer authored Mar 27, 2017
2 parents a567bc3 + 3f3269b commit 1d53181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Reverse Pacman/src/tree/Gaertner.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ public static double evalution_function(gamestate gs) {

double temp = simplelenghth(gs.pacloc, ghloc);
if (temp == 0) {
ghdisscore = ghdisscore + 100.0;
ghdisscore = ghdisscore + 10000.0;
} else if (temp <= 3) {

ghdisscore = ghdisscore + (50.0 / (temp * temp * temp * temp));
ghdisscore = ghdisscore + (500.0 / (temp * temp * temp * temp));
} else {
ghdisscore = ghdisscore + (20.0 / temp);
ghdisscore = ghdisscore + (200.0 / temp);
}

}
Expand Down

0 comments on commit 1d53181

Please sign in to comment.