Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 145 - 2615_KEC
P. 145

    Code:

                     Submission Guidelines

                     Code File:
                         o  Submit the Python file (.py) or share the Google Colab link.

                     Screen Recording:

                         o  Record a video showing the game being played with at least three different outcomes.

                     Bonus Features
                     Dynamic Range:

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

                     Multiple Attempts:
                         o  Modify the program to allow multiple attempts with a limit (e.g., 5 attempts).

                     Hints:

                         o  Add hints after each guess (e.g., "The number is even", "The number is divisible by 5").
                     Score System:

                         o  Implement a scoring mechanism that deducts points for incorrect guesses.

                     Tips for Success
                     Input Validation:

                         o  Use try-except blocks to handle non-numeric input.

                     Debugging:

                         o  Use print() statements to verify values during development.
                     Optimization:

                         o  Ensure the program efficiently handles edge cases like repeated guesses or invalid inputs.

                     Optional Enhancements
                     Create a leaderboard to track multiple players' scores.

                     Add a GUI using Tkinter for a more interactive experience.
                     Generate random ranges for a more challenging game.

                                                                                                     Hands-On Project  143

| 140 141 142 143 144 145 146 147 148 149 150 |