• Computes the opposite player of the current player of a game of tic-tac-toe.

    Parameters

    • aPlayer: string

      either "x" or "o"

    Returns string

    • a string corresponding to the other player