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

Connect4 eval function #36

Open
oggy22 opened this issue Jan 14, 2025 · 0 comments
Open

Connect4 eval function #36

oggy22 opened this issue Jan 14, 2025 · 0 comments

Comments

@oggy22
Copy link
Owner

oggy22 commented Jan 14, 2025

Write a good eval function for Connect4 with the following properties:

  • Return max if there is a winning move.
  • Return min if there are two winning moves for opponent if it was their turn.
  • Treat each column independently. Their order doesn't matter as well.
  • For each player and for each empty field identify if it's a missing 4th
  • Double (winning) chance should have high score
  • If a field is a missing 4th for both players, the fields above are ignored. This is because they will be never played on as the player who plays on the missing 4th will win.
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