Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use types and structure for pieces and squares #1

Merged
merged 1 commit into from Jul 5, 2021

Conversation

djmitche
Copy link
Contributor

@djmitche djmitche commented Jul 1, 2021

This replaces the existing bitwise arithmetic with structures and many
of the top-level board functions with type methods.

There is no change to the chess logic here -- this is just a refactor.

I won't be hurt if you don't want to merge this! The refactor was a nice way for me to understand the code, and IMHO makes it more "idiomatic".

This replaces the existing bitwise arithmetic with structures and many
of the top-level board functions with type methods.

There is no change to the chess logic here -- this is just a refactor.
Copy link
Owner

@MitchelPaulin MitchelPaulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! This is much cleaner and reading through it taught me a couple of things about Rust

@MitchelPaulin MitchelPaulin merged commit dce3b57 into MitchelPaulin:main Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants