Back to blog

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
Chess Engine Day 2 Recap

Recap:


Find the code for my Day 2 commit here

Brief Documentation:


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.

  • I'm not entirely sure how useful this will be, but I know I will need it to some degree.
  • Searches chess notation moves for the move number, the piece, square, check/mate, ...
  • Init function just accepts the move notation and the color that moved
  • Allows my board abstraction in ChessGame to interface with the notation

The 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.

Photos & Video