summaryrefslogtreecommitdiff
path: root/player/ai/Values.java
diff options
context:
space:
mode:
Diffstat (limited to 'player/ai/Values.java')
-rw-r--r--player/ai/Values.java25
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];
+ }
+}