Tuesday, March 4, 2014

HW 4 - Edit your Guessing Game Code

Tonight, you are going to take your code that we created today and change it given some restrictions.
To remind you, the base code came from the end of Chapter 1 in our textbook.  Please note the changes that are required for Python 3 such as print ( "..." ) needs parenthesis, and your input( ) line must have int( ) around it (see my example)


Edit your code as follows:
  - The guessing range is much larger, between 1 and 300 or so.
  - The number of guesses is larger, instead of 6 guesses, make it 10 or 12.
  - The game character is no longer a pirate, change him/her to something else

You will need to:
1) download your .py file from your Drive
2) open it using IDLE (you can also open IDLE first, then select
     File-> open)
3) ReSave your new program as GuessingGameV2 (standing for
     version 2)
4) put your new .py file back in your homework folder on google
    drive.

Good luck my programming peeps


No comments:

Post a Comment