示例#1
0
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()
示例#2
0
 def test_is_board_empty(self):
     self.assertEqual(model.is_board_empty(), True)