-
Notifications
You must be signed in to change notification settings - Fork 79
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: adds a short risiko simulator #167
base: main
Are you sure you want to change the base?
Conversation
src/risiko.py
Outdated
if i == 0 | ||
else f"{red[i]} (M)" | ||
if i == 1 | ||
else f"{red[i]} (O)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
un po' confusionario
src/risiko.py
Outdated
else f"{blue[i]} (M)" | ||
if i == 1 | ||
else f"{blue[i]} (O)" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
questo codice è uguale a quello sopra, c'è molta ridondanza, andrebbe ridotta, potresti creare una funzione che fa questo
inoltre, sappi che gli operatori ternari incatenati sono poco leggibili, soprattutto in python
…dante Introduzione di un metodo print_dice senza operatore ternario, refactor di display_results
…rs in randint(1,6) con valori costanti PEP8 compliant
No description provided.