Here are the python programs related to Week 1:

And here are some sections of the SMAC book (Krauth W., "Statistical mechanics: algorithms and computations". OUP Oxford, 2006) related to the topics treated in Week 1:

1.1.1 (children game - direct sampling), 1.1.2 (adults game - Markov-chain sampling), 1.1.4 (pebble game, detailed balance and transfer matrix), 1.3.5 (error estimates and bunching), 1.4.1 (ergodicity)