These Web games will give you a fun and engaging introduction to the world of programming.

CodeCombat

CodeCombat is an HTML5 role-playing game (RPG) that teaches you fundamental programming concepts.

CodeCombat

In CodeCombat, you play a hero adventuring through the game’s levels. The first level is Kithard Dungeon, which covers basic programming concepts. You’re faced with coding challenges throughout your journey, and if you overcome them, you’ll unlock the next level and earn experience points (XP) that you can use to improve your hero.

Levels in CodeCombat

CodeCombat is appealing to young, aspiring programmers. According to an in-game survey, 62% of CodeCombat’s users are under 18 years old.

CodeCombat supports five programming languages: JavaScript, CoffeeScript, Lua, and Python. The game covers a wide range of programming topics — strings, variables, method invocation, vector drawing, and much more.

Code Hunt

Code Hunt is a Sci-Fi-themed HTML5 game developed by Microsoft Research.

Code Hunt

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 user interface

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.

CodinGame

CodinGame is a huge suite of challenging games for programmers. If you want to improve your coding skills, playing CodinGame is a fun way to do so.

CodinGame

Over 20 programming languages including PHP, C, and JavaScript are supported by CodinGame. 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).

CodinGame example

The game can be played on single player mode or multiplayer mode. In multiplayer mode, you can solve CodinGame challenges with other users.

Screeps

Screeps is a massively multiplayer online game (MMO) for JavaScript programmers.

Screeps

The game is an open-world strategy game where you control units, called creeps, that will help you mine resources, establish your territory, and so forth. Being a multiplayer online game means your creeps will be alongside the creeps of other players.

Screeps simulation

Controlling your creeps involves writing JavaScript. (Screeps = scripting your creeps.) To learn how to play the game, hit up the docs.

FightCode

In FightCode, the objective is simple: Create a robot that will defeat the robots of other players.

FightCode

How do you create a robot? By writing some JavaScript. 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.

FightCode demo

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.

Read Next

10 Puzzle Websites to Sharpen Your Programming Skills

15 Free Books for People Who Code

5 Good Habits That Will Make You a Better Coder

Jacob Gube is the founder of Six Revisions. He’s a front-end developer. Connect with him on Twitter and Facebook.

The post 5 Games That Teach You How to Code appeared first on Six Revisions.