Angelfish
Simple chess engines based on sunfish
Install / Use
/learn @VCHui/AngelfishREADME
angelfish
Some exercise implementations of chess engines using the very nice sunfish framework and tools
mlearn branch
- The branch holds experiments of reinforcement learning.
- The main goal of angelfish project.
Engines implemented
In order of increasing performance:
- Minimax
- Negamax
- AlphaBeta - with pruning, transposition table and iterative deepening
- Sunfish - refitting as a mixin
All engines have a method search(pos,secs) as in class sunfish.Search
Framework
- Decouple
sunfish.Positioninto move handlings and score evaluations separately- Subclass
sunfish.PositionasSuperpositionto handle moves,- moves generation
- game over test (test
"k" in boardinstead ofscore > sunfish.MATE_LOWER) - legal test
- retain
sunfishconvention ofblackplayer moves from a rotated position
- A new
SunfishPolicyclass to handle heuristic evaluation ofpositionin engines- abstraction of
sunfish.Position.scoreandsunfish.Position.value - the base class adopted
sunfish.pstscores
- abstraction of
- Subclass
A screenshot

python3 only, or pypy3
git cloning with a submodule
sunfishis imported intoangelfish.enginesas agitsubmodule- My forked
sunfishin a separate branch has added__init__.pyto makesunfishimportable
git clone --recursive https://github.com/VC-H/angelfish.git
angelfish
- Distant relatives of sunfish
- Refer to a class of fresh water aquarium fish for appreciation
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
