摇骰子

This commit is contained in:
2025-09-29 00:00:48 +08:00
parent 4a26177ab9
commit a97bf7d55c
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,46 @@
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)
async def roll_dice() -> str:
return number_arts[get_random_number()]