Your awesome mission: Coach a robot to become a basketball superstar! 🤖🏀
First, Tell Us About You!
Select a Level to Start!
Level 1: The Practice Court
Learn the basics and take your first shots from a fixed position.
Level 2: Moving Scrimmage
The ball moves to new spots. Can you score from all over the court?
Level 3: The Blocker Boss
A moving blocker is in your way! Time your shots perfectly to win.
Bot's Cheat Sheet: Q-Table 📜
For every STATE (e.g., the ball position), the bot learns a Q-Value for every possible ACTION (an Angle + Power combo).
A higher score means the bot thinks that move is awesome! 🥳
Reading the Cheat Sheet 🎨
Each cell shows the Q-Value for one action in the current state:
The ball is always in the same spot. Since the state never changes, the bot only needs one basic Cheat Sheet. What you see is the whole thing!
Focus: Learning the best actions for just ONE state.
LEVEL 2: Ball Moves = Cheat Sheet Needs Pages!
Uh oh, the ball starts in different places now! The best shot changes depending on the starting spot.
So, the bot needs a separate Cheat Sheet page for each state (ball position). Its brain is like a flipbook 📖, and you're only seeing the page for the current ball spot!
Focus: Learning different actions for DIFFERENT starting positions.
LEVEL 3: Blocker Added = Cheat Sheet Becomes a Library!
Woah! Now the ball moves AND a blocker moves! This creates TONS of different states (ball spot + blocker spot).
The bot's brain needs to store way more info. It needs a whole flipbook for every blocker position, and each flipbook has pages for every ball position! It's like a huge library 📚!
You're seeing just one single page out of potentially hundreds! 🤯
Focus: Learning the best actions AND the right timing to avoid the blocker.
⭐ Your Coaching Role ⭐
Use 'Train' buttons to help the bot practice and update its Cheat Sheet.
Click 'SHOOT!' to see the bot use its Cheat Sheet to pick the best action it knows for the current state.
AI HOOPS: LEVEL 1
The bot learns the perfect shot from a fixed position.
YOU
BOT
0
0
Your turn! Take your shot.
You!
Adjust the angle and power to score!
Try to find the one perfect shot! Think about what you need: more/less power, or a higher/lower angle?
HoopsBot
🤖 Training...
Q-Table
High (60)POWERLow (10)
Low (45°)ANGLEHigh (90°)
Use the 'Train' buttons to make me smarter! Then click 'SHOOT!'.