Files
hjha-server/docs/code-review.md
xiaoou 13fe07ea11 chore: 清理冗余 + 文档更新至v3.1 + 打包清单
清理:
  - 删除 C:\Users\... Windows残留路径
  - analyze_stress.py → docs/
  - .gitignore 覆盖 stress_* runtime产物

文档更新:
  - pdk-bot.md: 包庄阈值45%→70%、RolloutPolicy描述、选牌策略
  - code-review.md: 7/7 全部清零
  - PACKAGE.md: 新建打包清单(代码+集成+文档+net48步骤+压测记录)

bot 文件总览:
  核心: PdkBot.cs(194行) + IsmctsBot.cs(331行) = 525行
  文档: pdk-bot.md + code-review.md + stress-test-report.md + PACKAGE.md
2026-07-07 14:56:43 +08:00

19 lines
924 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# PdkBot Code Review
**状态: ✅ 全部清零7/7**
| # | 文件 | 问题 | 状态 | 修复 |
|---|------|------|------|------|
| 1 | IsmctsBot.cs:421 | `InferType` 三元表达式两边相同 | ✅ | 重写,加 LianDui/FeiJi 分支 |
| 2 | IsmctsBot.cs:422 | `InferType` 不识别 LianDui/FeiJi | ✅ | ShunZi/LianDui/FeiJi 各自分支 |
| 3 | PdkBotView:17 | `{ get; init; }` C#9→.NET 4.8 不兼容 | ✅ | → `{ get; set; }` |
| 4 | IsmctsBot.cs | `SimulateWin`/`SimulateOneGame` 80% 重复 | ✅ | 合并为 `SimulateToEnd(firstPlay?)` |
| 5 | IsmctsBot.cs:173 | `unknownCount` 死参数 | ✅ | 移除 |
| 6 | PdkBot.cs:62 | `DecideBaoZhuang``≤10`永远false | ✅ | → 大牌计数 ≥6 |
| 7 | IsmctsBot.cs:363 | `GetMultiGroups(hand,2)` 调两次 | ✅ | `pairs` 变量复用 |
**代码规模:**
- IsmctsBot.cs: 331 行(原始 583 行,-43%
- PdkBot.cs: 194 行
- 总计: 525 行