GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ripred/MicroChess: A full featured chess engine designed to fit in an embedded environment, using less than 2K of RAM!

BranchesTags
Open more actions menu

Latest commit

 

History

233 Commits
233 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
test
test
 
 
.arduino-ci.yml
.arduino-ci.yml
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
MicroChess.h
MicroChess.h
 
 
MicroChess.ino
MicroChess.ino
 
 
MicroChessConsole2.gif
MicroChessConsole2.gif
 
 
MicroChessSmall.gif
MicroChessSmall.gif
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
SUPPORT.md
SUPPORT.md
 
 
board.cpp
board.cpp
 
 
board.h
board.h
 
 
chessutil.cpp
chessutil.cpp
 
 
conv.h
conv.h
 
 
game.cpp
game.cpp
 
 
game.h
game.h
 
 
led_strip.cpp
led_strip.cpp
 
 
move.cpp
move.cpp
 
 
move.h
move.h
 
 
options.cpp
options.cpp
 
 
options.h
options.h
 
 
pieces.cpp
pieces.cpp
 
 
stats.cpp
stats.cpp
 
 
stats.h
stats.h
 
 

Repository files navigation

MicroChess

Arduino CI Arduino-lint JSON check Release License Stars Forks

MicroChess is a killer chess engine built for embedded systems, cramming a full chess experience into less than 2K of RAM and 32K of program flash. It nails every chess rule—en passant, castling, pawn promotion, check, checkmate, stalemate—and adds quiescent searches for extra smarts. This project is your ticket to mastering turn-based game engines, whether you’re tackling chess, checkers, or some wild new game. The heavy lifting’s done, so you can jump right in!

Features

  • Insane Memory Efficiency: Runs in under 2K of RAM, with support for up to 6-ply look-ahead, making it a beast on tiny Arduino boards.
  • Stack Surfing FTW: Checks stack depth at runtime to dive deeper into the search tree when there’s room, squeezing out max performance.
  • Full Chess Rules: Handles every move, from pawn pushes to king castling, with no shortcuts.
  • Totally Hackable: Open-source code you can tweak for custom inputs, outputs, or crazy projects.
  • Visual Awesomeness:
    • LED Strip: Lights up an 8x8 matrix to show the board in real-time MicroChessSmall.gif
    • Serial Console: Prints moves and board states in the Arduino Serial Monitor MicroChessConsole2.gif

Wiki Documentation

We’ve got a shiny new wiki packed with everything you need to dominate with MicroChess. From setup to code deep dives, it’s all there. Check out the MicroChess Wiki for the full scoop!

Why MicroChess?

This project isn’t just a chess engine—it’s a blueprint for building lean, mean game engines in constrained environments. Use it straight-up or remix it for your own creations. The code’s open, the sky’s the limit, and all the hard work’s already done!

License

MicroChess is licensed under the MIT License. See the LICENSE file for details.

Bug Fixes

  • LED Strip King Colors: Kings were sometimes displayed with incorrect LED colors because the color lookup indexed beyond the end of the color table. The index now wraps correctly so both white and black kings use the right colors.

About

A full featured chess engine designed to fit in an embedded environment, using less than 2K of RAM!

github.com/ripred/microchess

Topics

algorithms-and-data-structuresalpha-beta-pruningarduinoarduino-nanoarduino-platformarduino-unobitfieldschesschess-enginechess-gameembeddedgame-theorymemory-managementminimax-algorithmoptimizationuno-r4-minima

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

34 stars

Watchers

2 watching

Forks

5 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.