Learn JavaScript fundamentals and coding techniques through a fantasy roleplaying game interface - create AI warriors, battle enemies, and explore towers with WarriorJS
WarriorJS is an open-source JavaScript coding game designed to teach programming fundamentals and techniques. It presents coding challenges and concepts through the lens of a fantasy warrior roleplaying game.
In the game, players code their own warrior to battle enemies across dungeon floors and towers. They write artificial intelligence in JavaScript to instruct the warrior how to make decisions, move, attack, rest, and more. As the warrior gains experience and levels up, players are able to allocate skill points and equip new abilities.
Across increasingly difficult towers, the game tutorials introduce programming topics like functions, recursion, and pathfinding algorithms. Writing the warrior AI requires analyzing the situation, planning strategies, dealing with uncertainty, and handling edge cases. As a result, players organically practice core skills like logic, problem decomposition, and debugging.
With its gamified, fantasy-themed take on coding challenges, WarriorJS aims to provide an engaging way for new programmers to build their capabilities from hello world to advanced techniques.
Here are some alternatives to WarriorJS:
Suggest an alternative ❐