def test_fut_curr_3(self): x = Life(5, 3, [['-','-','-'], ['0','1','0'], ['0','-','-'], ['-','-','0'], ['*','0','-']]) x.future = '-' x.moat_grid() x.fut_curr() x.grid[2][3].count = 0 x.grid[2][3].state = '-'
def test_fut_curr_2(self): x = Life(5, 3, [['.','.','.'], ['*','.','.'], ['*','*','*'], ['.','.','*'], ['.','.','*']]) x.future = '*' x.moat_grid() x.fut_curr() x.grid[2][2].count = 0 x.grid[2][2].state = '*'\
def test_future_4(self): x = Life(5, 3, [['-','0','-'], ['-','-','-'], ['-','-','-'], ['-','-','-'], ['-','-','-']]) x.moat_grid() x.count() x.future() self.assertEqual(x.grid[2][2].state, '-')
def test_future_3(self): x = Life(5, 3, [['.','*','.'], ['.','.','.'], ['*','.','*'], ['*','*','*'], ['.','.','*']]) x.moat_grid() x.count() x.future() self.assertEqual(x.grid[2][3].state, '.')