Skip to content
S

Sunfish

A Python Chess Engine in 111 lines of code

by thomasahleFree

#713in AI
0In stores

Description

Sunfish is a simple open-source chess engine written in Python by Thomas Dybdahl Ahle, for teaching purposes. It is released under the GPL.…

Highlights

  • Chess engine in about 111 lines of Python
  • MTD-bi search with iterative deepening
  • Unicode command-line board
  • Chess Engine Communication Protocol support
  • GPL license

Ratings & Reviews

No ratings yet

Be the first to rate Sunfish.

People also visit

C

Command Line Chess

A python program to play chess against an AI in the terminal

AI
Launch
S

Stockfish.js

The strong open source chess engine Stockfish compiled to JavaScript

Developer Tools
Launch
S

Stockfish

Beautiful, powerful chess application

Entertainment
Launch
S

Sameshi

a ~1200 Elo chess engine that fits within 2KB

Utilities
Launch
P

Pychess

Desktop chess client for Linux/Windows/macOS

Utilities
Launch
C

CLI Chess

A highly customizable way to play chess in your terminal

Entertainment
Launch

Sunfish FAQ

What is Sunfish?

A small chess engine written in Python for teaching, in about 111 lines of code.

Can it play with a graphical board?

Yes. It supports the Chess Engine Communication Protocol, so front ends such as XBoard and PyChess can use it.

What is its search method?

MTD-bi inside an iterative deepening framework, according to the Chess Programming Wiki page.

Is it free?

Yes. It is released under the GPL and the source is on GitHub.

Where can I read more?

The Chess Programming Wiki page lists its publications and forum posts.

What are the best Sunfish alternatives?

Popular alternatives to Sunfish include Command Line Chess, Reckless and DecodeChess. See all Sunfish alternatives

Developer Stuff

Badges