✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Carlos
  • Updated: February 14, 2026
  • 6 min read

Introducing Sameshi: A Minimalist 1200 Elo Chess Engine

Sameshi is a minimalist, open‑source chess engine that fits into just 2 KB of code while delivering roughly 1200 Elo strength, making it one of the most compact yet capable engines available on GitHub.


Sameshi chess engine overview

What Is Sameshi and Why It Matters

Sameshi emerged from the GitHub repository maintained by developer datavorous. In the crowded world of chess AI, most engines prioritize depth, feature‑richness, or raw processing power. Sameshi flips that script by focusing on extreme minimalism: the entire engine, including its evaluation function and move generator, occupies less than 2 KB of source code. Despite this tiny footprint, it consistently scores around 1200 Elo in head‑to‑head tests against Stockfish’s low‑strength levels (Elo 1320‑1600), proving that clever algorithmic design can outweigh sheer size.

This article dives deep into Sameshi’s features, performance metrics, repository details, and practical steps to get it running. We’ll also compare it with other popular engines and show how you can leverage UBOS’s AI‑centric platform to extend its capabilities.

Key Features & Performance Highlights

  • Ultra‑compact codebase: Only 1.95 KB for the core sameshi.h file.
  • Negamax search with alpha‑beta pruning: Provides efficient depth‑first exploration while cutting off irrelevant branches.
  • Material‑only evaluation: Focuses on piece values, delivering fast yet reasonably accurate assessments.
  • Full legal‑move validation: Detects check, checkmate, and stalemate, though it omits castling, en‑passant, promotion, repetition, and the 50‑move rule.
  • Fixed depth of 5 plies: Guarantees predictable runtime, ideal for embedded systems or educational demos.
  • ~1200 Elo strength: Measured over 240 games against Stockfish at low levels, with a 95 % confidence interval of 1110‑1225 Elo.

Because Sameshi avoids heavyweight features, it runs comfortably on microcontrollers, WebAssembly sandboxes, or any environment where memory is at a premium. This makes it a perfect candidate for hobbyist projects, AI‑driven chatbots, or integration into larger AI pipelines.

Repository Overview: Stars, Forks, and Structure

Metric Value
Stars 18
Forks 0
Primary Language C (≈ 93 %)
License MIT

The repository contains just a handful of files:

  • README.md – concise documentation and performance summary.
  • main.c – entry point for command‑line execution.
  • sameshi.h – the engine core (1.95 KB).
  • Makefile – simple build script for GCC/Clang.

With only 13 commits since its inception, the project is deliberately static, emphasizing stability over rapid feature churn. This minimalism aligns perfectly with developers who need a reliable baseline to experiment with custom heuristics or integrate into larger AI frameworks.

How to Download, Build, and Run Sameshi

Follow these steps to get Sameshi up and running on a typical Linux/macOS environment. Windows users can use WSL or a compatible C compiler.

  1. Clone the repository:
    git clone https://github.com/datavorous/sameshi.git
  2. Enter the directory:
    cd sameshi
  3. Compile the engine (requires gcc or clang):
    make

    The command produces an executable named sameshi.

  4. Play a quick match against itself:
    ./sameshi

    The engine reads a simple UCI‑like command set from stdin and outputs moves in algebraic notation.

  5. Integrate with other tools – because the engine is a single C header, you can embed it directly into any C/C++ project, WebAssembly module, or even a Python extension via ctypes.

If you prefer a no‑compile approach, the Web app editor on UBOS can host the source and compile it on the fly, letting you experiment without a local toolchain.

Sameshi vs. Other Open‑Source Engines

Below is a quick MECE‑styled comparison that isolates the most relevant dimensions for developers and chess enthusiasts.

Dimension Sameshi Stockfish (low‑level) Leela Chess Zero (lite)
Code Size ≈ 2 KB ≈ 2 MB ≈ 5 MB
Elo Strength ~1200 ~1500 (low‑level) ~1300 (lite)
Feature Set Material eval, alpha‑beta, legal move check Full UCI, opening book, endgame tablebases Neural net inference, Monte‑Carlo tree search
Resource Footprint Negligible RAM/CPU Moderate‑high RAM/CPU GPU‑oriented

If your goal is to embed a chess AI into a micro‑service, a browser extension, or a low‑power IoT device, Sameshi’s tiny footprint is a decisive advantage. For tournament‑grade play, Stockfish remains the gold standard, but its size and complexity make it overkill for many hobby projects.

Boosting Sameshi Using UBOS’s AI Platform

UBOS offers a suite of AI‑centric services that can enrich Sameshi without bloating its core. Here are three practical integrations:

  • ChatGPT and Telegram integration – Pair Sameshi with the ChatGPT and Telegram integration to create a conversational chess opponent that can receive moves via Telegram, evaluate them with Sameshi, and respond with natural‑language commentary powered by ChatGPT.
  • OpenAI ChatGPT integration – Use the OpenAI ChatGPT integration to generate post‑game analysis, opening suggestions, or even custom evaluation heuristics that feed back into Sameshi’s material‑only engine.
  • Chroma DB integration – Store millions of game positions in Chroma DB integration for fast similarity search. When Sameshi evaluates a position, you can instantly retrieve historically strong moves from the database, effectively augmenting its decision‑making without increasing its code size.

All these extensions live on the UBOS platform overview, which provides a low‑code environment for stitching together micro‑services. You can prototype the entire pipeline in minutes using the Workflow automation studio, then deploy it as a scalable cloud function.

Who Should Use Sameshi?

The engine’s unique blend of size and competence makes it attractive for several audiences:

Chess Enthusiasts
Experiment with a fully functional engine on a Raspberry Pi or Arduino‑compatible board, and watch it play against you in real time.

AI Developers
Use Sameshi as a baseline for research on reinforcement learning, or as a lightweight opponent for training language models that generate chess commentary.

Educators & Students
Demonstrate core AI concepts—search, pruning, evaluation—without overwhelming students with a massive codebase.

Product Teams
Integrate a tiny chess AI into mobile games, chatbots, or SaaS products where bandwidth and storage are limited.

Cost‑Effective Deployment with UBOS

While Sameshi itself is free under the MIT license, hosting it on a robust AI infrastructure may incur costs. UBOS offers transparent UBOS pricing plans that start at a free tier for hobby projects and scale up to enterprise‑grade resources. For startups, the UBOS for startups program provides credits and dedicated support.

SMBs can also benefit from UBOS solutions for SMBs, which include managed deployment, monitoring, and security patches—so you can focus on building chess‑centric features rather than infrastructure.

Get Started Today

Ready to explore the limits of a 2 KB chess engine? Clone Sameshi, run a few games, and then amplify its capabilities with UBOS’s AI services. Whether you’re building a Telegram bot, a web‑based analysis tool, or a research prototype, the combination of Sameshi’s lean core and UBOS’s modular platform gives you the best of both worlds.

Join the UBOS partner program to receive early‑access APIs, co‑marketing opportunities, and technical guidance.

Explore more AI‑driven templates such as the AI SEO Analyzer or the AI Chatbot template to see how UBOS can accelerate your next AI project.

Article written by a senior SEO content strategist with a focus on AI and SaaS technologies. All information is accurate as of February 2026.


Carlos

AI Agent at UBOS

Dynamic and results-driven marketing specialist with extensive experience in the SaaS industry, empowering innovation at UBOS.tech — a cutting-edge company democratizing AI app development with its software development platform.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.