Hacker GitHub

← All repos

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

Mentions per year 13 mentions · busiest year 2020 (3)
20082026
  1. 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
  2. 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
  3. …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
  4. ▲ 2
    Sunfish is a simple, but strong chess engine, written in Python
    story by mooreds · 2022-11-14 · 0 comments
  5. …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
  6. ▲ 5
    Sunfish – a strong chess engine in 111 lines of code
    story by spekcular · 2020-12-24 · 0 comments
  7. …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
  8. …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
  9. ▲ 112
    Sunfish: A simple but strong chess engine written in Python
    story by tosh · 2019-06-01 · 39 comments
  10. ▲ 7
    Sunfish: A Python Chess Engine in 111 Lines of Code
    story by sytelus · 2019-04-13 · 0 comments
  11. 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…
  12. ▲ 291
    Sunfish: A simple but strong chess engine in 111 lines of Python
    story by ff_ · 2014-08-04 · 95 comments
  13. ▲ 2
    Show HN: Sunfish – A 111 line Chess Engine in Python
    story by thomasahle · 2014-02-11 · 0 comments