id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

peter@norvig.com life > still_life
prev  |  next  |  chance

We're still playing Life: in this exercise, we will play the game for N generations. The function still_life(cells, N) returns the result of running the rules for N generations. As an optimization, if the population of cells hits a fixed point -- it is the same from one generation to the next -- then return right away.


...Save, Compile, Run (ctrl-enter)

def still_life(cells, N):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Post-solution available

Copyright Nick Parlante 2017 - privacy