Works with the AI Agents you already use

    Tiny Chess - A Complete Chess Engine in 4 KB of Python

    by muhammad zildan

    1

    A real chess engine in one 4 KB Python file: best move for any FEN, legal move lists, mate and stalemate detection. Deterministic, zero dependencies.

    $3

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    About this skill

    A complete chess engine that fits in 4 KB of Python - small enough to read in one sitting, strong enough to find mate in one.

    Ask it for the best move in any position (FEN in, UCI move out), every legal move, or whether a position is checkmate or stalemate. Inside: negamax search with alpha-beta pruning, a Zobrist transposition table with bound flags, check extensions, capture quiescence, and MVV-LVA move ordering. It plays under a fixed 200,000-node budget instead of a clock, so it is fully deterministic - the same position always gets the same move.

    Verified behaviour: exactly 20 legal moves from the starting position, finds the back-rank mate in one (a1a8) and Scholar's mate (h5f7).

    Honest simplifications from the size budget, stated up front: no en passant, promotions are always to a queen, castling rights are honoured as given in the FEN.

    Written from scratch for the make.fun tiny-chess bounty and strengthened through self-play testing (70% score against its own predecessor). Python 3.9+, standard library only.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    Software
    Python 3.9+AI agent with shell access

    Permissions

    Terminal / Shell
    Network Access
    Listed12 days ago

    What's inside

    Frequently Asked Questions

    A real chess engine in one 4 KB Python file: best move for any FEN, legal move lists, mate and stalemate detection. Deterministic, zero dependencies.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Tiny Chess - A Complete Chess Engine in 4 KB of Python on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Game Development

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Game Development.