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

Hüseyin Altunkaynak #1

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
31 changes: 31 additions & 0 deletions ha_olasilik.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import random

__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 head_or_tail():
"""
Head or Tail
"""
return random.choice(["Head", "Tail"])

def rock_paper_scissors():
"""
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))