Patch Neighborhoods =================== This is what is stored in the global variable "cache" after update_cache() and before spiralMC() is called. 0: [0, 4, 0, 5, 5, 5, 0, 3, 0, 5] 1: [5] 2: [5, 5] 3: [0] 4: [0] 5: [0, 5, 5, 5, 5, 5, 1, 5, 5, 0, 5, 5, 2, 5, 5, 5, 5, 0, 0] Sequence for Patch 2 ==================== [2, 5, 5, 5, 5, 5, 5, 0, 0, 0, 5, 5, 5, 5, 5, 1, 5, 5, 0, 0] 0: True 1: True 2: True 3: False 4: False 5: True