def test_3_cells_with_gap_vertically_middle(self): player = occupier = Player(-1) cell = Cell.Cell(0, 1, player, occupier) cells = {Cell.Cell(0, 0, player, occupier), cell, Cell.Cell(0, 2, player, occupier)} self.assertFalse(Cell.is_between_cells(cell, cells))
def test_3_cells_in_line_horizontally_right(self): player = occupier = Player(-1) cell = Cell.Cell(2, 0, player, occupier) cells = {Cell.Cell(1, 0, player, occupier), cell, Cell.Cell(0, 0, player, occupier)} self.assertFalse(Cell.is_between_cells(cell, cells))