-
Notifications
You must be signed in to change notification settings - Fork 0
/
2d6Dice.py
55 lines (51 loc) · 1.34 KB
/
2d6Dice.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
import Dice as D
import battleActions as bA
import actionRoom as aR
chooseRoll = ""
while chooseRoll != "0":
D.print_page_header()
print(f"\t\t\tMain Menu")
print(f"\t\t\t=========")
print()
print(f"\t1: 1D6")
print(f"\t2: 2D6")
print(f"\t3: 1D3")
print(f"\t4: D66")
print(f"\t5: XDX, select the number of dice to be thrown and max number on dice")
print(f"\t6: Create Room")
print(f"\t7: Start Battle!")
print()
print()
print(f"\t0: Quit")
print()
chooseRoll = input("\tSelect option for dice roll: ")
match chooseRoll:
case "1":
D.print_page_header()
D.d1x6Throw()
D.print_page_footer()
case "2":
D.print_page_header()
D.d2x6Throw()
D.print_page_footer()
case "3":
D.print_page_header()
D.d1x3Throw()
D.print_page_footer()
case "4":
D.print_page_header()
D.d66Throw()
D.print_page_footer()
case "5":
D.print_page_header()
D.multiThrow()
D.print_page_footer()
case "6":
aR.createRoom()
case "7":
bA.battleMenu()
case "0":
print("Bye")
break
case _:
print("Not a valid option")