Skip to content
Proyectos

Acerca de

Play chess automatically with ChessPilot. Reads the board on your screen and plays Stockfish-powered moves. Free, open source, and runs locally on Windows, Linux and Android.

Juegos y emulación

Cómo se miden estas cifras

What you can do

  • Local analysis: persistent ONNX detection and Stockfish, with in-memory captures.
  • Small-board recovery: bounded refined search retries unreadable board crops before reporting an error.
  • Manual and Auto play: Click or Drag, verified moves, legal opponent-reply tracking and cancellable waits.
  • Castling and promotions: confirmed king/rook moves update castling controls for both colors; returning home does not restore lost rights.

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

ChessPilot offline chess assistant logo

ChessPilot — Offline Chess Assistant

Chessboard detection, Stockfish analysis and move automation for Windows, Linux and Android.

Latest stable release MIT license Download count across all published releases Open GitHub issues

Main branch builds, analysis and tests CodeFactor quality grade for main Rust core Flutter interface

Windows installation Linux installation Android installation

ChessPilot reads a visible 2D board, evaluates the position locally, and optionally plays the best move. Capture, detection and analysis run on your device after initial setup. The interface uses Flutter; Rust owns the detector, engine and automation pipeline.

Source: Rust core and runtime · Flutter interface · Android platform services.


✨ What's new in 3.1

  • More Android devices: ARMv7, ARM64, x86-64 and universal APKs, each with matching native libraries and Stockfish engines, including 32-bit ARM support.
  • Clearer phone setup: touch-control disclosure, restricted-settings recovery instructions and Help/Exit that stay visible while scrolling.
  • Installation guidance: separate steps for Play Protect blocks and Accessibility restrictions, including the missing App info menu case. Google approval is not implied.
  • Desktop packages: rebuilt Windows setup/portable and Linux portable/AppImage/DEB/installer packages retain the Rust capture, detection, engine and mouse pipeline. See the 3.1.0 release notes for download choices, upgrades and limitations.

🎬 Demo

Watch ChessPilot: first move, Auto endgame and confirmed checkmate

Watch the full-quality video — 42 seconds, 1080p MP4. Real Windows computer-bot recordings show setup, an opening move, then the end of another game through confirmed checkmate. The middle is omitted and playback speed changes are labeled.

⚡ Features

  • Local analysis: persistent ONNX detection and Stockfish, with in-memory captures.
  • Small-board recovery: bounded refined search retries unreadable board crops before reporting an error.
  • Manual and Auto play: Click or Drag, verified moves, legal opponent-reply tracking and cancellable waits.
  • Castling and promotions: confirmed king/rook moves update castling controls for both colors; returning home does not restore lost rights.
  • Clear game results: checkmate/stalemate panels, New game, and readable move errors with technical details available separately.
  • Desktop engine setup: compact progress display, CPU-compatible official Stockfish downloads, integrity checks and reuse on later launches.
  • Phone overlay: movable app-logo bubble, compact Play/Auto/Stop/Exit controls, touch targets and a separate settings dashboard.
  • Diagnostics: bounded rotating logs, desktop log-folder access and Android log sharing.

The same bundled detection model is used on every platform. Stockfish runs on the CPU. GPU acceleration is not enabled.

📦 Install ChessPilot

Follow the installation and first-launch guide. It covers downloading the correct package, extracting GitHub artifacts, Windows setup/portable use, Linux sessions, Android permissions, and updating/uninstalling.

Download the app packages from GitHub Releases. Development desktop packages remain available from successful Rust + Flutter builds. The download badge totals published release assets across all versions, including earlier releases; it does not count CI artifact downloads.

Platform Package Supported automation
Windows x64 Setup EXE or portable bundle Native capture and Click/Drag
Linux x64 Portable executable, AppImage, DEB or .run installer X11/XTEST or supported wlroots Wayland with grim
Android API 24+ ARMv7 / ARM64 / x86-64 / universal APK Whole-display sharing and enabled touch service

The model ships with every platform. Desktop checks/downloads a CPU-compatible official Stockfish engine only when missing; Linux portable executables, AppImages and DEBs keep it in persistent user data, while the .run installation and desktop bundles keep it beside the app. Android packages its compatible engines/network. Gameplay works offline after setup.

Linux packages include Flutter, Rust, ONNX Runtime, the model and GTK dependencies. Choose AppImage or the extensionless portable executable for direct launching, DEB for a Debian/Ubuntu system installation, or .run for a per-user installation. The intermediate bundle/chesspilot executable still requires its whole bundle. See installation and 3.1.0 release notes.

Windows installers are currently unsigned and Android release-mode builds currently use the developer's local debug key. GNOME/KDE Wayland portal automation, macOS and iOS are not implemented. See platform evidence for tested cases and remaining coverage.

