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

feat: allow specifying number of games via arg #37

Merged
merged 1 commit into from
Aug 13, 2023

Conversation

AndrewADev
Copy link
Owner

@AndrewADev AndrewADev commented Aug 13, 2023

Leverage click (already a dependency) to accept a command line argument for specifying the number of games to play.

$ python ./rps-sim.py --games 15
Result: Player 1 draws
Result: Player 1 draws
Result: Player 1 loses
Result: Player 1 loses
Result: Player 1 wins
Result: Player 1 loses
Result: Player 1 draws
Result: Player 1 loses
Result: Player 1 draws
Result: Player 1 draws
Result: Player 1 draws
Result: Player 1 loses
Result: Player 1 loses
Result: Player 1 wins
Result: Player 1 draws
Simulation finished.

Leverage click (already a dependency) to accept a command line argument for specifying the number of games to play.
@AndrewADev AndrewADev marked this pull request as ready for review August 13, 2023 19:19
@AndrewADev AndrewADev merged commit f0f4784 into main Aug 13, 2023
1 check passed
@AndrewADev AndrewADev deleted the feat/specify-number-games branch August 13, 2023 19:20
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.

None yet

1 participant