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

Diagonal Win Checking Issue #1

Open
DrkWithT opened this issue Jan 13, 2023 · 0 comments
Open

Diagonal Win Checking Issue #1

DrkWithT opened this issue Jan 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@DrkWithT
Copy link
Owner

In the function below, I noticed that during test runs, the diagonal checks would lag behind by one placed piece. A diagonal of four will go unprocessed for a turn until the next move before being detected... This is likely because of a consecutive piece counting error in the diagonal checking helper function, specifically the while loop.

_Bool Board_checkDiagonalFrom(Board *self, int row_idx, int col_idx, int row_step, int col_step)

@DrkWithT DrkWithT added the bug Something isn't working label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant