From 9dcfd8f5977f6a14b57af51deb61837a8ab4673c Mon Sep 17 00:00:00 2001 From: jchuru Date: Tue, 25 Feb 2020 16:08:40 -0500 Subject: [PATCH] adding stuff --- .../io/zipcoder/casino/CasinoClasses/App.java | 4 ++++ .../zipcoder/casino/CasinoClasses/Casino.java | 19 +++++++++++++++++++ .../casino/CasinoClasses/ConsoleInput.java | 4 ++++ .../casino/CasinoClasses/ConsoleOutput.java | 4 ++++ .../casino/CasinoClasses/Membership.java | 4 ++++ .../casino/CasinoClasses/Storage.java | 4 ++++ .../GameClasses/CardGames/BlackJack.java | 4 ++++ .../casino/GameClasses/CardGames/Card.java | 4 ++++ .../GameClasses/CardGames/CardGame.java | 4 ++++ .../casino/GameClasses/CardGames/Deck.java | 4 ++++ .../GameClasses/CardGames/EnumRank.java | 4 ++++ .../GameClasses/CardGames/EnumSuit.java | 4 ++++ .../casino/GameClasses/CardGames/GoFish.java | 4 ++++ .../casino/GameClasses/DiceGames/Craps.java | 6 ++++++ .../casino/GameClasses/DiceGames/Dice.java | 4 ++++ .../GameClasses/DiceGames/DiceGame.java | 4 ++++ .../casino/GameClasses/DiceGames/OU7.java | 4 ++++ .../casino/GameClasses/GamblingGame.java | 4 ++++ .../io/zipcoder/casino/GameClasses/Game.java | 4 ++++ .../casino/Player/BlackJackPlayer.java | 4 ++++ .../zipcoder/casino/Player/CrapsPlayer.java | 4 ++++ .../io/zipcoder/casino/Player/Dealer.java | 4 ++++ .../casino/Player/GamblerAttributes.java | 5 +++++ .../casino/Player/GamblingPlayer.java | 6 ++++++ .../zipcoder/casino/Player/GoFishPlayer.java | 4 ++++ .../java/io/zipcoder/casino/Player/Hand.java | 4 ++++ .../io/zipcoder/casino/Player/OU7Player.java | 4 ++++ .../io/zipcoder/casino/Player/Player.java | 9 +++++++++ 28 files changed, 137 insertions(+) create mode 100644 src/main/java/io/zipcoder/casino/CasinoClasses/App.java create mode 100644 src/main/java/io/zipcoder/casino/CasinoClasses/Casino.java create mode 100644 src/main/java/io/zipcoder/casino/CasinoClasses/ConsoleInput.java create mode 100644 src/main/java/io/zipcoder/casino/CasinoClasses/ConsoleOutput.java create mode 100644 src/main/java/io/zipcoder/casino/CasinoClasses/Membership.java create mode 100644 src/main/java/io/zipcoder/casino/CasinoClasses/Storage.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/CardGames/BlackJack.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/CardGames/Card.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/CardGames/CardGame.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/CardGames/Deck.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/CardGames/EnumRank.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/CardGames/EnumSuit.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/CardGames/GoFish.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/DiceGames/Craps.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/DiceGames/Dice.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/DiceGames/DiceGame.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/DiceGames/OU7.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/GamblingGame.java create mode 100644 src/main/java/io/zipcoder/casino/GameClasses/Game.java create mode 100644 src/main/java/io/zipcoder/casino/Player/BlackJackPlayer.java create mode 100644 src/main/java/io/zipcoder/casino/Player/CrapsPlayer.java create mode 100644 src/main/java/io/zipcoder/casino/Player/Dealer.java create mode 100644 src/main/java/io/zipcoder/casino/Player/GamblerAttributes.java create mode 100644 src/main/java/io/zipcoder/casino/Player/GamblingPlayer.java create mode 100644 src/main/java/io/zipcoder/casino/Player/GoFishPlayer.java create mode 100644 src/main/java/io/zipcoder/casino/Player/Hand.java create mode 100644 src/main/java/io/zipcoder/casino/Player/OU7Player.java create mode 100644 src/main/java/io/zipcoder/casino/Player/Player.java diff --git a/src/main/java/io/zipcoder/casino/CasinoClasses/App.java b/src/main/java/io/zipcoder/casino/CasinoClasses/App.java new file mode 100644 index 000000000..7934ef266 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/CasinoClasses/App.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.CasinoClasses; + +public class App { +} diff --git a/src/main/java/io/zipcoder/casino/CasinoClasses/Casino.java b/src/main/java/io/zipcoder/casino/CasinoClasses/Casino.java new file mode 100644 index 000000000..6a1525045 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/CasinoClasses/Casino.java @@ -0,0 +1,19 @@ +package io.zipcoder.casino.CasinoClasses; + + +import java.util.HashMap; + +public class Casino { + String CasinoName = ""; + HashMap Players; + + public Casino (String CasinoName){ + this.CasinoName = CasinoName; + } + + public static void main(String[] args) { + // write your tests before you start fucking with this + } + + +} diff --git a/src/main/java/io/zipcoder/casino/CasinoClasses/ConsoleInput.java b/src/main/java/io/zipcoder/casino/CasinoClasses/ConsoleInput.java new file mode 100644 index 000000000..5784b1902 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/CasinoClasses/ConsoleInput.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.CasinoClasses; + +public interface ConsoleInput { +} diff --git a/src/main/java/io/zipcoder/casino/CasinoClasses/ConsoleOutput.java b/src/main/java/io/zipcoder/casino/CasinoClasses/ConsoleOutput.java new file mode 100644 index 000000000..af052dad2 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/CasinoClasses/ConsoleOutput.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.CasinoClasses; + +public interface ConsoleOutput { +} diff --git a/src/main/java/io/zipcoder/casino/CasinoClasses/Membership.java b/src/main/java/io/zipcoder/casino/CasinoClasses/Membership.java new file mode 100644 index 000000000..b12dc717c --- /dev/null +++ b/src/main/java/io/zipcoder/casino/CasinoClasses/Membership.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.CasinoClasses; + +public class Membership { +} diff --git a/src/main/java/io/zipcoder/casino/CasinoClasses/Storage.java b/src/main/java/io/zipcoder/casino/CasinoClasses/Storage.java new file mode 100644 index 000000000..5c6387456 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/CasinoClasses/Storage.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.CasinoClasses; + +public class Storage { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/CardGames/BlackJack.java b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/BlackJack.java new file mode 100644 index 000000000..fc8dca732 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/BlackJack.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.CardGames; + +public class BlackJack { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/CardGames/Card.java b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/Card.java new file mode 100644 index 000000000..b3582dcb8 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/Card.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.CardGames; + +public class Card { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/CardGames/CardGame.java b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/CardGame.java new file mode 100644 index 000000000..d658c4cd4 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/CardGame.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.CardGames; + +public abstract class CardGame { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/CardGames/Deck.java b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/Deck.java new file mode 100644 index 000000000..5eeec2d9f --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/Deck.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.CardGames; + +public class Deck { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/CardGames/EnumRank.java b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/EnumRank.java new file mode 100644 index 000000000..167a5dbf3 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/EnumRank.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.CardGames; + +public enum EnumRank { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/CardGames/EnumSuit.java b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/EnumSuit.java new file mode 100644 index 000000000..62b0dc426 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/EnumSuit.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.CardGames; + +public enum EnumSuit { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/CardGames/GoFish.java b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/GoFish.java new file mode 100644 index 000000000..c92b5e75e --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/CardGames/GoFish.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.CardGames; + +public class GoFish { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/Craps.java b/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/Craps.java new file mode 100644 index 000000000..0107c839e --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/Craps.java @@ -0,0 +1,6 @@ +package io.zipcoder.casino.GameClasses.DiceGames; + +public class Craps { + +} + diff --git a/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/Dice.java b/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/Dice.java new file mode 100644 index 000000000..f1aed0dfd --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/Dice.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.DiceGames; + +public class Dice { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/DiceGame.java b/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/DiceGame.java new file mode 100644 index 000000000..72bf2c307 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/DiceGame.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.DiceGames; + +public abstract class DiceGame { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/OU7.java b/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/OU7.java new file mode 100644 index 000000000..23fae4a40 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/DiceGames/OU7.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses.DiceGames; + +public class OU7 { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/GamblingGame.java b/src/main/java/io/zipcoder/casino/GameClasses/GamblingGame.java new file mode 100644 index 000000000..d12fc394e --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/GamblingGame.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses; + +public interface GamblingGame { +} diff --git a/src/main/java/io/zipcoder/casino/GameClasses/Game.java b/src/main/java/io/zipcoder/casino/GameClasses/Game.java new file mode 100644 index 000000000..8426a16e3 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/GameClasses/Game.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.GameClasses; + +public interface Game { +} diff --git a/src/main/java/io/zipcoder/casino/Player/BlackJackPlayer.java b/src/main/java/io/zipcoder/casino/Player/BlackJackPlayer.java new file mode 100644 index 000000000..f22025319 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/BlackJackPlayer.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.Player; + +public class BlackJackPlayer { +} diff --git a/src/main/java/io/zipcoder/casino/Player/CrapsPlayer.java b/src/main/java/io/zipcoder/casino/Player/CrapsPlayer.java new file mode 100644 index 000000000..bc3522ca8 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/CrapsPlayer.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.Player; + +public class CrapsPlayer { +} diff --git a/src/main/java/io/zipcoder/casino/Player/Dealer.java b/src/main/java/io/zipcoder/casino/Player/Dealer.java new file mode 100644 index 000000000..8325fe8bf --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/Dealer.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.Player; + +public class Dealer { +} diff --git a/src/main/java/io/zipcoder/casino/Player/GamblerAttributes.java b/src/main/java/io/zipcoder/casino/Player/GamblerAttributes.java new file mode 100644 index 000000000..d22eaa175 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/GamblerAttributes.java @@ -0,0 +1,5 @@ +package io.zipcoder.casino.Player; + +public interface GamblerAttributes { + boolean isadult = true; +} diff --git a/src/main/java/io/zipcoder/casino/Player/GamblingPlayer.java b/src/main/java/io/zipcoder/casino/Player/GamblingPlayer.java new file mode 100644 index 000000000..943c9af68 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/GamblingPlayer.java @@ -0,0 +1,6 @@ +package io.zipcoder.casino.Player; + +public class GamblingPlayer extends Player implements GamblerAttributes { + //can play all games + //can bet, can win, can cashout. +} diff --git a/src/main/java/io/zipcoder/casino/Player/GoFishPlayer.java b/src/main/java/io/zipcoder/casino/Player/GoFishPlayer.java new file mode 100644 index 000000000..ce5f1602a --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/GoFishPlayer.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.Player; + +public class GoFishPlayer { +} diff --git a/src/main/java/io/zipcoder/casino/Player/Hand.java b/src/main/java/io/zipcoder/casino/Player/Hand.java new file mode 100644 index 000000000..d0d3568f9 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/Hand.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.Player; + +public class Hand { +} diff --git a/src/main/java/io/zipcoder/casino/Player/OU7Player.java b/src/main/java/io/zipcoder/casino/Player/OU7Player.java new file mode 100644 index 000000000..764d90de8 --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/OU7Player.java @@ -0,0 +1,4 @@ +package io.zipcoder.casino.Player; + +public class OU7Player { +} diff --git a/src/main/java/io/zipcoder/casino/Player/Player.java b/src/main/java/io/zipcoder/casino/Player/Player.java new file mode 100644 index 000000000..7adc2499c --- /dev/null +++ b/src/main/java/io/zipcoder/casino/Player/Player.java @@ -0,0 +1,9 @@ +package io.zipcoder.casino.Player; + +public abstract class Player { + String playerName = ""; + Double chips = 0.0; + Double cash = 0.0; + boolean isAdult = true; + +}