Guessing Game 1-100 in Python

Part 1: Basic Game – Up to 75 points
Your solution should correctly accomplish all the following:

  1. Display a user-friendly message to your user explaining the rules and what to expect
  2. Create a random number for the user to guess and repeatedly ask the user until the correct
    number is entered.
  3. Track the guesses the user makes
    • Your program should give helpful feedback to the user on an incorrect guess
    • When the user guesses correctly, your program should:
    ▪ Notify the user of the correct guess
    ▪ Display the number of guesses it took
    ▪ Display all their prior guesses in a user-friendly message (do not simply print
    the raw list variable itself)
    ▪ Ask the user if they wish to play again and restart the game if that is the
    user’s desire. Hint: Make sure to reset variables needed to play the game.
  4. Provide a user-friendly closing message.
    You may choose whatever range of numbers you prefer provided you use the appropriate
    random module function. Keep in mind the range should make sense to be fun and challenging.
    Guessing between 1-5 or 1-10 is not exactly fun. Whatever range you choose, the program
    should choose, not the user. Do not ask the user what range they would like.
    Accomplishing this part correctly will earn you 75 of the 100 points for this project.
    Part 2: Best Score – Up to 15 points
    Your game should also implement a “best score” system that keeps track of the user’s best
    (lowest) guess across all games played. This should be a separate variable from the number of
    guesses it took the user to correctly guess the number. This part is broken into two sections:
  5. Simple Best Guess (worth up to 5 out of 15 possible points)
    • The best guess will be set at the end of the first game and checked after each
    subsequent game.
    • If the program ends and is restarted, this variable will be rest.
  6. File-based best guess (worth the remaining 10 points)
    • The best guess variable is loaded from a file (if available) when the program starts.
    • If the file is unavailable, a message should be displayed and your program should
    still continue to correctly run without the file, using only the variable.
    • At the end of each game when the best guess is checked, your program should save
    the new best guess, if it was achieved by the user.
    • If the file didn’t exist previously, the program should create it.
    • The filename used should be stored in a named constant
    Accomplishing this part correctly will earn you up to 15 more points for this project.

I am beginning python so as simplified as possible please.

New contributor

Caroline Jesserer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật