When we say something like this:
¡No juegues a la pelota en el patio!
Don't play with the ball in the patio!
we are not referring to a specific game; we are referring to simply playing "with" the ball (just using a ball).
We could have also said:
No juegues con la pelota en el patio.