Bläddra i källkod

Merge branch 'dev' of https://git.zipcode.rocks/woat/ZCW-OOP-Casino into dev

yauhenip 6 år sedan
förälder
incheckning
e714a171dd

Binär
.DS_Store Visa fil


+ 0
- 0
NEW_FEATURE Visa fil


Binär
src/.DS_Store Visa fil


Binär
src/main/.DS_Store Visa fil


Binär
src/main/java/.DS_Store Visa fil


Binär
src/main/java/io/.DS_Store Visa fil


Binär
src/main/java/io/zipcoder/.DS_Store Visa fil


+ 15
- 0
src/main/java/io/zipcoder/casino/Gamble.java Visa fil

@@ -0,0 +1,15 @@
1
+package io.zipcoder.casino;
2
+
3
+public interface Gamble {
4
+
5
+
6
+
7
+     int currentBet;
8
+
9
+     void bet(int);
10
+     void winBet(Player);
11
+     void loseBet(Player);
12
+
13
+
14
+
15
+}

+ 14
- 0
src/main/java/io/zipcoder/casino/Game.java Visa fil

@@ -0,0 +1,14 @@
1
+package io.zipcoder.casino;
2
+
3
+public interface Game {
4
+   // variable of Player type
5
+    Player player;
6
+
7
+    void startGame();
8
+
9
+    void endGame();
10
+
11
+    void declareWinner();
12
+
13
+
14
+}

+ 11
- 0
src/main/java/io/zipcoder/casino/Main.java Visa fil

@@ -0,0 +1,11 @@
1
+package io.zipcoder.casino;
2
+
3
+public class Main {
4
+    public static void main(String[] args){
5
+        Casino casino =  new Casino();
6
+        casino.start();
7
+
8
+    }
9
+
10
+
11
+}