import sys from Life import Life, AbstractCell, ConwayCell, FredkinCell, life_read # --------------------- # Life ConwayCell 21x13 # --------------------- print("*** Life ConwayCell 21x13 ***") """ Simulate 12 evolutions. Print every grid (i.e. 0, 1, 2, 3, ... 12) """ row, col, grid = life_read(sys.stdin) x = Life(row, col, grid) x.moat_grid() x.print_grid(12, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]) # --------------------- # Life ConwayCell 20x29 # --------------------- print("*** Life ConwayCell 20x29 ***") """ Simulate 28 evolutions. Print every 4th grid (i.e. 0, 4, 8, ... 28) """ row, col, grid = life_read(sys.stdin) x = Life(row, col, grid) x.moat_grid() x.print_grid(28,[4,8,12,16,20,24,28])