def rc2p(row, col, N):
    """
    row-col to (board) position

    row and column go from 1 to N
    Test OK
    :param row:
    :param col:
    :param N:
    :return:
    """

    # print('row:{} col:{}'.format(row,col))
    return row * (N + 1) + col