package lab6;

import java.util.Scanner;
import java.util.Random;

/**
 * Play Rock, Paper, Scissors with the user
 * 
 * @author FILL IN YOUR NAME HERE
 * 
 */

public class Rock
{
   /**
    * Get the user's play and generate a random computer play 
    * then determine the winner.
    *
    * @param args
    */
   public static void main(String[] args)
      {

	String personPlay;    // User's play -- "R", "P", or "S"
	String computerPlay;  // Computer's play -- "R", "P", or "S"
	int computerInt;      // Randomly generated number used to determine
	                      // computer's play

	Random generator = new Random();
	Scanner scan = new Scanner (System.in);

	// Prompt for and read in the player's play -- note that this
	// is stored as a string so you need to use the Scanner class
	// method that reads a string



	// Make player's play uppercase for ease of comparison - use
	// the appropriate method from the String class to do this



	// Generate computer's random play (0,1,2)



	// Translate computer's randomly generated play to string
	// "R", "P", or "S" (store in the computerPlay variable).
	// If play is not a value you expected (0,1,2),
	// set it to "I" (for illegal!) and print a warning message.

	switch (computerInt)
	    {


	    }


	// Print computer's play



	// See who won. Use nested ifs instead of &&. Study the
	// logic started here and continue using that logic.
	if (personPlay.equals(computerPlay))  
	    System.out.println("It's a tie!");
	else if (personPlay.equals("R"))
	    if (computerPlay.equals("S"))
		System.out.println("Rock crushes scissors.  You win!!");
	    else

		// ... Fill in rest of code

    }
}
