1 | package cecj.app.othello; |
---|
2 | |
---|
3 | public class OthelloHeuristicPlayer extends OthelloPlayerFitnessCalculator { |
---|
4 | |
---|
5 | double[] wpc = { 1.00f, -0.25f, 0.10f, 0.05f, 0.05f, 0.10f, -0.25f, 1.00f, -0.25f, -0.25f, |
---|
6 | 0.01f, 0.01f, 0.01f, 0.01f, -0.25f, -0.25f, 0.10f, 0.01f, 0.05f, 0.02f, 0.02f, 0.05f, |
---|
7 | 0.01f, 0.10f, 0.05f, 0.01f, 0.02f, 0.01f, 0.01f, 0.02f, 0.01f, 0.05f, 0.05f, 0.01f, |
---|
8 | 0.02f, 0.01f, 0.01f, 0.02f, 0.01f, 0.05f, 0.10f, 0.01f, 0.05f, 0.02f, 0.02f, 0.05f, |
---|
9 | 0.01f, 0.10f, -0.25f, -0.25f, 0.01f, 0.01f, 0.01f, 0.01f, -0.25f, -0.25f, 1.00f, |
---|
10 | -0.25f, 0.10f, 0.05f, 0.05f, 0.10f, -0.25f, 1.00f }; |
---|
11 | |
---|
12 | @Override |
---|
13 | protected OthelloPlayer getPlayer() { |
---|
14 | return new OthelloPlayer(wpc); |
---|
15 | } |
---|
16 | } |
---|