amchess / ShashChess

A try to implement Alexander Shashin's theory on a Stockfish's derived chess engine
GNU General Public License v3.0
134 stars 28 forks source link

MCTS + MCTSThreads seem to do nothing (v.35.3) #58

Open miketrans opened 3 months ago

miketrans commented 3 months ago

Describe the issue

My Computer has 6 physical cores. If I set Threads=1, MCTS box active, MCTSThreads=5, then it seems that ShashChess is simply running the alpha-beta search with 1 thread, I don't think it runs any monte carlo. My task manager shows that my CPU is only running at 16% which would be 1 thread overall. How do you set MCTS correctly in the UCI options for running a monte carlo tree search? Thanks!

Expected behavior

A working monte carlo tree search,.

Steps to reproduce

Setting threads, MCTS, MCTSThreads

Anything else?

No response

Operating system

Windows

ShashChess version

35.3

amchess commented 3 months ago

MCTS is only executed in PETROSIAN Shashin positions: HIGH, MIDDLE_HIGH and MIDDLE

miketrans commented 3 months ago

Thank you for your time, amchess, these are important details. But does this work with all MCTSThreads values or must they be larger than the main Threads?