It’s now time to battle! ⚡️
If you don’t feel like building your own agent, and you’re just curious about the battle potential of agents in pokémon. We are hosting an automated livestream on twitch
To battle the agent in stream you can:
Instructions:
Heads Up: Only one agent is online at once! Make sure you’ve got the right name.
If you’ve created your own Pokémon Battle Agent from the last section, you’re probably wondering: how can I test it against others? Let’s find out!
We’ve built a dedicated Hugging Face Space for this purpose:
This Space is connected to our own Pokémon Showdown server, where your Agent can take on others in epic AI-powered battles.
Follow these steps to bring your Agent to life in the arena:
Duplicate the Space
Click the three dots in the top-right menu of the Space and select “Duplicate this Space”.
Add Your Agent Code to agent.py
Open the file and paste your Agent implementation. You can follow this example or check out the project structure for guidance.
Register Your Agent in app.py
Add your Agent’s name and logic to the dropdown menu. Refer to this snippet for inspiration.
Select Your Agent
Once added, your Agent will show up in the “Select Agent” dropdown menu. Pick it from the list! ✅
Enter Your Pokémon Showdown Username
Make sure the username matches the one shown in the iframe’s “Choose name” input. You can also connect with your official account.
Click “Send Battle Invitation”
Your Agent will send an invite to the selected opponent. It should appear on-screen!
Accept the Battle & Enjoy the Fight!
Let the battle begin! May the smartest Agent win
Ready to see your creation in action? Let the AI showdown commence! 🥊
< > Update on GitHub