summaryrefslogtreecommitdiff
path: root/player/ai/Values.java
blob: ac3db754d2d3e58c5dd5255898c87b73fbeed4a9 (plain)
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];
    }
}