diff options
author | Joe Zhao <ztuowen@gmail.com> | 2014-12-02 21:40:36 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2014-12-02 21:40:36 +0800 |
commit | 134770f0cd68eaf0525e03bb6e6cfbd03153fdb7 (patch) | |
tree | eb07c5399b1b9fef21ee82efe12415b86c9237b0 /player/ai/Values.java | |
parent | 83122b34976d012fc5524152b170adcfef7eef60 (diff) | |
download | Mahjong-134770f0cd68eaf0525e03bb6e6cfbd03153fdb7.tar.gz Mahjong-134770f0cd68eaf0525e03bb6e6cfbd03153fdb7.tar.bz2 Mahjong-134770f0cd68eaf0525e03bb6e6cfbd03153fdb7.zip |
Various UI
Tested Read Card
Diffstat (limited to 'player/ai/Values.java')
-rw-r--r-- | player/ai/Values.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/player/ai/Values.java b/player/ai/Values.java new file mode 100644 index 0000000..ac3db75 --- /dev/null +++ b/player/ai/Values.java @@ -0,0 +1,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]; + } +} |