def test_generations_to_iterate_for_tub_lives(self):
     # Ref.: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
     universe = Universe(5, 5)
     tub_lives = [
         Cell(1, 2),
         Cell(2, 1),
         Cell(2, 3),
         Cell(3, 2),
     ]
     universe.seed(tub_lives)
     universe.generations_to_iterate(3)
     assert universe.lives == tub_lives
def main():
    # Configure your Universe Gride size here
    universe = Universe(25, 25)
    number_of_gens_to_iterate = 3

    # Different seed data to try
    tub_lives = [Cell(1, 2), Cell(2, 1), Cell(2, 3), Cell(3, 2)]
    glider_lives = [
        Cell(9, 8),
        Cell(10, 9),
        Cell(8, 10),
        Cell(9, 10),
        Cell(10, 10),
    ]
    # Configure your seed data here
    seed_data = glider_lives

    universe.seed(seed_data)
    universe.generations_to_iterate(number_of_gens_to_iterate)
 def test_generations_to_iterate_for_glider_lives(self):
     # Ref.: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
     universe = Universe(25, 25)
     glider_lives = [
         Cell(9, 8),
         Cell(10, 9),
         Cell(8, 10),
         Cell(9, 10),
         Cell(10, 10),
     ]
     universe.seed(glider_lives)
     universe.generations_to_iterate(3)
     assert universe.lives == [
         Cell(9, 9),
         Cell(9, 11),
         Cell(10, 10),
         Cell(10, 11),
         Cell(11, 10),
     ]