Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Square Board by kazuki.h
def square_board(side, token, steps):
side -= 1
place = (token + steps) % (side*4)
q, r =divmod(place, side)
if q == 0: return (side, side-r)
if q == 1: return (side-r, 0)
if q == 2: return (0, r)
if q == 3: return (r, side)
Dec. 8, 2021
Comments: