Skip to content

Releases

OpenChess v3.1.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 00:02

新功能

  • 预走子(Premove):支持 Bot、局域网及 P2P 对局;对手走完后重新校验,预走子的兵自动升变为后。
  • Bot 训练模式:六档难度与练习说明、无限悔棋、两阶段提示(先高亮棋子,再显示箭头)、双方每步实时 Review 估算,以及可开关的引擎评分条。
  • 训练归档:对局结束自动保存至 Training 文件夹和历史记录,显示保存结果。手动保存 PGN 使用系统保存面板,保留原始文件名。
  • 自动更新设置:默认每天检查稳定版本,支持下载校验、空闲安装和失败回退。

修复与改进

  • 修复所有页面在高 DPI、窗口缩放和留白布局下的点击偏移。
  • 改善 Windows HiDPI 字体与矢量图标清晰度,随显示密度变化重建字体。
  • 区分悔棋与重新开始图标,修复状态框溢出、分析面板间距及滑条填充边界。
  • 引擎条为完整宽度预留空间;数字居中,按实际黑白底色自动切换字体颜色,翻转棋盘及评分变化后立即更新。
  • 实时评级保留历史结果,悔棋只撤销被移除着法的评级;快速估算不授予 Brilliant(!!)。
  • 完整 Review 使用合法连续吃回与净子力损失筛选弃子,排除普通交换;立即吃回不再评为 Great(!)。

下载

  • macOS:下载 .dmg,将 OpenChess 拖入 Applications。
  • Windows x64:下载 Windows ZIP,解压后运行 openchess.exe。保留 Stockfish 检测及自动安装功能。

核心及新增平台适配采用 C;保留 V3.0.0 的 P2P 联机功能。快速评级仅为估算,完整复盘结果可能不同。

构建来源:macOS 为 v3.1.0;Windows 为 e1fb7e9,额外修复 Windows SDK 头文件兼容,功能版本同为 3.1.0。

OpenChess v3.0.0 — P2P Friend Games

Choose a tag to compare

@github-actions github-actions released this 16 Oct 15:50

OpenChess V3.0.0 introduces built-in P2P friend games, replacing the hosted online entry points.

中文

  • 内置加密 WebRTC 联机,无需 OpenChess 游戏服务器、信令服务器或账号。
  • 房主创建并发送邀请,好友导入后回传回应,房主导入回应即可自动开局。
  • 支持白方/黑方/随机、十一种时限、后台计时、认输、和棋及双方同意后交换颜色重赛。
  • 双方校验走子,房主统一管理计时;重复和过期走子不会重复执行。
  • 支持本地棋谱、赛后分析和连接内胜/和/负比分;P2P 不计入 ELO 或 Puzzle Rating。
  • 原有电脑对弈、局域网对弈、解题、每日题、分析及离线档案继续保留。
  • 修复多窗口点击坐标问题及开局时间差导致的偶发错误断线。

使用首页的 P2P 好友对弈。默认使用公共 STUN 辅助发现地址,可自行编辑或清空;受限 NAT/防火墙可能无法直连,可配置自己的 UDP TURN 或使用虚拟局域网。原有公开匹配、云端账号和社交入口已停用。当前不支持断线续局。

English

  • Encrypted, reliable WebRTC DataChannels with manual invitation / response exchange. No OpenChess account, game server or signaling server.
  • Color selection, eleven time controls, background clocks, resign/draw, mutual rematches with swapped colors, local history and analysis.
  • Independent move validation, generation/ply deduplication, creator-authoritative clocks and disconnect handling.
  • P2P games are unrated; local training, profiles and existing desktop features remain available. Hosted account/matchmaking/social entry points are retired.
  • Optional configurable STUN / UDP TURN. Direct connectivity depends on the peers' networks; reconnect/resume is not included.

Validation: full macOS regression suite, eight consecutive real WebRTC lifecycle tests with deliberately delayed frame processing, and two independent local app instances exercising invitation/response exchange, moves, resignation and rematch. Both platform installers include the pinned WebRTC runtime and license notices.

联机与构建说明 / P2P guide

Downloads: macOS Apple Silicon DMG and Windows x64 portable ZIP. Extract the full Windows archive before launching.

OpenChess v2.1.1

Choose a tag to compare

@github-actions github-actions released this 16 Oct 13:20

