thomasahle/sunfish
View on GitHub ↗ ★ 3,308 Python
Sunfish: a Python Chess Engine in 111 lines of code
13 mentions on Hacker News by 10 people: 6 stories, 7 comments · first 2014-02-11 · latest 2026-01-04
20082026
-
It appears that the “111 lines” is a reference to the version as of 2014-02-11: https://github.com/thomasahle/sunfish/blob/e2b7fc29ce2a112be... (386 lines), about which the author says ( https://www.reddit.com/r/programming/comments/1xmj1a/…
comment by svat · 2026-01-04 · in Beating myself at chess -
For people interested in making their own, I highly recommend reading through https://github.com/thomasahle/sunfish/blob/master/sunfish.py , a surprisingly readable and surprisingly strong chess engine in 111 lines of Python…
comment by Recursing · 2026-01-03 · in Beating myself at chess -
…Maybe they run a simple chess engine such as Sunfish [1] which is around 1900-2000 ELO [2]? [1] https://github.com/thomasahle/sunfish [2] https://lichess.org/@/sunfish-engine
comment by selcuka · 2024-11-15 · in Something weird is happening with LLMs and chess -
▲ 2
Sunfish is a simple, but strong chess engine, written in Pythonstory by mooreds · 2022-11-14 · 0 comments
-
…implement context-free chess games with varying rules for us congenitally lazy and dull-witted. https://github.com/thomasahle/sunfish/blob/master/sunfish.py
comment by timonoko · 2021-03-08 · in The Kilobyte’s Gambit -
▲ 5
Sunfish – a strong chess engine in 111 lines of codestory by spekcular · 2020-12-24 · 0 comments
-
…bot accounts: https://lichess.org/team/lichess-bots I'm personally running bits for sunfish https://github.com/thomasahle/sunfish and fastchess https://github.com/thomasahle/fastchess There are way too many stockfish clones on there. I…
comment by thomasahle · 2020-12-24 · in Building My Own Chess Engine -
…it is to resubmit the same, or a version of, your project or blog post, to try your luck again. [1] https://github.com/thomasahle/sunfish
comment by thomasahle · 2020-05-19 · in Blogging Is Not Dead -
▲ 112
Sunfish: A simple but strong chess engine written in Pythonstory by tosh · 2019-06-01 · 39 comments
-
▲ 7
Sunfish: A Python Chess Engine in 111 Lines of Codestory by sytelus · 2019-04-13 · 0 comments
-
I think sunfish ( https://github.com/thomasahle/sunfish/blob/master/sunfish.py ) would be a much better example of a simple chess AI (~100 lines of python code), even if it's not very well documented. The article doesn't talk about very…
comment by Recursing · 2017-03-31 · in A step-by-step guide to building a simple chess AI -
▲ 291
Sunfish: A simple but strong chess engine in 111 lines of Pythonstory by ff_ · 2014-08-04 · 95 comments
-
▲ 2
Show HN: Sunfish – A 111 line Chess Engine in Pythonstory by thomasahle · 2014-02-11 · 0 comments