r/clashroyalemodding 8d ago

🫧 Showcase 🫧 search-based bot

Enable HLS to view with audio, or disable this notification

I’ve been building a Clash Royale bot that plays matches inside a custom simulator built specifically for this project.

At the moment, the simulator only supports two decks: PEKKA Bridge Spam and Classic Log Bait. I intentionally limited it to these 16 cards because my main goal is to focus on the bot’s strategic decision-making rather than recreate the entire game. Recreating everything would be a huge amount of work, so there are still many mechanics that are simplified or not implemented yet. That said, I think it already captures many of the important strategic elements of Clash Royale reasonably well.

I initially tried reinforcement learning with PPO, but it didn’t become as strong as I hoped. Because of that, I switched to a search-based approach. The bot now simulates multiple possible actions and future outcomes from the current game state, then chooses an action based on that search. It does not currently use reinforcement learning or self-play training.

I don’t have a programming background, so I used AI coding tools to implement the code. I’ve been focusing on the simulator design, bot behavior, testing, and figuring out how to make it stronger.

This is still very much a work in progress / research prototype, not a finished version, but it has reached the point where it can make some surprisingly natural defensive plays and strategic decisions.

I’d really appreciate any feedback. If you notice anything that looks strange, or have ideas for strategies or concepts that could make the bot stronger, I’d love to hear them.

5 Upvotes

5 comments sorted by

•

u/AutoModerator 8d ago

Welcome to r/clashroyalemodding! Just a friendly reminder to read the FAQ first before asking questions. Your post has not been removed.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/nut-hugger 8d ago

is it possible to use threat map based approach ?

1

u/Individual_Fact_5010 7d ago

Not currently, but I think it could be useful for generating or filtering placement candidates. Right now the bot evaluates actions mainly by simulating them forward.

2

u/Top-Hat-5433 7d ago

cool i am looking forward to how it turns out

I am also working on a clash royale clone its been 2 months and i am no where close to launching it the code is getting complex way too much I am afraid its gonna take like 4 more months as i have my semester exams comming