Piece material values:
K = infinity
Q = 900
R = 500
B = 300
N = 300
P = 100
Position values:
Give points for certain pieces in the middle, bish, knight, queen:
0 |
2 |
3 |
4 |
4 |
3 |
2 |
0 |
2 |
3 |
4 |
5 |
5 |
4 |
3 |
2 |
3 |
4 |
5 |
7 |
7 |
5 |
4 |
3 |
4 |
5 |
7 |
10 |
10 |
7 |
5 |
4 |
4 |
5 |
7 |
10 |
10 |
7 |
5 |
4 |
3 |
4 |
5 |
7 |
7 |
5 |
4 |
3 |
2 |
3 |
4 |
5 |
5 |
4 |
3 |
2 |
0 |
2 |
3 |
4 |
4 |
3 |
2 |
0 |
Give points for certain pawn advancement positions:
0 |
0 |
2 |
3 |
5 |
30 |
50 |
0 |
0 |
0 |
2 |
3 |
4 |
30 |
50 |
0 |
0 |
0 |
2 |
3 |
4 |
30 |
50 |
0 |
0 |
0 |
2 |
3 |
4 |
30 |
50 |
0 |
0 |
0 |
2 |
3 |
4 |
30 |
50 |
0 |
0 |
0 |
2 |
3 |
4 |
30 |
50 |
0 |
0 |
0 |
2 |
3 |
4 |
30 |
50 |
0 |
0 |
0 |
2 |
3 |
4 |
30 |
50 |
0 |
Give points for controlling these squares:
1 |
1 |
1 |
1 |
2 |
2 |
2 |
2 |
1 |
1 |
1 |
1 |
2 |
2 |
2 |
2 |
1 |
1 |
2 |
2 |
3 |
3 |
2 |
2 |
1 |
1 |
2 |
5 |
6 |
3 |
2 |
2 |
1 |
1 |
2 |
5 |
6 |
3 |
2 |
2 |
1 |
1 |
2 |
2 |
3 |
3 |
2 |
2 |
1 |
1 |
1 |
1 |
2 |
2 |
2 |
2 |
1 |
1 |
1 |
1 |
2 |
2 |
2 |
2 |
Minimax:
One side's points are all negative one side is positive, so we try to
pull
the points as far to one side as possible. i.e. if we are negative side
then see lower values as good. positive side sees higher values as good.
We run root-search (a dfs tree search) and calculate
the value of each path to a leaf.
|