You are really underestimating the difficulty in making humanoid robots that actually work well.
Sure we can make a basketball shooting machine with a high accuracy, but one that participate in a game, dribble, pass etc? Near impossible with today's technology.
It just needs to be tall, move with some speed, and be able to receive passes from other players; essentially a easier to hit hoop that can annoy the opposing team by getting in the way.
The requirement that it'd be humanoid is just an artificial restriction that reveals you are not really asking for the best basketball machine that can be made.
It'll have to follow the rules of basketball, though, which were written for human players and refer frequently to 'hands', 'feet', 'steps', 'arms', 'legs', and so on.