Skip to content

v7.4

Latest

Choose a tag to compare

@XMuli XMuli released this 23 Feb 09:43
v7.4
b341da4

🎮 ChineseChess v7.4.0 Release Notes

✨ New Features

  • Puzzle Mode — 5 classic endgame puzzles (Double Rook Checkmate, Horse-Cannon Combo, Iron Door Bolt, Double Cannon,
    Crouching Horse) with selectable AI difficulty
  • AI Difficulty Selection — Easy / Medium / Hard difficulty for human-vs-AI mode
  • AI Engine Rewrite — Upgraded from single-layer greedy search to Alpha-Beta pruning (up to depth 5), with
    piece-position evaluation tables (Horse/Rook/Cannon/Pawn) and move ordering
  • Network Undo — Undo moves now sync between peers in network mode (0xFE protocol command)

🎨 Visual Improvements

  • Board background with wood-grain gradient and dark wood outer frame
  • Chess pieces rendered with radial gradient, drop shadow, and inner decorative ring
  • Selected piece highlighted in gold; text in warm tones
  • Board lines in dark brown with star-point markers at cannon and pawn positions
  • "Chu River / Han Border" text rendered semi-transparent
  • Red side Rook/Horse characters changed to traditional forms (俥→車, 傌→馬)

🐛 Bug Fixes

  • Fixed canMove() incorrectly returning true by default (now returns false)
  • Fixed isGeneral() not properly detecting check during Black's turn
  • Fixed timer not stopping when undoing back to move 0

Build & CI

  • Rewrote build.bat as a multi-config batch build script supporting Qt6 MSVC/MinGW + Qt5 MSVC x64/x86 (4 configs,
    one-click build & package)
  • Added version override (VERSION_OVERRIDE) and parallel compilation support
  • Added SKIP_DEPLOY CMake option to prevent redundant Qt deployment during batch builds
  • Inno Setup script now accepts external parameters (version, architecture, output directory)
  • GitHub Actions upgraded to Qt 6.8.3 across all platforms, removed debug output clutter
  • macOS build artifact architecture label corrected to arm64
  • Upgraded action-gh-release to v2, modernized environment variable syntax

🎮 中国象棋 v7.4.0 Release Notes

✨ 新功能

  • 残局挑战模式 — 新增 5 个经典残局(双车错、马后炮、铁门栓、重炮、卧槽马),支持选择 AI 难度对弈
  • AI 难度选择 — 人机对战支持简单/中等/困难三档难度,启动时可选
  • AI 引擎重写 — 从单层贪心搜索升级为 Alpha-Beta 剪枝算法(最高 5
    层深度),新增棋子位置评估表(马/车/炮/兵),走法排序优化
  • 网络对战悔棋 — 网络模式下支持悔棋同步(0xFE 协议命令)

🎨 视觉优化

  • 棋盘背景改为木纹色渐变,外围深木色桌面底色
  • 棋子改为径向渐变立体效果,带阴影和内圈装饰环
  • 选中棋子金色高亮,文字改为暖色调
  • 棋盘线条改为深棕色,新增星位标记(炮位/兵卒位十字花)
  • 楚河汉界文字半透明化
  • 红方車/馬字形改为传统写法(俥→車、傌→馬)

🐛 修复

  • 修复 canMove() 默认返回 true 的逻辑错误,改为 false
  • 修复 isGeneral() 黑方回合未正确检测将军的问题
  • 修复悔棋到第 0 步时计时器未停止的问题

🔧 构建 & CI

  • build.bat 重写为多配置批量构建脚本,支持 Qt6 MSVC/MinGW + Qt5 MSVC x64/x86 四种配置一键编译打包
  • 支持版本号覆盖(VERSION_OVERRIDE)和并行编译
  • CMakeLists.txt 新增 SKIP_DEPLOY 选项,避免批量构建时重复部署
  • Inno Setup 脚本支持外部传参(版本号/架构/输出目录等)
  • GitHub Actions 全平台升级至 Qt 6.8.3,清理冗余调试输出
  • macOS 构建产物架构标记修正为 arm64
  • action-gh-release 升级至 v2,环境变量写入方式现代化

图片