Robocode running in the browser

48 views
Skip to first unread message

Stuart Geipel

unread,
Mar 6, 2025, 10:25:46 AMMar 6
to Robocode
Try it out yourself, DrussGT vs Diamond: https://pimlu.github.io/doppio-robocode/
WARNING: This will probably max out your CPU!

Hello, I've been a longtime Robocode fan and decided my next project would be to try to get Robocode working in the browser. I was hoping for it to be an easy way to run battles since not as many people install desktop Java these days. Unfortunately the interpreter is too slow to really fulfill that role, but it works! It uses DoppioJVM which is a really impressive browser-based JVM interpreter someone made for their PhD thesis -- it gets all the tricky details right like reflection and class loading.

Thanks,
Stuart

fnl

unread,
Mar 6, 2025, 10:33:54 AMMar 6
to Robocode
Impressive work! 🤩

Robocode was not designed to run on a browser like that, so I imagine that this was hard to pull of!

I am building a new platform for Robocode named Robocode Tank Royale:
https://github.com/robocode-dev/tank-royale

Here you start a real server, and you can build your own UI an communicate with the server via Web Sockets.
I have not made a effort for this yet to let it run online. But this is definitely possible to do, e.g. by running the server from an container, and then let the bots join the server.

Best regards,
- Flemming

Stuart Geipel

unread,
Mar 7, 2025, 10:15:49 AMMar 7
to Robocode
Wow, that is really cool! I might try learning C# by playing with this!

Thanks,
Stuart
Reply all
Reply to author
Forward
0 new messages