7xGit / 7xGit/7xGit_Task5

Bet Color Check

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

Description

Users can place bets on turtle colors that aren't part of the race. This oversight can lead to confusion and frustration, as it creates the potential for misleading outcomes and a negative user experience.

Impact:

User Frustration: If a user bets on a color that doesn’t correspond to any turtle in the race, they may feel misled or disappointed when their bet is invalid. This can detract from the overall enjoyment of the game.
Misleading Outcomes: Allowing bets on non-existent colors could result in inaccurate feedback, where users think they've won or lost based on a turtle that doesn’t exist.
Game Credibility: The integrity of the game can be called into question if users frequently encounter unexpected or illogical results related to their bets.

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for the function or class that handles placing bets, likely in a file like bet.py or game_logic.py. Find where the turtle colors for the current race are defined and add a validation check that the bet color is in that list. Run any existing tests related to betting to ensure the validation works and returns a clear error message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, game-dev
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.