Difference between revisions of "CSC111 Homework 4 2014"
(→Requirements) |
(→Problem #2) |
||
Line 28: | Line 28: | ||
<br /> | <br /> | ||
− | =Problem #2= | + | =Problem #2: Magic Lily= |
<br /> | <br /> | ||
− | + | <center>[[Image:ParadisePondArea.png|650px]]</center> | |
<br /> | <br /> | ||
+ | |||
<br /> | <br /> | ||
+ | |||
=Submission= | =Submission= | ||
<br /> | <br /> |
Revision as of 11:59, 19 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.
Problem #2: Magic Lily
Submission
Submit your programs to cs.smith.edu/~thiebaut/111b/submit4.php.