diff --git a/src/main/java/com/github/zipcodewilmington/casino/RouletteGame.java b/src/main/java/com/github/zipcodewilmington/casino/RouletteGame.java new file mode 100644 index 00000000..adeaae6d --- /dev/null +++ b/src/main/java/com/github/zipcodewilmington/casino/RouletteGame.java @@ -0,0 +1,39 @@ +package com.github.zipcodewilmington.casino; + +public class RouletteGame implements GameInterface{ + + private double payOutMult; + private RouletteTable table; + private PlayerInterface roulettePlayer; + private int ballCurrentNum; + + + public boolean winBet(String betParam) {return true;} + + public void endGame(){}; + + @Override + public void add(PlayerInterface player) { + + } + + @Override + public void remove(PlayerInterface player) { + + } + + @Override + public void run() { + + } + + @Override + public void printWinner() { + + } + + @Override + public boolean isEndCondition() { + return false; + } +} diff --git a/src/main/java/com/github/zipcodewilmington/casino/RouletteNumParam.java b/src/main/java/com/github/zipcodewilmington/casino/RouletteNumParam.java new file mode 100644 index 00000000..edd5e0c5 --- /dev/null +++ b/src/main/java/com/github/zipcodewilmington/casino/RouletteNumParam.java @@ -0,0 +1,58 @@ +package com.github.zipcodewilmington.casino; + +import java.util.HashMap; +import java.util.Map; + +public enum RouletteNumParam { + one(1, 1, 2, 2, 1, 1), + two(2, 2, 1, 1, 1, 2), + three(3, 1, 2, 1, 1, 3), + four(4, 2, 1, 1, 1, 1), + five(5, 1, 2, 1, 1,2), + six(6, 2, 1, 1, 1, 3), + seven(7, 1, 2, 1, 1, 1), + eight(8, 2, 1, 1, 1, 2), + nine(9, 1, 2, 1, 1, 3), + ten(10, 2, 1, 1, 1, 1), + eleven(11, 1, 1, 1, 1, 2), + twelve(12, 2, 2, 1, 1, 3), + thirteen(13, 1, 1, 1, 2, 1), + fourteen(14, 2, 2, 1, 2, 2), + fifteen(15, 1, 1, 1, 2, 3), + sixteen(16, 2, 2, 1, 2, 1), + seventeen(17, 1, 1, 1, 2, 2), + eighteen(18, 2, 2, 1, 2, 3), + nineteen(19, 1, 2, 2, 2, 1), + twenty(20, 2, 1, 2, 2, 2), + twenty_one(21, 1, 2, 2, 2, 3), + twenty_two(22, 2, 1, 2, 2, 1), + twenty_three(23, 1, 2, 2, 2, 2), + twenty_four(24, 2, 1, 2, 2, 3), + twenty_five(25, 1, 2, 2, 3, 1), + twenty_six(26, 2, 1, 2, 3, 2), + twenty_seven(27, 1, 2, 2, 3, 3), + twenty_eight(28, 2, 1, 2, 3, 1), + twenty_nine(29, 1, 1, 2, 3, 2), + thirty(30, 2, 2, 2, 3, 3), + thirty_one(31, 1, 1, 2, 3, 1), + thirty_two(32, 2, 2, 2, 3, 2), + thirty_three(33, 1, 1, 2, 3, 3), + thirty_four(34, 2, 2, 2, 3, 1), + thirty_five(35, 1, 1, 2, 3, 2), + thirty_six(36, 2, 2, 2, 3, 3); + int rouletteNum; + int oddOrEven; + int blackOrRed; + int highOrLow; + int whichDoz; + int whichColumn; +RouletteNumParam(int rouletteNum, int oddOrEven, int blackOrRed, int highOrLow, int whichDoz, int whichColumn) { + this.rouletteNum = rouletteNum; + this.oddOrEven = oddOrEven; + this.blackOrRed = blackOrRed; + this. highOrLow = highOrLow; + this.whichDoz = whichDoz; + this.whichColumn = whichColumn; +} + +} diff --git a/src/main/java/com/github/zipcodewilmington/casino/RouletteTable.java b/src/main/java/com/github/zipcodewilmington/casino/RouletteTable.java new file mode 100644 index 00000000..caecfd75 --- /dev/null +++ b/src/main/java/com/github/zipcodewilmington/casino/RouletteTable.java @@ -0,0 +1,12 @@ +package com.github.zipcodewilmington.casino; + +import java.util.HashMap; +import java.util.Map; +import java.util.Random; + +public class RouletteTable { + + private Random ball = new Random(); + HashMap numAssociation; + +}