Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Redundant Code for Slot Machine Simulation #100

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mubashirm1
Copy link

This PR removes a redundant line of code from the slot machine game simulation. Previously, the code included an else block with a random.choices(symbols, k=3) call, which was unnecessary because the for loop already generates new results in each iteration.

Copy link
Author

@mubashirm1 mubashirm1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned up unnecessary code. The code was tested to ensure that the slot machine generates results correctly and still detects a jackpot without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant