Homework 5: Rock - Paper - Scissors Game

Objective: To play the rock-paper-scissors game

Write a program to ask a player to input either Rock, Paper, or Scissors, playing against the computer, and then make one of the following happen: Here is some sample output showing how your program should work:
[cpersiko@localhost cs111a]$ java Lab2
Welcome to Craig's Rock-Paper-Scissors Game
Please enter your move: rock
Computer's move is Scissors
You Win! Rock Breaks Scissors!!
[cpersiko@localhost cs111a]$ java Lab2
Welcome to Craig's Rock-Paper-Scissors Game
Please enter your move: Rock
Computer's move is Paper
Computer Wins! Paper Covers Rock!!
[cpersiko@localhost cs111a]$ java Lab2
Welcome to Craig's Rock-Paper-Scissors Game
Please enter your move: Paper
Computer's move is Paper
Tie!!
[cpersiko@localhost cs111a]$ java Lab2
Welcome to Craig's Rock-Paper-Scissors Game
Please enter your move: paper
Computer's move is Scissors
Computer Wins! Scissors Cut Paper!!
[cpersiko@localhost cs111a]$ java Lab2
Welcome to Craig's Rock-Paper-Scissors Game
Please enter your move: Scissors
Computer's move is Paper
You Win! Scissors Cut Paper!!
[cpersiko@localhost cs111a]$ java Lab2
Welcome to Craig's Rock-Paper-Scissors Game
Please enter your move: scissors
Computer's move is Paper
You Win! Scissors Cut Paper!!
[cpersiko@localhost cs111a]$ java Lab2
Welcome to Craig's Rock-Paper-Scissors Game
Please enter your move: fish
Computer's move is Paper
Invalid move!!
[cpersiko@localhost cs111a]$ 

Here are the hints and rules:

Return to CS 111A page