repl.it
@RyanCrouch/

BROCKEN

Python

No description

fork
loading
Files
  • main.py
main.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import random
from random import randrange

def game():
  num1 = randrange(1,7)
  print("player 1s username is num1")
  num2 = randrange(1,7)
  print("player 2s username is num2")

  print("player 1 will start")
  yee = input("type roll to roll the 2 6 sided dice >")
  if yee == "roll":
   s1 = (random.randrange(1,7))
   print("roll 1 was a" , s1)
   s3 = (random.randrange(1,7))
   print("roll 2 was a" , s3)
   a1 = s1 + s3

   if s1 == s3
    yee = input("type roll to roll the 2 6 sided dice >")
  if yee == "roll":
   s1 = (random.randrange(1,7))
   print("roll 1 was a" , s1)

   if a1 == 2 4 6
    print("+10 points")
  else:
   if a1 == 1 3 5 7
   print("-5 points")
  
   print("roll 1 and roll 2 added up is" , a1)
  else:
    print("wrong")


 
  print("player 2 will go next")
  yee1 = input("type roll to roll the 2 6 sided dice >")
  if yee1 == "roll":
   s2 = (random.randrange(1,7))
   print("roll 1 was a" , s2)
   s5 = (random.randrange(1,7))
   print("roll 2 was a" , s5)
   a2 = s2 + s5
   print("roll 1 and roll 2 added up is" , a2)
  else:
    print("wrong")

  if a1 == a2:
   print("draw roll again")
  else:
   if a1 > a2:
     print("player 1 wins")
   else:
     print("player 2 wins")
game()
Fetching token
?