7xGit / 7xGit/7xGit_Task5

Input Validation for Turtles

Open Beginner friendly
#7 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The game does not validate the number of turtles that players can enter. If a user inputs a non-integer value or exceeds the maximum allowed number of turtles, it can lead to runtime errors or unexpected behavior.

Impact:

Runtime Errors: Invalid input types (like strings or special characters) can cause the program to crash or behave unpredictably, disrupting the gaming experience.
Unexpected Behavior: If the number exceeds the maximum limit, the game may attempt to create more turtles than allowed, leading to potential performance issues or logical inconsistencies.
User Frustration: Players may feel confused or frustrated when their input is not accepted or leads to errors, diminishing their enjoyment of the game.

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for the function or module that handles user input for the number of turtles. Add validation to ensure the input is an integer and within the allowed maximum. Write a test to verify the validation works for both non-integer inputs and out-of-range numbers.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.