OpenChess V2.1.1

  • 新增深色模式、10 个应用主题、字体选择和分页外观预览。
  • 改进谜题难度、计分切换、重试、升变、答案步法和分析入口。
  • 修复历史步法点击和方向键导航;历史试走保留为分支,不覆盖实际对局。
  • 优化升变悬停效果、矢量图标、面板描边及中英文显示。
  • 细化引擎一选与其他准确着法评级;增加精彩(!!)与优秀(!)动画。

下载

  • macOS:Apple Silicon(arm64),DMG 拖入 Applications 安装。
  • Windows:10/11 x64,完整解压 ZIP 后运行 OpenChess.bat 或 openchess.exe。
  • macOS 包内包含运行库;Windows 包内包含所需 DLL,无需安装开发工具。

Full Changelog: v2.1.0...v2.1.1

OpenChess v2.1.0

Choose a tag to compare

@github-actions github-actions released this 16 Oct 13:12

OpenChess V2.1.0

  • 统一首页、侧栏、淡蓝色界面与自定义背景。
  • 增加 PGN/FEN 导入、摆棋、分析保存及变例恢复。
  • 增加好友、私信、约战、重赛及评分历史。
  • 增加智能解题训练、会话历史和永久每日题归档;每日题不计分。

下载

  • macOS:Apple Silicon(arm64),DMG 拖入 Applications 安装。
  • Windows:10/11 x64,完整解压 ZIP 后运行 OpenChess.bat 或 openchess.exe。
  • macOS 包内包含运行库;Windows 包内包含所需 DLL,无需安装开发工具。

Full Changelog: v2.0.1...v2.1.0

OpenChess v2.0.1

Choose a tag to compare

@InfinityTian InfinityTian released this 14 Oct 01:37

Changed

  • Clicking now follows the press/release sequence in the first half of
    Pick.mov: the piece picks up at the actual cursor position and returns to
    the square centre over 180ms after release. The cyan bloom only expands;
    its inner tail clears outward and fades, leaving the selected-square tint.
    Clicking the same piece retriggers the effect instead of deselecting it.
  • Clicking a piece now shows a finite filled cyan bloom; held pieces pulse
    between normal size and 16% larger throughout a drag, including while still.
    Releasing preserves the current pulse size and smoothly settles to normal.
  • Added the vector Forced arrow badge from 18.png; badges rasterize at 512px
    and use the reference palette throughout board, list and reports.
  • The move list follows 19.png: bold grade-coloured SAN, alternating rows,
    white active moves, variation guides and split rows at White alternatives.
    Its evaluation graph shows grade dots and supports click-to-position.
  • The Analysis sidebar tab shows the 13.png per-side counts, including Forced,
    plus accuracy when a review is complete.
  • Checkmate and draw effects follow Checkmate.mov and Draw.mov: labelled
    symbols over the king squares shrink into persistent vector corner badges.
    Navigation clears old effects; Animation None shows the settled badges.
  • Click moves, reverse moves and previews share a 320ms cadence. Selection uses
    a brief lift and cyan framing from Pick.mov; dragging has a movement threshold
    and settles from the release position instead of replaying from its origin.
  • Move-quality badges use larger centred glyphs and the reference palette;
    board badges sit over the square's upper-right corner and appear on arrival.
    Mainline and variation moves share the same circular icons.
  • Arcade trails are wider, fade on arrival and stay within the travelled path.
  • Analysis has clickable Previous/Next controls. Each navigation input settles
    the previous animation before starting the latest move, so rapid stepping
    never queues stale positions. Move-list jumps clear animations, and reverse
    castling animates both king and rook.

