Battle-tested and explicit. The classic choice for tank AIs, MMO units and tournament bot arenas. This page focuses on games where Java is part of the actual play loop: you write scripts, solve puzzles, control bots or build systems instead of only reading a lesson.
Start with Screeps, Battlecode and Bitburner if you want bot arena, code puzzles and learning. The mix currently leans beginner and intermediate, so use the ratings and difficulty labels to choose a first game that matches your comfort level.
For learners, the useful question is not just “does this game support Java?” It is whether the game gives feedback you can reason about: a bot decision, a failing puzzle, a resource loop, a layout rule or a simulation that exposes what your code did wrong.
We keep the list narrow on purpose. If a game only mentions Java in a side feature, it belongs in the full catalog, not here. The goal is to help you find practice where the language matters to the core loop, with enough context to compare options before opening each review.
Below are the 18 Java programming games we track, ranked by rating. Browse the full catalog →

Screeps: World
OnlinePaidest. 2016★4.7 (318)An open-source MMO RTS where your units are driven by JavaScript you write — and the world keeps running 24/7, even while you sleep.

Battlecode
OnlineFreeest. 2024★4.7 (156)MIT’s annual AI programming competition. Command an army of bots with distributed strategy and battle other teams for the title.

Bitburner
OnlineFreeest. 2021★4.6 (489)A programming-based incremental: script your way through a cyberpunk net, automate hacking with a NetScript API, and break the simulation.

CodinGame
OnlineFreeest. 2014★4.6 (1204)Solve puzzles and fight other players’ bots in real-time arenas. Write in 25+ languages and watch your code play out as an animated game.

Screeps: Arena
OnlinePaidest. 2022★4.5 (142)The same JavaScript brain, distilled into discrete PvP matches — write the AI, drop it in the arena, and let it fight.

Robocode
OfflineFreeest. 2001★4.5 (274)Build a robot tank, code its brain in Java or .NET, and drop it into the arena. The classic that taught a generation to program by battling bots.

Elevator Saga
OnlineFreeest. 2014★4.5 (198)Write JavaScript to control a bank of elevators and move people efficiently. A free, focused optimisation puzzle.

Untrusted
OnlineFreeest. 2013★4.5 (112)Escape a roguelike by editing the JavaScript source of each level live, bending the world’s own rules to find a way out.

Microsoft MakeCode Arcade
OnlineFreeest. 2019★4.5 (640)Build retro arcade games with blocks or JavaScript, then play them in the browser or on tiny handheld hardware.

Robocode Tank Royale
OnlineFreeest. 2022★4.4 (88)The modern Robocode: bots connect over WebSocket so you can write them in any language you like.

CheckiO
OnlineFreeest. 2013★4.4 (356)Level up Python and JavaScript by solving puzzles, then read everyone else’s solutions to the same problem. Learn by comparing.

yare.io
OnlineFreeest. 2019★4.4 (71)A real-time strategy game with no mouse control — every one of your spirits is commanded by the JavaScript you write.

Blockly Games
OnlineFreeest. 2014★4.4 (760)A free set of browser puzzles that introduce programming concepts through blocks before revealing the JavaScript underneath.

CodeCombat
OnlineFreeest. 2013★4.3 (642)Learn Python or JavaScript by playing a top-down RPG where every move is a line of code you write.

Adventure Land
OnlinePaidest. 2018★4.3 (132)A browser MMORPG where you can play by hand — or open the console and code up to four characters in JavaScript.

hackmud
OnlinePaidest. 2016★4.3 (138)A text-based hacking MMO where you write scripts to crack, scam and defend systems in a noir cyberspace.

WarriorJS
OfflineFreeest. 2015★4.3 (74)Climb a tower floor by floor by writing JavaScript that decides how your warrior fights, walks and survives.

Deepest World
OnlineFreeest. 2024★4.2 (44)A browser sandbox MMORPG where your character is driven by JavaScript you write in an in-game editor — automate the grind, then go deeper.