Boss
Boss: Life on the Island

Boss Fight!
Every passing test breaks a shield.
The Isle of Embers is covered in glowmoss, which spreads by the Game of Life rules. The Stone Golem guards the island. It will only let the Guild pass if you can show it the moss's future, twelve generations ahead.
The Guild's map marks moss with #. A glider sits in the
top-left corner (a shape that crawls diagonally!) and a
blinker in the top-right.
neighbors and next_generation from your earlier quests are
ready to use.
Assignment
parse(rows)turns a list of strings into a grid:1for"#",0for any other character.run_life(grid, generations)returns a list ofgenerations + 1grids: the starting grid, then each next generation. Don't changegrid.draw_cells(canvas, grid, alive, dead)paints every cell: colouralivefor1, colourdeadfor0.- Finish the program: for every grid in
history, draw it with"grass"and"night"andshow()it (13 frames). - Finally print
Glowmoss after 12 generations: N, whereNis the number of live cells in the last grid.
parse(rows)turns a list of strings into a grid:1for"#",0for any other character.run_life(grid, generations)returns a list ofgenerations + 1grids: the starting grid, then each next generation. Don't changegrid.draw_cells(canvas, grid, alive, dead)paints every cell: colouralivefor1, colourdeadfor0.- Finish the program: for every grid in
history, draw it with"grass"and"night"andshow()it (13 frames). - Finally print
Glowmoss after 12 generations: N, whereNis the number of live cells in the last grid.
main.py Python sleeping
Press Run to try your code, then Check to test it.