A while ago I asked a question about how to let Stockfish play 10 games with itself for a limited number of moves:
Python script to let stockfish selfplay 10 games from a given position
This question was brilliantly answered by the user Phonon.
Now I would have a followup question. Since the games are starting from the same position, I would like to avoid to clean the hash memory, as I understand Stockfish does every time it starts a new game. Ideally, even the first game should avoid the hash table clearing since I might have analyzed the position before starting the self match and I would like to keep the information saved in the hash memory.
Is there a way to do that?
Thanks in advance.
engine.analyse
or an indefinite analysis which you keep monitoring. On a related note, you can also set the engine hash to larger ones(in MB). – user929304 Feb 11 '20 at 13:46