Difference between revisions of "CSC111 Homework 4 2014"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <bluebox> This assignment can be do individually or in Programming-Pair mode. You are not restricted in your selection of a partner if you are working in pair. ...")
 
(Requirements)
Line 21: Line 21:
 
<br />
 
<br />
 
* The program will stop only once the difference in score between computer and human players is 3.
 
* The program will stop only once the difference in score between computer and human players is 3.
 +
* You should not include the mug of '''Homework 3''' in this  program/game.
 
* The program will keep on prompting the user if the input is not one of 'P', 'R', or 'S'.  The program will accept valid letters in lower or upper case, and with extra spaces before or after the letter.
 
* The program will keep on prompting the user if the input is not one of 'P', 'R', or 'S'.  The program will accept valid letters in lower or upper case, and with extra spaces before or after the letter.
 
* The program will indicate the winner of each round.
 
* The program will indicate the winner of each round.

Revision as of 12:27, 18 February 2014

--D. Thiebaut (talk) 12:26, 18 February 2014 (EST)



This assignment can be do individually or in Programming-Pair mode. You are not restricted in your selection of a partner if you are working in pair. The assignment is due on Thursday evening, February 27th, 2014, at midnight.






Problem #1


Rewrite the Rock-Scissors-Paper game using while loops. Call your program hw4a.py.

Requirements


  • The program will stop only once the difference in score between computer and human players is 3.
  • You should not include the mug of Homework 3 in this program/game.
  • The program will keep on prompting the user if the input is not one of 'P', 'R', or 'S'. The program will accept valid letters in lower or upper case, and with extra spaces before or after the letter.
  • The program will indicate the winner of each round.
  • The program will output a final string at the end, when the difference in score is 3, pointing out and congratulating the winner.