Added

  • Vector move-quality badges. The badges are SVG-shaped (from the provided
    chess_badges_svg set plus Best/Excellent/Good) and loaded through SDL_image's
    SVG support, so they stay crisp at any size. The glyph outlines are generated
    with scripts/gen_badge_glyphs.py (nanosvg ignores <text>, which previously
    dropped ?!, ??, ?, !, !!). Applied to the board, move list, coach line
    and review report. Excellent now uses a thumbs-up and Good a check.
  • Game report screen. After a review a dedicated report shows White vs
    Black
    columns: player names, per-side accuracy and average centipawn
    loss
    , a per-class table (count | badge | count), and a Game Rating row.
    Open it with V or the Report button once a review exists.
  • Coach lines. The analysis panel shows the last move and its grade
    (e.g. Nd7 is best, Bd2 is a mistake) above the engine's current best move.
  • Position-based opening explorer. The Openings browser matches the board
    position
    , so different move orders that transpose count as the same opening.
    You can play moves on the board to walk the book, flip with F, and
    moves are animated.
  • Opening code. Openings are shown as ECO · Name (e.g.
    A00 · Amar Opening) in Analysis and the browser.
  • Online/Offline switch. A clickable pill on the welcome screen (and
    Settings → Gameplay → Mode) toggles offline mode, which disables the online
    menu entries and lets you create a local profile (name + ratings) from the
    Account screen without a server.
  • The evaluation bar is wider with the numeric score drawn inside it, and it
    flips with the board.
  • Arcade animation rework. Moves slide straight (no z-hop or magnify) with a
    tapered comet trail — blue for White, red for Black. A check shows a
    white corner-bracket halo around the king, and a capture shows a red ring
    plus a shrink/fade burst. Dragging hangs the piece below the cursor with a
    gentle size pulse and drops it with a fast slide; arrow-key tree navigation is
    animated (forward and reverse).
  • Chess.com-style move indicators: a soft dot for quiet targets, a thick red
    ring for captures, and a radial glow behind the selected piece.
  • The app icon has rounded corners (scripts/round_icon.py).

Changed

  • Importing a PGN now always clears the previous analysis tree/board and the
    text box
    before loading (no more merging into the old tree), and the
    uploaded PGN is shown word-wrapped in the import box. Review no longer
    starts automatically
    on upload — click Analyze / press V.
  • The arcade trail is now a thin, uniform-width band with a fade and a
    dynamic length (grows from the start, holds about three squares, shrinks to
    nothing); blue for White, red for Black.
  • The capture indicator is a true ring (no filled centre) with a
    subtle glow; the selection glow is likewise toned down.
  • The factory appearance is Icy Sea board + Cases pieces + Arcade animation.
  • The check animation now shows a near-opaque light mask, an expanding inner
    rectangle and corner brackets growing from the king to the square edges, then
    fading (matched to check.mov).
  • Review is decoupled from navigation: clicking/arrowing through moves no
    longer interrupts a running review, and it no longer auto-opens the report.
    The button reads Analyze while reviewing and Report only when done.
  • Brilliant is now checked before Great, and a sacrifice is recognised
    when the destination can be won (a cheaper attacker or net material loss), so
    moves like 21...Ng4 and 31...Rxf5 classify as !!.
  • The welcome title reads OpenChess.

Fixed

  • Dragging a piece now keeps it centred on the cursor (no downward bias) with a
    clearer size pulse, plus a soft blue halo and a cyan highlight on the
    square under the cursor.
  • The capture indicator is now a high-resolution, anti-aliased ring (built
    once into a texture) instead of a low-res raster ring.
  • The GUI test suite no longer writes the user's real config
    (OPENCHESS_CONFIG is redirected to a temp file), which had been corrupting
    the saved board/piece selection; the default stays Icy Sea + Cases + Arcade.

Added (earlier in this release)

  • Board move-quality badges. In Analysis the played move's destination square
    is tinted and a colored circle badge is drawn on it: green star (best), blue
    ! (great), teal !! (brilliant), amber ?!, orange ?, red ??/X, and
    brown book.
  • Chess.com-style move tree panel. The move list is now a scrollable table
    (move number, White, Black) with badges to the left of each move and variations
    inline on indented lines with a guide bar (e.g. 1. e4 e5 ( 1...c5 )). The
    current move is highlighted and the panel auto-scrolls to follow play; the
    mouse wheel and click-drag scroll it.
  • Engine panel restyle. A coach line shows the score chip plus
    <best move> is best (with a star) and the search depth; engine lines use
    score chips, and the opening name is shown for the current position.
  • The vertical evaluation bar shows the numeric score and now flips with the
    board.

Changed

  • ! is reserved for Great moves; Best no longer shows "!" (it uses a
    green star badge on the board instead).
  • Brilliant (!!) now requires a genuine sacrifice: material is given up and
    the piece can actually be captured on its destination square, and the position
    stays good.
  • Promotion shows the Q/R/B/N chooser on both drag and click moves, with the
    queen marked as the default; double-clicking the target square promotes to
    a queen directly.

