Skip to content

Minor fixes #9

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

VajdaBela
Copy link

Two minor fixes. The first fixes boundary checks when playing a move. The second fixes move generation in the minmax algorithm.

If the connect board has more than 5 columns moves past the 4th column
couldn't be played.
Eg. if the connect board has 6 columns play_move(5) should be legal
since there is a 5th column.
The previous code worked because of a fluke that connect.board_size_y+1
equaled connect.board_size_x. The height of a connect board has no
bearing on the possible moves, only the width does.
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.

1 participant