Skip to content

[FEATURE] Create separate attacks module for piece attacks #174

@DeveloperPaul123

Description

@DeveloperPaul123

I really like the way the Hobbes engine has structured attacks. I'd like to follow something similar, but maybe instead, have an attacks module within the chess library.

We could have an attacks folder and then a file for each piece type or something like that. I'd like to have static bitboard definitions for king and knight attacks.

We can do a simple calculation for pawns.

For sliding pieces (rook, bishop and queen) this will be more tricky since we have both magic bitboard and PEXT implementations.

Metadata

Metadata

Labels

feature:devFeature for developers

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions