Skip to content

Hüseyin Altunkaynak #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 27 additions & 13 deletions olasilik.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
"""
A tiny probability toolkit uses `random` module.
import random

- dice_roll(how many of them)
- head_or_tail()
- rock_paper_scissors()
"""
__author__ = "Hüseyin Altunkaynak"
__copyright__ = "Copyright 2018, Hüseyin Altunkaynak"
__license__ = "GNU General Public License"
__version__ = "1.0.0"
__email__ = "[email protected]"

def dice_roll(how_many_dice):
"""
Calculation of dice probabilities
"""
dice = ["yek", "dü", "se", "çehar", "penç", "şeş"]
list_dice_probability = []
for i in range(how_many_dice):
list_dice_probability.append(random.choice(dice))
return list_dice_probability

def dice_roll(how_many):
return

def head_or_tail():
return

"""
Head or Tail
"""
return random.choice(["Head", "Tail"])

def rock_paper_scissors():
return

"""
Classic rock-paper-scissors for 2 people
"""
first_person = random.choice(["Rock", "Paper", "Scissors"])
second_person = random.choice(["Rock", "Paper", "Scissors"])
return print("First Person: {}\nSecond Person: {}".format(first_person, second_person))