-
Notifications
You must be signed in to change notification settings - Fork 10
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
Smarter AI #3
Comments
Do you think just a legacy type AI where they just know the rules and value moves? Or do we want to try and ML train an AI? |
I want to try ML at some point, but as I recall when I built this game last time, very simple "AI" who just knows how to win and, let's say, prefers to send you to already won grids to play in, is sufficient for being a non-trivial opponent. I was thinking of 4 AIs:
First 3 can be made without any ML, just some I'm gonna make the random AI these days, to show how it connects to the GameBloc, and then the other 2 can be made very similarly. In essence, the AI class will have a function I think I'll also create some more branches for |
You may want to look into using a Minimax Algorithm. I recently created this for connect four school project. |
Thanks @blopez24 I'm just not sure will the minimax be able to handle that much branching, even with alpha-beta pruning. |
I believe so. |
It definitely needs a max_depth parameter. |
@blopez24 I had exactly the same thought. What bugs me though is the restriction of the inner grid you are allowed to play next. It's not just a bigger grid, but an extra restriction. I can't wrap my head around this. |
No description provided.
The text was updated successfully, but these errors were encountered: