Skip to content

Pull Request na vypracovani workshopu uzivatelem d4ny4bl3 #14

Open
juicyscoop wants to merge 4 commits intoCodersLab-CZ:masterfrom
d4ny4bl3:master
Open

Pull Request na vypracovani workshopu uzivatelem d4ny4bl3 #14
juicyscoop wants to merge 4 commits intoCodersLab-CZ:masterfrom
d4ny4bl3:master

Conversation

@juicyscoop
Copy link

No description provided.

Copy link
Author

@juicyscoop juicyscoop left a comment

Choose a reason for hiding this comment

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

Moc hezke! Jen par pripominek :)


while True:
guess = input("Guess the number: ")

Copy link
Author

Choose a reason for hiding this comment

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

Chybi kontrola validity vstupu

print("You entered the same number!")
# user_guess = sorted(user_guess)
print(f"Your numbers are currently: {tuple(sorted(user_guess))}")
elif num < 1 or num > 49:
Copy link
Author

Choose a reason for hiding this comment

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

validitu vstupu je dobre predradit jakekoli jine kontrole


if "+" in type_and_modifier:
x = type_and_modifier.split("+")
type_of_dice, modifier = map(int, x) # type_of_dice, modifier = x
Copy link
Author

Choose a reason for hiding this comment

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

hezky!

else:
return "Wrong dice"

if number_of_rolls == "":
Copy link
Author

Choose a reason for hiding this comment

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

doporuil bych spis if not number_of_rolls: -> prazdny string ma bool hodnotu False

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.

2 participants