Local 2-player chess: legal moves and checkmate detection

Cerewro can encode full rules: castling, en passant, pawn promotion, check and draws by repetition or insufficient material. Clean UI and move history.

Local 2-player chess: legal moves and checkmate detection

Cerewro can encode full rules: castling, en passant, pawn promotion, check and draws by repetition or insufficient material. Clean UI and move history.

Ready-to-use Cerewro prompt

Cerewro Chat — HTML5 (browser on Windows)
Generate a local 2-player chess game for Windows with these specifications.

Features: 8×8 board; Unicode or SVG pieces; alternating turns; full rules: legal moves highlighted, check, checkmate, stalemate, threefold repetition and 50-move rule (optional toggle); short/long castling; en passant; promotion modal (queen/rook/bishop/knight); move history; basic PGN export; no AI engine.

Rules: validation only; no engine suggestions.

Tech: HTML5, CSS3, ES6+ JavaScript; Canvas or DOM; single index.html or small folder.

Windows: Edge or Chrome.

Optional: same logic in Python with python-chess (validation) or custom rules in Pygame.
Cerewro Chat — Python 3 (Windows desktop)
Build the same 2-player chess as a Windows desktop app.

Features: Pygame 2 or tkinter + Canvas; identical rules; save/load PGN; simple PGN loader.

Tech: Python 3.10+; main.py; requirements.txt (optional python-chess for validation).

Run: python main.py after venv.

Include: optional per-player clock and optional last-move undo (max 2).

How to get the most out of it

  • Later ask for an “analysis” mode showing attacked squares.
  • Paste exported PGN into Lichess for review.