def square(): """Return tuple representing space""" if model.is_board_empty(): return corner(model.is_corner_empty()) if model.is_center_empty(): return 1, 1 corners = model.is_corner_empty() if corners: return corner(corners) return side()
def test_is_board_empty(self): self.assertEqual(model.is_board_empty(), True)