Welcome to the world of LeGology Technology, littleBits & Brics, Mindstorms/Tetrix Robotics, & NYC FIRST LEGO League...
Check out the basketball playing humanoid robot using the Mindstorms NXT 2.0 kit
by Matthias Paul Scholz's
Another basketball playing robot that can also keep and play "score!" can be found @