1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package mahjong.player.ai;
/**
* Created by joe on 12/2/14.
*/
public class Values {
public static final double[] valuesI = new double[]{};
public static final double[] deckValue = new double[]
{
5, 8, 8, 8, 8, 8, 8, 8, 5,
5, 8, 8, 8, 8, 8, 8, 8, 5,
5, 8, 8, 8, 8, 8, 8, 8, 5,
6,6,6,6,
6,6,6,0
};
public static final double[] spitRate = new double[]
{
0,6,4,3,4
};
public static double calCardSpitProb(int rems, int id)
{
return spitRate[rems]/deckValue[id];
}
}
|