# 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 行