-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathha_olasilik.py
More file actions
31 lines (27 loc) · 872 Bytes
/
ha_olasilik.py
File metadata and controls
31 lines (27 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import random
__author__ = "Hüseyin Altunkaynak"
__copyright__ = "Copyright 2018, Hüseyin Altunkaynak"
__license__ = "GNU General Public License"
__version__ = "1.0.0"
__email__ = "huseyin.altunkaynak51@gmail.com"
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))