Capped triangle wave solution in Creative category for Square Board by PythonWithPI
from typing import Tuple
Coordinate = Tuple[int, int]
def square_board(side: int, token: int, steps: int) -> Coordinate:
#lower right is (side,side)
#Function designed in desmos, used a
#modulus triangle wave capped at 0 and s so it would represent the coordinates properly.
#Then I shifted it over for the other side.
Feb. 13, 2019