generated from ZipCodeCore/GroupCasino
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
132 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/com/github/zipcodewilmington/casino/RouletteGame.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
src/main/java/com/github/zipcodewilmington/casino/RouletteNumParam.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/github/zipcodewilmington/casino/RouletteTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Integer, String> numAssociation; | ||
|
||
} |