Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 147 - 2615_KEC
P. 147

    Submission Guidelines
                     Code File:

                         o  Submit the Python file (.py) or share the Google Colab link.
                     Screen Recording:
                         o  Include a demonstration showing at least:

                                 An invalid input.
                                 A too-low and too-high guess.

                             A successful guess.

                     Bonus Features
                     Attempt Counter:

                         o  Track and display the number of attempts it took to guess the correct number.
                     Dynamic Range:

                         o  Allow the user to define the range before starting the game.
                     Hints:

                         o  Provide hints like "The number is even" or "The number is divisible by 5" after a certain
                             number of guesses.

                     Multiple Rounds:
                         o  Implement a multi-round game where the user can choose to play again after a successful
                             guess.

                     Tips for Success
                     Handle Invalid Input:
                         o  Use try-except blocks to manage non-numeric inputs gracefully.

                     Test for Edge Cases:
                         o  Ensure the program handles guesses at the boundaries of the range.

                     Keep Feedback Clear:
                         o  Use consistent and friendly messages for all scenarios.

                     Optional Enhancements

                     Add a scoring system that rewards fewer attempts.
                     Save the user's results (e.g., attempts and scores) to a file.
                     Create a GUI using Tkinter for a more interactive experience.

                                                                                                     Hands-On Project  145

| 142 143 144 145 146 147 148 149 150 151 152 |