Esempio n. 1
0
 def test_life_8(self):
   l = Life(2,2)
   c1 = FredkinCell(True)
   c2 = FredkinCell(True)
   c3 = FredkinCell(True)
   c4 = FredkinCell(True)
   l.addCell(0,0,c1)
   l.addCell(0,1,c2)
   l.addCell(1,0,c3)
   l.addCell(1,1,c4)
   
   l.countLives()
   l.livesCount = [[2,2],[2,2]]
Esempio n. 2
0
 def test_life_9(self):
   l = Life(1,1)
   c1 = FredkinCell()
   l.addCell(0,0,c1)
   l.countLives()
   l.livesCount = [[0]]