Skip to content

feat: complete refactor of movegen and other parts#3

Merged
raklaptudirm merged 32 commits intomasterfrom
refactor
Dec 12, 2022
Merged

feat: complete refactor of movegen and other parts#3
raklaptudirm merged 32 commits intomasterfrom
refactor

Conversation

@raklaptudirm
Copy link
Copy Markdown
Owner

No description provided.

raklaptudirm and others added 30 commits October 26, 2022 17:44
Moved the Between squares table and Hyperbola function to chess/bitboard.
- Move sets of non-sliding pieces generated using bitboard shifts
- Change file grouping of various functions
Go files containing attack sets for chess pieces are now generated.
- Code generation with templates defined in .gotemplate files
- Declared utility functions used to generate code from templates
Rename symbols and make code more modular.
Magic tables are now populated when they are created.
Also useless fields have been removed from the structure.
N variables are the variables representing the quantity of something, like square.N
pkg/chess only contained the board representation so board is a better name.
Added some utility functions to make code more readable.
- Removed movegen only fields from board.Board.
- Movegen data now stored in moveGenState.
@raklaptudirm raklaptudirm added the enhancement New feature or request label Dec 12, 2022
@raklaptudirm raklaptudirm self-assigned this Dec 12, 2022
@raklaptudirm
Copy link
Copy Markdown
Owner Author

Making the Pull Request this big was an extremely stupid idea from my part.

@raklaptudirm raklaptudirm merged commit 2bdd9e8 into master Dec 12, 2022
@raklaptudirm raklaptudirm deleted the refactor branch December 12, 2022 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant