Playing basketball at the gym is quality exercise, not to mention you can get better at basketball but i don't think by playing at a gym the talent is necessarily better
especially during the summer i would contend with an approach that more athletically