A TypeScript chess library for chess move generation/validation, piece placement/movement, and check/checkmate/draw detection
BSD 2-Clause "Simplified" License
3.68k
stars
889
forks
source link
Use template literals for board position type #433
Closed
mahmoud-moursy closed 7 months ago
Was enjoying this library, but found this... weird? type. Typescript template literals can help you keep things DRY.
P.S: I'm committing this directly from Github's code editor thing, which means that it hasn't been properly formatted with Prettier.