These Web games teach you how to code will give you a fun and engaging introduction to the world of programming.
CodeCombat is an HTML5 role-playing game (RPG) that teaches you fundamental programming concepts. In CodeCombat, you play a hero adventuring through the game’s levels. The first level is Kithard Dungeon, which covers basic programming concepts.
The game covers a wide range of programming topics — strings, variables, method invocation, vector drawing, and much more.
Code Hunt is a Sci-Fi-themed HTML5 game that teaches coding and was developed by Microsoft Research. In this game, you play as a code hunter tasked with repairing code so that it returns the expected result. There are 14 levels, called Sectors in the Code Hunt nomenclature, for you to complete.
Code Hunt supports either Java or C#. Programming concepts you’ll learn include arithmetic, loops, and conditional expressions. Teachers who would like to extend the game with additional Sectors can do so by first reading the Code Hunt Designer Manual.
The user interface is feature-packed and can be customized. For example, you can choose your code editor’s style: “Emacs”, “Vim”, or “Classic” (the default theme). The game can be played on single player mode or multiplayer mode.
In multiplayer mode, you can solve CodinGame challenges with other users.
For example, you can use the
.rotateCannon() method to rotate your robot’s cannon by a certain number of degrees when a certain event happens. Before building your indestructible, world-dominating robot, the first step you’ll need to take is to read the docs to learn how to code a robot.