Prog 89: Baby Blackjack
///Name: Ilana Levy
///Period: 5
///Program Name: Baby Blackjack
///File Name: babyBlackjack.java
///Date Finished: 9/28/2015
import java.util.Random;
public class babyBlackjack
{
public static void main( String[] args )
{
Random r = new Random();
int player1 = 1 + r.nextInt(10), player2 = 1 + r.nextInt(10), house1 = 1 + r.nextInt(10), house2 = 1 + r.nextInt(10);
System.out.println( "Baby Blackjack!" );
System.out.println( "You drew " + player1 + " and " + player2 + ".\n Your total is " + (player1 + player2 ) );
System.out.println();
System.out.println( "The dealer has " + house1 + " and " + house2 + ".\nDealer's total is " + ( house1 + house2 ) );
if ( (house1 + house2) >= (player1 + player2) )
System.out.println( "YOU LOSE" );
else
System.out.println( " YOU WIN" );
}
}