RPG_Game / game_logic.py
TigrexSLBingo's picture
Upload 7 files
6944a09 verified
raw
history blame contribute delete
460 Bytes
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 6 23:09:15 2025
@author: Kevin
"""
import random
def generate_dungeon():
"""
生成隨機迷宮:
- 房間數量介於 10 ~ 20 間
- 初步設計:回傳房間列表,未來可擴充房間連結與結構資訊
"""
room_count = random.randint(10, 20)
dungeon = [{"room_id": i, "description": f"房間 {i}"} for i in range(1, room_count + 1)]
return dungeon