Given a state select a move by
1: Patterns , # of play outOn line 3, the moves of the pattern and and there must be no such that . On line 10, the candidate patterns are all patterns in extended by one move, and they are accepted if the particular move has been selected by that pattern more than some threshold number of times on line 3.
2: Play-out depth
3: Move noise
4: Make move in state to get new
5: Increase by one
6: If not finished, loop to 3
7: Increase by one
8: Save moves and the result of in
9: Loop to 2 for some time
10: Add new patterns to
11: Loop to 2 for some time
12: