# Investigation-Deduction Game **Repository Path**: KOFLOL/investigation-deduction-game ## Basic Information - **Project Name**: Investigation-Deduction Game - **Description**: No description available - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-07 - **Last Updated**: 2025-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 侦探推理游戏 这是一个基于 AI 的交互式侦探推理游戏。玩家可以通过提问来收集线索,最终尝试解决案件。 ## 环境要求 - Python 3.7+ - Ollama(需要在本地运行) ## 安装步骤 1. 克隆项目并进入项目目录: ```bash git clone [项目地址] cd [项目目录] ``` 2. 创建并激活虚拟环境: ```bash # Windows python -m venv venv .\venv\Scripts\activate # Linux/Mac python3 -m venv venv source venv/bin/activate ``` 3. 安装依赖: ```bash pip install -r requirements.txt ``` ## 运行游戏 1. 确保 Ollama 服务正在运行 2. 运行游戏: ```bash python detective_game.py ``` ## 游戏玩法 1. 输入"开始"来开始新游戏 2. 系统会展示一个案件的基本信息 3. 你可以自由提问来了解更多细节 4. 当你认为找到答案时,输入"解决案件" 5. 输入你的推理过程 6. 系统会评估你的答案并给出分数 ## 游戏指令 - `开始` - 开始新游戏 - `解决案件` - 提交你的推理结果 - `退出` - 结束游戏 ## 评分系统 游戏会根据以下因素评分: - 提问次数(越少越好) - 用时(越短越好) - 推理的准确性(包括凶手、手法和动机)