Play Ball

What does the idiom “play ball” mean?

Definition: Cooperate, agree to participate

Example: We’d love to have our competitors participate, but if they won’t play ball, we’ll go it alone.