-
Notifications
You must be signed in to change notification settings - Fork 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
play from given board state #1
Comments
@OneFluffyBunny
No. There's no easy way for now. This is a part which I regret about the structure of this project. In this project, the UI(user interface) components and MCTS implementation are not loosely coupled enough. I wish I had implemented MCTS and UI components to use text (string) as the measure to represent and communicate the game board state. If it was the case, you could use texts (strings) "to feed a particular game state to the AI". You need to modify/revise some code (https://github.com/gorisanson/quoridor-ai/tree/main/src/js) to achieve what you want.
I think MCTS would be not good for the purpose you stated above. MCTS generates probabilistic result which can be not optimal. I think minimax would be better for your purpose since it would always find the optimal way to play endgames if the depth for minimax is sufficient. The following implementations use minimax: |
Thanks, appreciate the reply. Will have a go at seeing how hard is it to change the code to input a board state. |
Hey, mate! Came across your work on a MCTS implementation for quoridor and thought it was very impressive. I'm trying to become a quoridor expert this year and I think an AI tool could be very helpful in aiding my studies. Is there any easy way to have the AI play from a given game state instead of the beginning of the game? Use case is to find the optimal way to play endgames (where the search space is a lot smaller). My idea was to feed a particular game state to the AI (probably not in browser) and let it compute from there, but I'm not sure how to achieve that. Any advice is appreciated.
The text was updated successfully, but these errors were encountered: