Przeglądaj źródła

generified some classes, sorry

NedRedmond 6 lat temu
rodzic
commit
d100cda2d3

+ 1
- 4
src/main/java/io/zipcoder/casino/Casino.java Wyświetl plik

@@ -7,10 +7,7 @@ import io.zipcoder.casino.dicegames.Craps;
7 7
 import io.zipcoder.casino.player.Player;
8 8
 import io.zipcoder.casino.player.Players;
9 9
 import io.zipcoder.casino.utilities.Console;
10
-import io.zipcoder.casino.utilities.Game;
11
-
12
-import java.lang.reflect.Array;
13
-import java.util.Arrays;
10
+import io.zipcoder.casino.utilities.abstracts.Game;
14 11
 
15 12
 public class Casino {
16 13
     private Game game;

+ 2
- 1
src/main/java/io/zipcoder/casino/cardgames/BlackJack.java Wyświetl plik

@@ -1,10 +1,11 @@
1 1
 package io.zipcoder.casino.cardgames;
2 2
 
3 3
 import io.zipcoder.casino.utilities.Card;
4
+import io.zipcoder.casino.utilities.abstracts.CardGame;
4 5
 import io.zipcoder.casino.utilities.containers.CardHand;
5 6
 import io.zipcoder.casino.utilities.containers.Deck;
6 7
 import io.zipcoder.casino.utilities.Console;
7
-import io.zipcoder.casino.utilities.Gamble;
8
+import io.zipcoder.casino.utilities.interfaces.Gamble;
8 9
 import io.zipcoder.casino.player.BlackJackPlayer;
9 10
 import io.zipcoder.casino.player.Player;
10 11
 import io.zipcoder.casino.player.Players;

+ 1
- 0
src/main/java/io/zipcoder/casino/cardgames/GoFish.java Wyświetl plik

@@ -1,5 +1,6 @@
1 1
 package io.zipcoder.casino.cardgames;
2 2
 
3
+import io.zipcoder.casino.utilities.abstracts.CardGame;
3 4
 import io.zipcoder.casino.utilities.containers.Deck;
4 5
 import io.zipcoder.casino.player.GoFishPlayer;
5 6
 import io.zipcoder.casino.player.Player;

+ 2
- 1
src/main/java/io/zipcoder/casino/dicegames/Craps.java Wyświetl plik

@@ -1,10 +1,11 @@
1 1
 package io.zipcoder.casino.dicegames;
2 2
 
3 3
 import io.zipcoder.casino.utilities.Console;
4
-import io.zipcoder.casino.utilities.Gamble;
4
+import io.zipcoder.casino.utilities.interfaces.Gamble;
5 5
 import io.zipcoder.casino.player.CrapsPlayer;
6 6
 import io.zipcoder.casino.player.Player;
7 7
 import io.zipcoder.casino.player.Players;
8
+import io.zipcoder.casino.utilities.abstracts.DiceGame;
8 9
 
9 10
 import java.util.ArrayList;
10 11
 

src/main/java/io/zipcoder/casino/cardgames/CardGame.java → src/main/java/io/zipcoder/casino/utilities/abstracts/CardGame.java Wyświetl plik

@@ -1,8 +1,6 @@
1
-package io.zipcoder.casino.cardgames;
1
+package io.zipcoder.casino.utilities.abstracts;
2 2
 
3
-import io.zipcoder.casino.player.BlackJackPlayer;
4 3
 import io.zipcoder.casino.utilities.containers.Deck;
5
-import io.zipcoder.casino.utilities.Game;
6 4
 import io.zipcoder.casino.player.Player;
7 5
 
8 6
 public abstract class CardGame extends Game {

src/main/java/io/zipcoder/casino/dicegames/DiceGame.java → src/main/java/io/zipcoder/casino/utilities/abstracts/DiceGame.java Wyświetl plik

@@ -1,7 +1,6 @@
1
-package io.zipcoder.casino.dicegames;
1
+package io.zipcoder.casino.utilities.abstracts;
2 2
 
3 3
 import io.zipcoder.casino.utilities.Dice;
4
-import io.zipcoder.casino.utilities.Game;
5 4
 
6 5
 public abstract class DiceGame extends Game {
7 6
 

src/main/java/io/zipcoder/casino/utilities/Game.java → src/main/java/io/zipcoder/casino/utilities/abstracts/Game.java Wyświetl plik

@@ -1,4 +1,4 @@
1
-package io.zipcoder.casino.utilities;
1
+package io.zipcoder.casino.utilities.abstracts;
2 2
 
3 3
 public abstract class Game {
4 4
     String className = this.getClass().getName();

src/main/java/io/zipcoder/casino/utilities/Gamble.java → src/main/java/io/zipcoder/casino/utilities/interfaces/Gamble.java Wyświetl plik

@@ -1,4 +1,4 @@
1
-package io.zipcoder.casino.utilities;
1
+package io.zipcoder.casino.utilities.interfaces;
2 2
 
3 3
 import io.zipcoder.casino.player.Player;
4 4