Assignment 59, Three Card Monte

Code

   ///Name: Stella Koliavas
   ///Period: 5
   ///Program Name: Ball Cup
   ///File Name: BallCup.java
   ///Date Finshed: 12/9/15
   
   import java.util.Scanner;
   import java.util.Random;
   
   public class BallCup
   {
    public static void main (String[] args)
    {
    
        Scanner siri = new Scanner(System.in);
        Random r = new Random();
    
        int  g;
        
        System.out.println("You slide up to Greasy Mo's card table and plop down your cash. She glances at you out the
        corner of one of her eyes (she has a lazy eye sometimes deal with it) and she starts shuffling. She lays down he
        cards.");
        System.out.println("Which one is the ace? ");
        System.out.println(" ");
        System.out.println(" \t ##   ##   ## ");
        System.out.println(" \t ##   ##   ## ");
        System.out.println(" \t 1    2    3 ");
        System.out.println(" ");
        g = siri.nextInt();
        int  b = 1 + r.nextInt(3);
        
        if (b == g && b==1 )
        {
            System.out.println("You guessed the number right!");
            System.out.println(" \t AA   ##   ## ");
            System.out.println(" \t AA   ##   ## ");
            System.out.println(" \t 1    2    3 ");
        }
        if (b == g && b==2 )
        {
            System.out.println("You guessed the number right!");
            System.out.println(" \t ##   AA   ## ");
            System.out.println(" \t ##   AA   ## ");
            System.out.println(" \t 1    2    3 ");
        } 
         if (b == g && b==3 )
        {
            System.out.println("You guessed the number right!");
            System.out.println(" \t ##   ##   AA ");
            System.out.println(" \t ##   ##   AA ");
            System.out.println(" \t 1    2    3 ");
        }
       
       
       if (b !=g && b ==2)
        {
            System.out.println("You guessed the number wrong!");
            System.out.println(" \t AA   ##   ## ");
            System.out.println(" \t AA   ##   ## ");
            System.out.println(" \t 1    2    3 ");
        }
        if (b !=g && b==3)
        {
            System.out.println("You guessed the number wrong!");
            System.out.println(" \t AA   ##   ## ");
            System.out.println(" \t AA   ##   ## ");
            System.out.println(" \t 1    2    3 ");
        }
        else if( b !=g && b==1)
        {
            System.out.println("You guessed the number wrong!");
            System.out.println(" \t ##   ##   AA ");
            System.out.println(" \t ##   ##   AA ");
            System.out.println(" \t 1    2    3 ");
        }
        
        }}
        
        
        
    

Picture of the output

Assignment 59