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

Adding roulette.py for a roulette mini-game #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

useyourshadow
Copy link

No description provided.



if __name__ == "__main__":
asyncio.run(main())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please explain the usage of asyncio here. It may work, and could be a powerful tool in place of threading, but I would like to know exactly what it is accomplishing here.

Copy link
Collaborator

@adamgulde adamgulde left a comment

Choose a reason for hiding this comment

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

See comments in roulette.py.

Please restructure the file to have at least a play() function and a game_title variable. Also instead of get_bet, have your play() function take in a bet integer parameter. Look at how blackjack and coin_flip do these things.

Please add comments.

@adamgulde adamgulde linked an issue Feb 19, 2025 that may be closed by this pull request
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.

Add a roulette game mode
2 participants