예제 #1
0
 def test_rule_4_die_w_1_live_nbs(self):
     self.assertFalse(game_of_Life_rules(0,1))
예제 #2
0
 def test_rule_2_live_w_2_live_nbs(self):
     self.assertTrue(game_of_Life_rules(1,2))
예제 #3
0
 def test_rule_4_revive_w_3_live_nbs(self):
     self.assertTrue(game_of_Life_rules(0,3))
예제 #4
0
 def test_rule_1_die_w_0_live_nbs(self):
     self.assertFalse(game_of_Life_rules(1,0))