Sunfish — 111 行 Python 的國際象棋引擎(教學用)
- URL: https://www.threads.com/share/BAiy3EK9hP/
- Canonical: https://www.threads.com/@aigeeknews/post/DdxsREsiXC8
- Date Saved: 2026-09-27
- Source: Threads (@aigeeknews)
- Tags: dev-tools
- Repo: https://github.com/thomasahle/sunfish (⭐3,281, Python)
Summary
- 全部代碼 111 行的 Python 國際象棋引擎
- 定位為教學:把 alpha-beta 搜索、置換表(transposition table)、評估函數壓到一眼能讀完的規模
- 讀完就能理解一個能下棋的程式最少需要什麼
- 同類項目中被引用最多的教學實現之一
- 2014 年建立,持續維護至今