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

Prevent move repetitions for chess #34

Open
oggy22 opened this issue Dec 27, 2024 · 0 comments
Open

Prevent move repetitions for chess #34

oggy22 opened this issue Dec 27, 2024 · 0 comments

Comments

@oggy22
Copy link
Owner

oggy22 commented Dec 27, 2024

Make minmax algorithm avoid the repetition. The following checks can be performed
if move(1)==move(5) and
move(2)==move(6) and
move(3)==move(7) and
move(4)==move(8)
do not make move(4)

move(n) = the last n-th move. For example move(1) is the last move the opponent made, move(2) is the last move the current player made.

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

No branches or pull requests

1 participant