▶️ Start playing

  1. Launch the Linux one-file app, install the app package, or keep the entire portable desktop bundle together.
  2. Complete engine setup. On Android, enable touch control and consent to sharing the entire display; notification controls provide Stop and Exit.
  3. Open an unobstructed 2D chessboard and move the app/overlay away from it.
  4. Choose your color, applicable castling rights and Click/Drag mode. Start Play Next Move or Auto on your turn.
  5. Use Stop to pause. Android Exit also closes the engine and ends capture. Choose New game after a finished game.

A screenshot cannot reveal earlier castling/en-passant history. Start on your turn with appropriate rights; after a verified baseline, legal transitions preserve the position metadata. Uncertain input is never blindly repeated.

Android installation blocked or touch control greyed out? Follow the separate Play Protect installation and touch-control steps. Phone menu names vary; opening App info through the main Settings app list can expose a menu hidden by shortcuts.

Desktop shortcuts: W/B color, P Play, A Auto, K/Q castling rights, ←/→ depth, Esc Stop/change color. Before color selection, D/C changes move mode and ↑/↓ adjusts screenshot delay. Phone controls do not show desktop shortcuts.

⚙️ Engine settings and display sizes

Desktop starts new configurations with 256 MB Hash / 2 threads; Android uses 128 MB / 2 threads. Existing settings are preserved. Analysis depth defaults to 15 on desktop and 10 on Android, with selectable ranges of 10–30 and 8–30 respectively. Lower depth reduces search work and trades strength for speed.

Hash and Threads cover normal tuning. Optional strength/tablebase settings and compatibility restrictions are explained in engine configuration. More threads or memory do not guarantee lower total move latency.

The desktop baseline is 380×520 logical pixels, with a 360×480 baseline minimum. Initial sizing/minimums fit the usable monitor area; high-resolution growth is gradual. Size calculations cover 720p–8K at 100%–300% scaling. Widget checks include 320×568, 380×520 and enlarged text. These are checks of sizing/layout logic, not certification of every monitor.

Android uses density-independent sizes: a 48 dp movable bubble and 216 dp expanded panel, positioned within system-bar/cutout bounds. Unusual screens, foldables and additional phones still need physical testing.

🛠️ Build and maintain

Use BUILDING.md for pinned SDKs, all platform prerequisites, copyable build commands and output paths. Installing a downloaded app does not require the build tools.

Guide Contents
Installation Packages, first launch, permissions, updates and uninstall
Building Windows, Linux/Arch and Android source builds
Engine settings Defaults and optional Stockfish configuration
Architecture Runtime pipeline and platform boundaries
Testing Checks, recorded physical evidence and remaining cases
Releases One-command version updates and distribution checks

🔧 Troubleshooting and logs

  • Board not detected: keep it visible, 2D and clear of overlays. Refinement runs automatically; an unreadably small board still fails safely.
  • Android install/touch control blocked: see Play Protect and restricted-settings guidance. Additional APK architectures do not remove these platform restrictions.
  • Capture unavailable: check the platform capability/permission explanation. On Android, unlock and restart whole-display sharing after capture loss.
  • Engine setup fails: use a writable app folder and a working connection, or provide a compatible offline Stockfish executable beside the desktop app.
  • Play disabled: choose a color, finish setup, stop Auto, or choose New game after game over.
  • Need details: open Help/Shortcuts → Diagnostics / logs. Android can share logs through its chooser.

Logs are named chesspilot-native.log. Windows normally uses %LOCALAPPDATA%/ChessPilot/logs; Linux uses XDG state/data directories; Android keeps logs private until shared. Logs rotate, and normal gameplay does not save screenshots/model tensors. Include your build, OS/device/display server, board/browser, mode/depth and relevant diagnostics when reporting a problem.

Verification and release status

Checks cover domain rules, reference fixtures, engine failure/recovery/shutdown, actual inference, controller transitions, native buffer ownership, configuration, diagnostics, installers and platform adapters. Integration checks needing an engine, display or network are explicit opt-ins.

The build-and-tests badge covers Rust formatting, Clippy, native tests, Flutter analysis/tests, desktop builds and model inference checks on Windows/Linux. CodeFactor shows its separate static-analysis grade for main; a dash means a grade is not available yet. Neither badge represents test coverage or certification of every device.

Remaining release gates include production signing, clean-install/distribution review, longer memory/performance/security testing, additional monitor/phone coverage, physical phone castling/promotions/rotation/revocation cases and non-wlroots portal support. A successful build does not establish every device/runtime case. See Android evidence, Linux checks and desktop packaging.

License and acknowledgments

ChessPilot source is MIT licensed. Stockfish is GPL-3.0-or-later; its license/source information accompanies packaged/downloaded engines. ONNX Runtime and Pillow-derived preprocessing retain their license notices. Review dependency/model redistribution requirements before publishing binaries.

Thanks to Zai-Kun's 2D chess detector, Stockfish, Flutter, Rust, ONNX Runtime and the project's contributors/testers.

Explorar proyectos relacionados

Cargando…