Description: This is a simple CASINO program which rus in an MS-DOS window. It has games like Roulette, Black Jack,Bingo,and Poker. It will be updated frequently so please check for source code intermittently

public static int i;
private static int decksize; //holds the size of both player and computer decks
private static int sum; // holds the final sum of the player's hand
private static int compsum; //holds the final sum of the computer's hand
private static int temp; //a temporary variable that is added to user's sum
private static int additiontest; //a test to determine if the users number is over 21
private static int compadditiontest; // a test to ensure computer is not over 17
private static int comptemp; //a temporary variable that is added to computer's sum
private static boolean sumboolean; //returns true if user's sum is not over 21
private static boolean compsumboolean; //returns true if compute's sum is not over 21
private static boolean playagain; //the returns true if user wants to play again
public static Carddeck deck = new Carddeck();
public static Hand player = new Hand(deck,0);
public static Hand computer = new Hand(deck,0); //a new hand
public static Prompt userprompt = new Prompt(); //prompt class
public static Game game = new Game(); //the game class
public static int userchoice; //holds whether users want to perform a hit me or a stand
public static double currentfunds; //this is self explanatory
public static int times = 0; //the number of times the users play the game

public static void play() //this is called in the casino main
{
System.out.println("B L A C K J A C K");
do
{
blackjack();
player.removeAllElements();
computer.removeAllElements();
Game game = new Game();
playagain = game.play();
times += 1;
}while(playagain==true);

}
System.out.println("Thank you for playing Hello World Casino.\nBye");
}

}

//game
import java.util.*;

public class Game
{
public boolean playagain; //the play again boolean
public static boolean goodbet; //makes sure user does not enter a number greater than the amount available for bet
public int gameoption; //holds wether user wants to play again or not
public int wrongnumber = 1;//prevents the user from entering the wrong number not on the list.
public static double Funds; //holds the users money
public static double betamount;
public static double returnedfunds;//the amount returned from the games
public boolean play()
{
while(wrongnumber==1)
{
System.out.println("Would you like to play again\n 1. Yes\n 2. No ");
Prompt userPrompt = new Prompt();
gameoption = userPrompt.integerInput();
if(gameoption==1)
{
playagain=true;
wrongnumber = 0;

else
{
System.out.println("You do not have any more money to bet");
goodbet = false;
}

}

return betamount;

}
}

//Hand.java
import java.util.*;

public class Hand
{
public Carddeck deck; //all it says is u are expecting a variable of type carddeck.
public Card card;
public int i;
public int j;
public int handSize; //holds the size of the vector player vector
public int decksize; //holds the size of the vector also
public int myCard; //holds cards got from the card deck
public Card temp; //a temporary variable for cards

public Vector cardHand = new Vector();
public Hand(Carddeck newdeck,int numberOfCards) //for the intial issuance of cards to both players.the newdeck just points to the same vector called deck.
{
deck.deckinitialize();
deck = newdeck;
for(i=0;i {
cardHand.add(deck.uniqueCard());
}

private boolean playagain;
public int x; // this holds the random number
public int userguess; //holds the guesses of the user
public double currentfunds;
public static int times = 0 ; // this is to make sure the funds does not re initialize

do
{
higherlower();
Game game = new Game();
playagain = game.play();
times = times +1;
}while(playagain==true);

}

}

//Poker.java
import java.util.*;

public class Poker
{
public static Carddeck deck = new Carddeck();
public static Hand player = new Hand(deck,0);
public static Prompt prompt = new Prompt();
public static Game game = new Game();

public static int i;
public static int decksize; // hods the user's decksize
public static int exchangeCards; // holds the number of cards the user wants to exchange.
public static int menuErrorProof; // ensures that the user puts in the approriate number from the menu list.
public static int cardnos; //holds the position of the card the user wants to change
public static boolean goodInput; //this checks to make sure the user does not put a card position number above 5
public static boolean wins; //checks if there is any wins for the user
public static boolean playagain; //self explanatory
public static double currentfunds; //self explanatory
public static int times = 0; //the number of times the user plays the game

//Roulette.java
import java.util.*;
public class Roulette
{
public static Random randnum = new Random(System.currentTimeMillis());
public static Game game = new Game();

public static int betChoice; // holds the number users choose during bets.
public static String numtype; // holds wether number is even or odd.
public static int numberCode; // test condition for number bets
public static int evenOddCode; // test condition for even odd bets
public static boolean playagain; // the play again boolean.
public static int times = 0;
public static double currentfunds;

menuChoice = userPrompt.integerInput();
if (menuChoice==1)
{
numberCode = 1; // makes the computer do a comparison
numberChoice1();
System.out.println("Choose From the Options above to place a Bet or Roll Wheel");
}
if (menuChoice==2)
{
evenOddCode = 1;
numberChoice2();
System.out.println("Choose From the Options above to place a Bet or Roll Wheel");
}

if(menuChoice==3)
{
numberChoice3();
goodInput = 0;

}

}// end of while loop.
}

public static void numberChoice1() //to place a bet on a number
{
System.out.println("Please choose a number between 0 and 28 to place bet on");
int loop=0;
while(loop!=1)
{
Prompt userPrompt = new Prompt();
betChoice= userPrompt.integerInput();
if (betChoice<29 && betChoice>=0)
{
System.out.println("Your bet is currently placed on " + betChoice);
loop = 1;
}
else
{
System.out.println("This number is not in the range specified");
System.out.println("Enter a new number to place bet on");
}

} // end of while loop.
} //place bet on number

public static void numberChoice2() //to place a bet on number type(even or odd)
{

/*the following code below is to evaluate all the possible win conditions*/

if(test==0)// beginning of even mod
{
if(numtype=="even") // converting numtype to a number for program to evaluate.
{
System.out.println("The ball stopped at " +wheelnum);
System.out.println("Your even number guess was right");
currentfunds = currentfunds;