You are browsing as a guest. Sign up (or log in) to start making projects!

52m 22s logged

before list of changes, i just wanna say that the hardest part is wrapping my head around the bit shifting logic and figuring out how to represent moves and pieces in a single integer. because the main focus of this is gonna be performance so that i can build a chess bot on top of this and have decent speeds.

anyways:

  • optimized piece enum to use 1 less bit for color
  • use bit shifts in piece.color to better understand
  • rename utils.ts to game.ts and update imports
  • tweaked enums to integrate more with the movegen system im going to implement
  • added Promotion, Capture, and MoveFlag enums

not much changes to the ui so here is screenshot of the code

0
9

Comments 0

No comments yet. Be the first!