30 games you can play to learn to code
Tags: javascript, webdev, beginners, tutorial
Published: 2022-02-08 12:32:44


## Howdy Geeks! 👋

It is the 21st Century and games are an integral part of our lives. But did you know you can learn coding by playing games? If not, you’re in luck today. 

Presenting the 30 games you can play to learn a variety of programming languages


## 1.  [JS Robot](https://lab.reaal.me/jsrobot/)  

Learn the basics of javascript.
    
## 2. [Elevator Saga](https://play.elevatorsaga.com/)  

Make the elevators efficiently move people through floors and avoid backlogs.


## 3.  [WarriorJS](https://warriorjs.com/) 

Code your way through dungeons, prove your skills, and get hired.


## 4.  [Untrusted](https://alexnisnevich.github.io/untrusted/)  

A text-based dungeon crawler where you progress with the aid of JavaScript.


## 5.  [Code Monster](http://www.crunchzilla.com/code-monster)  

Learn the basics of JavaScript on the browser.


## 6.  [JavaScript Fight Club](https://jsfight.club/)  

Playing Javascript games to master fundamentals.


## 7.  [Yare](https://yare.io/)  

Real-Time Strategy game where you control your units by writing JavaScript code.


## 8.  [Codewars](https://www.codewars.com/)  

Improve your skills by training with others on real code challenges.


## 9.  [CodinGame](https://www.codingame.com/)  

Games and Programming Challenges to Code Better.


## 10.  [Cyber Dojo](http://cyber-dojo.org/)  

Hone your programming skills in a huge range of languages, writing code to pass tests.


## 11.  [Grasshopper](https://grasshopper.codes/)  

Fun, quick lessons on your phone that teach you to write real JavaScript.


## 12.  [ReturnTrue](https://alf.nu/ReturnTrue)  

A game where you learn about booleans, return true to win.


## 13. [Coding Fantasy](https://codingfantasy.com/)  

Learn to code in a revolutionary new, fun, and effective way.


## 14. [CodeCombat](https://codecombat.com/play)  

Learn how to code by playing a game.


## 15. [Web Audio School](https://mmckegg.github.io/web-audio-school/) 

Interactive WebAudio tutorials.


## 16. [CodinGame](https://www.codingame.com/start)  

A challenge-based training platform where you can play with the hottest programming topics.


## 17. [Cube Composer](https://david-peter.de/cube-composer/)  

A puzzle game inspired by functional programming.


## 18. [Codecademy](https://www.codecademy.com)  

Learn to code interactively, for free.


## 19. [Code Avengers](https://www.codeavengers.com/)  

Learn to build websites, apps, and games in a fun and effective way.


## 20. [CSS Battle](https://cssbattle.dev/)  

Test your CSS skills by solving coding challenges.

## 21. [CSS Dinner](https://flukeout.github.io/)  

Solve challenges by arranging dishes and food and learn about CSS selectors.

## 22. [Grid Garden](https://cssgridgarden.com/)  

Write CSS code to grow your carrot garden while learning about the CSS grid.


## 23. [Flexbox defense](http://www.flexboxdefense.com/)  

Stop the incoming enemies from getting past your defenses using CSS.


## 24. [Flexbox froggy](http://flexboxfroggy.com/) 

Master CSS Flexbox.


## 25. [Hex Invaders](http://www.hexinvaders.com/)  

Learn about HEX colors by shooting off aliens having the same colors!


## 26. [Robocode](https://github.com/turkishviking/Python-Robocode)  

Code robots, win matches, rank up.


## 27. [Checkio](https://py.checkio.org/)  

Practice Python Online


## 28. [Ruby Warrior](https://github.com/ryanb/ruby-warrior)  

A game written in Ruby for learning Ruby and artificial intelligence.


## 29. [SQL Mystery](https://mystery.knightlab.com/) 

There's been a Murder in SQL City! The SQL Murder Mystery is designed to be both a self-directed lesson to learn SQL concepts and commands and a fun game for experienced SQL users to solve an intriguing crime.


## 30. [Oh my git!](https://ohmygit.org/) 

An open-source game about learning Git!

###  Thank you for reading!
Follow us on [Twitter](https://twitter.com/geektechpub) for more tech blogs.

Until next time,

Abhiraj.