sunfish

Sunfish: a Python Chess Engine in 111 lines of code (by thomasahle)

Sunfish Alternatives

Similar projects and alternatives to sunfish

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better sunfish alternative or higher similarity.

sunfish reviews and mentions

Posts with mentions or reviews of sunfish. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-11.
  • funAndEasyToUse
    4 projects | /r/ProgrammerHumor | 11 Jul 2023
    The engine I'm referring to, Sunfish, has a highest rating of 2100 on lichess and a current rating just under 2000. That's better than 90% of people that play chess often, and far better than general population. So it plays well by most human standards, but there's still room for improvement. But that's a very computationally intensive task, and bare python is good enough. My point is it's not as simple as saying "python is slow" because most of the time it's good enough to do what you would want it to do.
    4 projects | /r/ProgrammerHumor | 11 Jul 2023
    The NNUE version does but the non-NNUE version doesn't use numpy. That numpy import is for a neural network based evaluation functions. The base engine still plays at a strong human level and doesn't use numpy to do any of the heavy lifting. It does rely on itertools and collections though.
  • Python is slow, garbage language!
    2 projects | /r/ProgrammerHumor | 17 Apr 2023
    I'm currently working on a chess bot in C++. The literature and common sense tells you that faster is better, which was my main reason for choosing C++. Then I discovered Sunfish on GitHub that in around 400 lines of Python (without any low level libraries like ctypes) and it still beat me somewhat convincingly. It was definitely fast enough.
  • Easy to read chess engine source code
    4 projects | /r/chessprogramming | 11 Apr 2023
    Just one file: Sunfish.py
  • This Week In Python
    5 projects | dev.to | 18 Nov 2022
    sunfish – A Python Chess Engine in 111 lines of code
  • sunfish VS Synergy-Chess - a user suggested alternative
    2 projects | 17 Jun 2022
  • The Kilobyte's Gambit: Can you beat 1024 bytes of JavaScript [at chess]?
    2 projects | news.ycombinator.com | 7 Mar 2021
    Incomprehensible scheiße code. I looked around and I like this one because it has "meta-level" definition of movements and liitle bit of strategy. You could implement context-free chess games with varying rules for us congenitally lazy and dull-witted. https://github.com/thomasahle/sunfish/blob/master/sunfish.py
  • Can you defeat a chess engine written in 1KB of Javascript?
    2 projects | /r/chess | 4 Mar 2021
    sunfish https://github.com/thomasahle/sunfish (sunfish is the most compact and still understandable code in my opinion)
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 28 Mar 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic sunfish repo stats
12
2,868
2.5
about 2 months ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com