Windows 包已更新:加入 Stockfish 检测和后台自动安装,优先复用已有引擎。已通过 Windows 回归测试、官方引擎安装和 UCI 通信验证。构建源码:aadcb68。

OpenChess v2.0.0

Choose a tag to compare

@InfinityTian InfinityTian released this 25 Sep 05:10

Added

  • Accounts & ratings. Optional SQLite-backed accounts on the server
    (server/accounts.c, PBKDF2-HMAC-SHA256 password hashing). Log in / register
    from the online lobby (L), log out (O); the session token is saved in
    chess.conf for auto-login. PvP Elo (opt-in Rated toggle, R) and a
    puzzle Elo are stored per account; puzzle results sync when logged in.
  • Puzzles mode. A new welcome-menu entry trains Lichess puzzles with rating
    bands and themes (attacking/defending/endgame/…), including Hint and
    Reveal (marked incorrect) and a local puzzle Elo. scripts/import_puzzles.py
    builds a small local subset from the HF dataset
    (Lichess/chess-puzzles-with-games) or the official Lichess puzzle CSV, with
    theme-balanced sampling.
  • PGN import/export with variations. A move-tree module (src/movetree.*) and
    a PGN parser/serializer (pgn.c) that handle ( … ) variations, {} comments,
    $n NAGs, [%eval] and headers.
  • Move review. A chess.com-style classifier (src/review.*) for Brilliant,
    Great, Best, Excellent, Good, Book, Inaccuracy, Mistake, Blunder and Miss,
    plus an opening-book loader (src/opening.*) and
    scripts/import_openings.sh (lichess openings, CC0). In Analysis, press V
    to review the game — a Stockfish pass with a progress bar grades every move and
    shows its glyph in the move list.
  • PGN import. Ctrl+O opens an import pop-up with a paste box (Ctrl+V) and
    an Upload button (loads a .pgn from the games folder); the loaded game is
    set up in Analysis and can be reviewed/exported (with variations).
  • Openings browser. A new welcome entry lists the lichess opening book
    (CC0) with search; select a line, step it with Left/Right, and press Enter to
    load it into Analysis. scripts/import_openings.sh fetches assets/openings.tsv.
  • Account screen. A visible Account menu entry (plus L/O in the
    online lobby) with local offline profile and puzzle rating, and online
    login/register with PvP + puzzle ratings synced from the server.
  • Move-tree merge. Importing a second PGN that starts from the same position
    now merges it into the current analysis tree, so shared prefixes are reused
    and the new lines become sibling variations (src/movetree.c: mt_merge,
    mt_copy, mt_find_child).
  • Clickable move list + variations. In Analysis, click any move (or a var:
    entry) to jump to that position, use Left/Right to step, and play after going
    back to create a new variation (the old line is kept).
  • Analysis import/analyse UI. Visible Import and Analyze buttons;
    Upload uses a native file dialog (any path), and imported games are
    analysed automatically with a graded summary.
  • Shared uci_to_move() in the rules engine (used by the server and puzzles).

Changed

  • The PGN move list now shows a full move per row (1. e4 e5).
  • The welcome menu now shrinks its buttons adaptively so any number of entries
    fits without overlapping the footer.

Fixed

  • Saved PGN could not be uploaded to chess.com. SAN disambiguation ran for
    pawns too, producing invalid moves like hhxg4 (should be hxg4); pawn
    captures are now disambiguated only by the origin file. The PGN serializer also
    emitted variations in the wrong place and wrote !?-style suffixes; it now
    places variations inline and uses numeric NAGs ($1…), and includes Round.
  • Threefold repetition and the fifty-move rule now count as draws (client and
    server), with 1/2-1/2 results and clear reasons.
  • Puzzle rating now updates dynamically per attempt: a wrong move counts the
    puzzle incorrect once (rating drops, ELO), solving it correctly earns a gain,
    and puzzles default to a window around your rating (Around my rating).
    Added an on-screen Next button, and the panel shows your rating and the
    change.
  • Saved online games now export the authoritative result instead of *.

OpenChess v1.4.0-beta1

Pre-release

Choose a tag to compare

@InfinityTian InfinityTian released this 24 Sep 06:35

OpenChess v1.4.0-beta1 (beta)

First beta of online multiplayer. The protocol and server may still change before 1.4.0.

