Esempio n. 1
0
 def testIsDead(self):
     matrix = GameOfLife.matrixUniverse(5, 5)
     matrix[1, 1] = 0
     matrix[1, 2] = 1
     dead = GameOfLife.isDead(1, 1)
     self.assertEqual(dead, True)
     notDead = GameOfLife.isDead(1, 2)
     self.assertFalse(notDead, False)