package com.hotmail.kalebmarc.textfighter.main;

import com.hotmail.kalebmarc.textfighter.casino.DiceGame;
import com.hotmail.kalebmarc.textfighter.casino.LotteryGame;
import com.hotmail.kalebmarc.textfighter.casino.SlotsGame;
import com.hotmail.kalebmarc.textfighter.player.Coins;

public class Casino {
    public static final DiceGame DICE = new DiceGame();
    public static final SlotsGame SLOTS = new SlotsGame();
    public static final LotteryGame LOTTERY = new LotteryGame();

    public static int totalCoinsWon = 0;
    public static int gamesPlayed = 0;

    private Casino() {
    }

    public static void menu() {

        while (true) {
            Ui.cls();
            Ui.println("------------------------------------------------------------------");
            Ui.println("                      WELCOME TO THE CASINO                       ");
            Ui.println();
            Ui.println("     Coins: " + Coins.get());
            Ui.println("------------------------------------------------------------------");
            Ui.println("1) Dice Game");
            Ui.println("2) Slots");
            Ui.println("3) Blackjack");
            Ui.println("4) Lottery");
            Ui.println("5) Back");
            Ui.println("------------------------------------------------------------------");

            int menuChoice = Ui.getValidInt();

            switch (menuChoice) {
                case 1:
                    DICE.start();
                    break;
                case 2:
                    SLOTS.start();
                    break;
                case 3:
                    Ui.println("Not implemented yet");
                    break;
                case 4:
                    LOTTERY.start();
                    break;
                case 5:
                    return;
                default:
                    break;
            }//Switch
        }//main loop
    }
}

@@ -42,16 +42,79 @@
 .main;%0A%0A
+import com.hotmail.kalebmarc.textfighter.casino.BlackjackGame;%0A
 import c
@@ -540,16 +540,87 @@
 yGame();
+%0A    public static final BlackjackGame BLACKJACK = new BlackjackGame();
 %0A%0A    pu
@@ -1749,40 +1749,24 @@
     
-Ui.println(%22Not implemented yet%22
+BLACKJACK.start(
 );%0A 

update casino to support Blackjack