Learn to code while you play
Here are 5 great games that you can play online. These games are designed to help you learn how to code through a selection of stories and puzzles.

1. Empire of code
A space game with a mix of strategy, tactics, and coding. This visual feast from the Empire of code allows players can open new islands on a map by solving puzzles. They also have an opportunity to find the best solution with other players. Empire of Code is a space strategy mid-core game where the player builds their own base and conquer other players bases.
2. Robocode
Robocode is a programming game, where the goal is to develop a robot battle tank to battle against other tanks in Java or .NET. The robot battles are running in real-time.
4. Ruby warrior
This is a game designed to teach the Ruby language and artificial intelligence in a fun, interactive way. here you play as a warrior climbing a tall tower to reach the precious Ruby at the top level. On each floor, you need to write a script to instruct the warrior to battle enemies, rescue captives, and reach the stairs.
5. Code combat
In Code Combat you use code to control game characters makes it easy to get started. High-quality graphics make it feel like you’re modifying a real game. Challenging puzzles keep players experimenting to find the best way to wipe out enemies.
Plenty to choose from. If you have any ideas for other educational game play activities just let us know in the comments below and we will be happy to feature them.