• Given a state aState, returns a string telling who the winner is.

    Parameters

    • aState: string[]

      a state of the game

    Returns string

    • a one-letter string, that is either "o" (victory for "o"), "x" (victory for "x"), "D" (draw), " " (unfinished game) or "?" (unknown)