suragnair / alpha-zero-general

A clean implementation based on AlphaZero for any game in any framework + tutorial + Othello/Gobang/TicTacToe/Connect4 and more
MIT License
3.84k stars 1.03k forks source link

Using while loop in the MCTS search function instead of recursion #303

Open apple1113 opened 1 year ago

apple1113 commented 1 year ago

Hi, while I am trying to implement the code in my project to build a chess bot, I sometimes run into recursion errors. I have set the maximum step to 150 before a draw is declared so it's not a bug. Any chance you could suggest how to rewrite the search function using a loop? thanks