Open
Description
Implement the function below in Python, that takes in input the colour of the player who has to play the turn (parameter colour), the sets of coordinates (i.e. sets of tuples) of all the black stones (parameter black) and white stones (parameter white) already positioned on the board, and returns the x, y coordinate (a tuple) of a free intersection where to place a new colour stone. The coordinates of the various positions of the board are those ones defined in "the board" as in the AlphaGo material available online.
def place_stone(colour, black, white):
# study the board and calculate the
# best place where to position the stone
return x, y # the coordinates of the new stone
Additional information is available at https://doi.org/10.5281/zenodo.2204836.