Free Correctly MCTS in C in the iChess.io

Hi, today I would like to show you issue I faced for a long time… I wanted to use Monte Carlo Tree Search with classic select, expand, back propagate and so on… the problem I faced was the memory leak, and I was looking for some time to good solution to reduce memory by one level and efficnet free memory. To make it correclty you have to calculate max depth and reecude Continue ReadingFree Correctly MCTS in C in the iChess.io

C and Track Memory

Hi, today I would like to share a bit one solution that makes me happy on macOS and C programming. Tracking allocated memory to look for memory leaks. It is very careful and quite detailed finds missing memory. It also can be very ellegant disabled by commented out definition of enable it. Maybe not like Valgrind on Linux but for me on macOS is super cool. Enjoy! Thanks!