repl.it
@Juice99/

D&D stat rolling

Python

No description

fork
loading
Files
  • main.py
  • dice.py
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
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
import replit
import time
import dice
more_stats = 0
	
while more_stats == 0:
	print("How would you like to roll your stats or quit?")
	print("(a) 4(-1) * 6?")
	print("(b) 3 * 6?")
	print("(c) 3 * 36")
	print("(d) quit")
	choice = input("")
	if choice == ("a"):
		replit.clear()
		print("your stats are:")
		dice.four_one_six()
		print("-" * 25)
		time.sleep(1)
	elif choice == ("b"):
		replit.clear()
		print("your stats are:")
		dice.three_six()
		print("-" * 25)
		time.sleep(1)
	elif choice == ("c"):
		replit.clear()
		print("-" * 40)
		print("You can choose a row, column or diagonal")
		print("-" * 40)
		dice.three_thirtysix()
		time.sleep(1)
	elif choice == ("d"):
		replit.clear()
		more_stats == 1
		print("Goodbye!")
		time.sleep(1)
		replit.clear()
		break
	else:
		replit.clear()
		print("you must type a, b, c or d")
		time.sleep(1)
		replit.clear()
?