• Given a state aState, returns a boolean telling if the state is final, i.e there is a winner, or no more moves can be played.

    Parameters

    • aState: string[]

      a state of the game

    Returns boolean

    • if aState is indeed final