Added

  • Online Multiplayer (private room by 6-character code) and Online Matchmaking (public queue), talking to the bundled C server over ws(s):// via libwebsockets.
  • Authoritative server server/openchessd: validates every move, declares checkmate/stalemate/insufficient/fifty-move/timeout, and enforces an optional clock (time-control selector: Unlimited / 5+0 / 10+0 / 10+5 / 15+10).
  • Resilience: automatic reconnect (seat token + state resync), disconnect grace period with abandoned timeout, heartbeats, and Rematch with colour swap.
  • Social: draw offers (Ctrl+D / Ctrl+A), in-game chat (T, rate-limited), read-only spectators, and finished-game logging to $OPENCHESS_RESULTS.

Notes

  • Requires libwebsockets to build the online transport and the server (LAN multiplayer is unaffected).
  • Install: open OpenChess.dmg and drag OpenChess to Applications. The build is unsigned, so if macOS blocks it run sudo xattr -r -d com.apple.quarantine /Applications/OpenChess.app.
  • The Windows/Linux server binary is not attached; build it with make (produces server/openchessd).

OpenChess v1.3.0

Choose a tag to compare

@InfinityTian InfinityTian released this 24 Sep 03:03

OpenChess v1.3.0

Added

  • Resume game. Leaving a Singleplayer/Analysis game with Menu stashes it; a Continue entry at the top of the menu restores the board, move list, side, difficulty and engine state. Local Multiplayer games are not resumable.
  • Save PGN button (renamed from PGN).

Changed

  • Setup screen now marks the chosen side and difficulty simultaneously.
  • Board annotations erase when the same square or arrow is drawn twice.
  • PGN prompt no longer prints the storage directory in its caption (the full path still appears in the status message after saving).
  • Smaller shortcut legend under the move box.

Docs

  • Added an internet-play design/implementation plan: docs/ONLINE_MULTIPLAYER.md.

Install: open OpenChess.dmg and drag OpenChess to Applications. The build is unsigned, so if macOS blocks it run sudo xattr -r -d com.apple.quarantine /Applications/OpenChess.app.

OpenChess v1.2.2

Choose a tag to compare

@InfinityTian InfinityTian released this 22 Sep 14:20

OpenChess v1.2.2

Added

  • Move sounds (chess.com default set): move self/opponent, capture, castle, check, promotion, illegal and game-end, via optional SDL2_mixer. scripts/import_sounds.sh fetches them into assets/sounds/.
  • Settings panel (Ctrl+E or the menu) with three tabs:
    • Engine — engine picker plus Lines / Threads / Hash / Time / Depth.
    • Gameplay — board, pieces, animation, and the Appearance picker.
    • Audio & Video — Sound and Max FPS.
  • High framerate up to 320 fps — max_fps (0 = vsync, or 60/120/144/240/320) with a precise frame limiter and runtime vsync toggling.

Fixed

  • While dragging a piece, its origin square now shows the board texture instead of a black square.

macOS download

The app is unsigned and links Homebrew SDL libraries, so install them first:

brew install sdl2 sdl2_ttf sdl2_image sdl2_net sdl2_mixer

If Gatekeeper blocks the app after download:

sudo xattr -r -d com.apple.quarantine /path/to/OpenChess.dmg

See CHANGELOG.md for details.

OpenChess v1.2.1

Choose a tag to compare

@InfinityTian InfinityTian released this 22 Sep 12:56

OpenChess v1.2.1

Fixed

  • Castling notation now displays correctly (O-O / O-O-O). SAN generation previously cut the notation to an empty string, so the move list, PGN and engine lines showed nothing for a normal castle (and only +/# for a checking castle).
  • Cursor drift after window zoom/maximize/resize — input now inverts the exact render transform the app installed and re-applies it on every resize, so clicking a square always matches the drawn board (previously clicks landed a square or more away after maximizing).

Changed

  • Solid arrows — user and engine arrows are drawn as one filled polygon; the old shaft (unscaled 1 px lines) looked hollow/striped at non-1x zoom and the head was too thin.
  • Square highlights — right-click marks are a translucent highlighted square with a border instead of a thin circle.

Added

  • Engine arrows + toggle — each engine line's first move is shown as a green arrow; the Arrows checkbox beside the Lines slider toggles it (saved as engine_arrows, default on).

macOS download

OpenChess.dmg is unsigned. If Gatekeeper blocks it after download:

sudo xattr -r -d com.apple.quarantine /path/to/OpenChess.dmg

See CHANGELOG.md for details.