Example #1
0
def get_sqd_from_center(boardsize):
    """
    plane `position mask` from
    Yuandong Tian, Yan Zhu, 2015
    Better Computer Go Player with Neural Network and Long-term Prediction
    (arXiv:1511.06410)
    """
    assert boardsize % 2 == 1
    center = boardsize // 2
    return distances_from_pt(sq_distance, (center, center), boardsize)
Example #2
0
def get_gridcular_from_center(boardsize):
    assert boardsize % 2 == 1
    center = boardsize // 2
    return distances_from_pt(gridcular_distance, (center, center), boardsize)
Example #3
0
def get_l2_from_center(boardsize):
    assert boardsize % 2 == 1
    center = boardsize // 2
    return distances_from_pt(l2_distance, (center, center), boardsize)