55 lines
826 B
Python
55 lines
826 B
Python
number_arts = {
|
||
1: ''' _
|
||
/ |
|
||
| |
|
||
| |
|
||
|_|
|
||
|
||
''',
|
||
2: ''' ____
|
||
|___ \\
|
||
__) |
|
||
/ __/
|
||
|_____|
|
||
''',
|
||
3: ''' _____
|
||
|___ /
|
||
|_ \\
|
||
___) |
|
||
|____/
|
||
''',
|
||
4: ''' _ _
|
||
| || |
|
||
| || |_
|
||
|__ _|
|
||
|_|
|
||
''',
|
||
5: ''' ____
|
||
| ___|
|
||
|___ \\
|
||
___) |
|
||
|____/
|
||
''',
|
||
6: ''' __
|
||
/ /_
|
||
| '_ \\
|
||
| (_) |
|
||
\\___/
|
||
'''
|
||
}
|
||
|
||
def get_random_number(min: int = 1, max: int = 6) -> int:
|
||
import random
|
||
return random.randint(min, max)
|
||
|
||
def roll_dice(wide: bool = False) -> str:
|
||
raw = number_arts[get_random_number()]
|
||
if wide:
|
||
raw = (raw
|
||
.replace("/", "/")
|
||
.replace("\\", "\")
|
||
.replace("_", "_")
|
||
.replace("|", "|")
|
||
.replace(" ", " "))
|
||
return raw
|