Ad
  • Default User Avatar

    when testing, only one case alert that "IndexError: list index out of range". I can't figure out why it occurs.My logic of the problem, circulating the list, judging each neighbours, set a empty list which same size with the test one, change newlist's number. This works in three cases,except glider. Says the newlist list index out of range. could anyone give me a hand?