 <p>The code creates 10 threads in <code>main</code>. Each thread plays 1000 games in <code>run</code>. That gives a total of 10 * 1000 = 10000 games.</p> <p>To change the number of games just change those numbers.</p>