CSC111 Homework 4 2014

From dftwiki3
Revision as of 11:59, 19 February 2014 by Thiebaut (talk | contribs) (Problem #2)
Jump to: navigation, search

--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.



Problem #2: Magic Lily


ParadisePondArea.png



Submission


Submit your programs to cs.smith.edu/~thiebaut/111b/submit4.php.