Skip to content

Releases

v1.1.0 — Modern HUD & Adaptive Humanization

Choose a tag to compare

@aplatogg aplatogg released this 25 Nov 15:34

Chess.com HUD v1.1.0

Major feature, UI/UX, and engine accuracy release for Chess.com Assistant.

✨ What's New in v1.1.0

🖥️ Modern HUD Upgrade (OverlayUI — 0% DOM Footprint)

  • Click-to-Play Top 5 Moves — Every candidate line (#1–#5) in the HUD is now interactive. Click any row to execute that move immediately on the board (even while AUTO: OFF).
  • Move Quality Badges — Real-time centipawn gap classification next to each line: [BEST] (Green), [GOOD] (Blue, ≤ 0.30), [OK] (Yellow, ≤ 0.90), and [RISK] (Red, > 0.90 or missed forced mate).
  • Live Turn & Countdown Banner — Displays 🟢 GILIRAN LU (PUTIH/HITAM) or ⏳ LAWAN JALAN, plus a live �.1s countdown (⚡ AUTO: Kuda b1->c3 (1.4s…)) during auto-play think delay.
  • Window Opacity & Compact Mode — Added 100% / 85% / 70% transparency toggle (-alpha) and ▬ / ▣ collapsible mini bar mode (360×148).

🧠 Adaptive Humanization & Engine Turbo

  • Position-Aware Human Think-Time (NAT Mode) — Fast �.75–1.60s execution on obvious recaptures/forced replies (eval gap ≥ 2.0), instant �.55–1.15s snap on M1 checkmates, longer 2.50–4.80s pauses on complex tactical choices (eval gap < 0.35), and automatic acceleration under < 25s / < 10s clock pressure.
  • Live ELO Presets (ELO: MAX / 2200 / 1800 / 1500) — Cycle engine strength (UCI_LimitStrength / UCI_Elo / Skill Level) and human move distribution directly from the HUD footer.
  • Multi-Thread Stockfish Turbo — Automatically configures Stockfish with Threads: min(4, cpu_count // 2) and 128 MB Hash.

🐛 Critical Fixes Included

  • Valid Castling (O-O / O-O-O) & En Passant Preserved — _JS_READ_BOARD and Engine._sanitize_fen() now validate castling and en passant flags via chess.Board.status() instead of unconditionally stripping them to -.
  • 2-Piece Endgame Support — Lowered _JS_IS_GAME piece threshold from >= 10 to >= 2 so the assistant remains active in all endgames.
  • Full Underpromotion Support (=Q, =N, =R, =B) — _JS_PROMO_PIECE, BoardReader.click_move(), and OverlayUI._fmt_move() now support all four promotion piece types.
  • Fastest Forced Mate Lock — _pick_move() and _pick_move_bot() always lock onto moves[0].uci whenever a forced mate is on the board.
  • Safe CDP Reconnect — �rowser.close() on reconnect is now guarded by if self._launch: so CDP mode never closes your active Brave window.

Full Changelog: v1.0.1...v1.1.0

v1.0.1

Choose a tag to compare

@aplatogg aplatogg released this 24 Oct 06:38

Patch release with two edge-case fixes.

Fixed

  • _sanitize_fen now pads short FENs correctly. A five-field FEN used to become fullmove 0; it now becomes 1.
  • The overlay poll loop ignores TclError when the window closes between frames.

Tests

16 passed, including new parametrized coverage for one-to-six-field FEN padding.

Full changelog: v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@aplatogg aplatogg released this 24 Oct 05:22

Chess.com Assistant overlay

First stable release of Chess.com Assistant.

Highlights

  • Portable paths - data, logs and the dedicated Brave profile live in %USERPROFILE%\.chess-assistant; Stockfish is found next to the script, on PATH, or via --stockfish.
  • Safer browser handling - the assistant no longer kills Brave. --launch opens a dedicated profile; connect mode prints the exact CDP command.
  • New flags - --stockfish, --debug, --version; --depth (5-30) and --port (1-65535) are validated.
  • Cleaner runtime - rotating logs, import-safe module, no bare except.
  • Quality gates - 12 unit tests, Ruff, and Windows CI on Python 3.10-3.12.
  • Repo hygiene - SECURITY.md, Dependabot, topics, MIT attribution.

Install

git clone https://github.com/aplatogg/chess-assistant.git
cd chess-assistant
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
playwright install chromium

Place stockfish.exe next to chess_assistant.py (or pass --stockfish PATH), then follow the README for the dedicated Brave profile.

Requirements

Windows 10/11, Python 3.10+, Stockfish, Brave (recommended) or Firefox.