gorisanson / quoridor-ai

Quoridor AI based on Monte Carlo tree search
https://gorisanson.github.io/quoridor-ai/
MIT License
59 stars 8 forks source link

switch the game to human vs human mode in local #2

Open abcwang12 opened 3 months ago

abcwang12 commented 3 months ago

Hello, I find your implementation very impressive. I want to ask if there is any way to switch to the 2-player version on the local computer (meaning the game is now human vs human, not human vs AI anymore). Thankss!!!!

gorisanson commented 3 months ago

@abcwang12

Screenshot from 2024-04-14 22-26-40

I think you can use "AI Develop Mode". In the AI Develop Mode, you can use "AI do" button if you want AI to play a ply at a specific point. If you never click a "AI do" button, it works like a 2-player version. To turn on the AI Develop Mode, you can follow the guide below:

https://github.com/gorisanson/quoridor-ai/blob/d8062fa35098467323cf32b49d4f63c4f704e776/src/index.html#L520-L543

abcwang12 commented 3 months ago

Oh, Thank you so much for this guidance. I really appreciate it...