A minimalist terminal-based Chess game with AI, designed to be played directly inside VS Code (or any ANSI-compatible terminal).
It features live typing input, colored board highlights, and a simple but effective Python AI.
- ASCII/ANSI chessboard with wood-like colors (light/dark brown).
- Live UCI input (type moves as you go, with immediate highlights).
- Last move highlighting and legal move hints.
- Simple but real AI opponent, with adjustable depth and max time.
- Support for flip board, undo, and FEN export.
- Works on Windows, Linux, macOS (tested mostly in VS Code terminal).
(micro-terminal)
(full window)
- Python 3.8+
python-chess
Install dependencies:
pip install python-chessRun the main script:
python stealth_chess_ai.pyYou can then:
- Type moves in UCI format (e.g. e2e4).
- Use commands starting with : (e.g. :undo, :help, :ai).
- Play against the AI or just use it as a move validator.
-
:ai → AI makes a move immediately
-
:aion / :aioff → toggle automatic AI replies
-
:depth N → set max search depth
-
:maxtime T → set AI max time per move
-
:flip → flip the board
-
:undo → undo last move
-
:moves → list legal moves
-
:fen → print current FEN
-
:quit → exit
This project is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

