2026-02-18 · 5 min read
Chess Engine Day 2 Recap
Day 2 of my handcrafted chess engine. No AI help or copying.
- Progress
- Chess
2026-02-18 · 5 min read
Day 2 of my handcrafted chess engine. No AI help or copying.
Find the code for my Day 2 commit here
Today I finished the move parsing in my ChessMove class!
ChessMove – A pydantic BaseModel I use to parse algebraic notation for chess moves into information I can use/store.
ChessGame to interface with the notationThe actual init function for this class is complete. It accepts the chess notation for the move, and the color that moved. As a result, it completely fills out my pydantic model with a ton of data about the move that I should be able to use for move validation, board manipulation, etc. Basically, I have a chess language that both the computer and humans can understand.