DEV Community

Cover image for Learn coding by playing games 🎮
Dhanush N
Dhanush N

Posted on • Updated on

Learn coding by playing games 🎮

When beginners usually start to code sometimes may get stuck or confused with some concepts. But there are many sites which help to learn some fundamentals of programming by playing games which can be fun & also makes coding a lot interesting. This blog lists the various sites where we can learn coding by playing online games.

📌 CheckIO and Empire of Code

Strategy games that can teach you JavaScript or Python.

📌 Code Wars

Helps you improve your skills by training in challenges with others. They offer a huge variety of languages, including JavaScript, Swift, PHP, Python etc

📌 Untrusted

Improvises your javascript skills by solving problems

📌 Elevator Saga

Tests your JavaScript knowledge with challenges related to moving an elevator and transporting people in the most efficient manner possible

📌 Vim Adventures

Vim is a highly configurable text editor used by programmers. If you want to learn how to use Vim then check this

📌 Code Hunt

You can learn Java etc. In a funny game way

📌 Robocode

You’ll learn programming skills by building virtual robot battle tanks in Java or .NET

📌 SQL Murder Mystery

This exercise is meant more as a way to practice SQL

📌 Flexboxfroggy

24 levels to learn how CSS Flexbox works

📌 Cyber Dojo

Cyber Dojo has practice exercises and challenges for dozens of coding languages including Ruby, JavaScript, PHP, Python, and more

📌 CodinGame

Coding game offers up fun free games to help learn more than 20 programming languages

📌 CSS Dinner

It has 32 levels that will teach you the basics of how CSS selectors work.

📌 Codecombat

Anyone can learn Python, JavaScript, CoffeeScript etc

📌Ruby warrior

Learn ruby with this awesome game


It teaches coding using CoffeeScript, a real programming language, to teach you to build your own games in HTML5.

📌Flexbox defence

Another great one to practice Flexbox skills

Thanks for reading 😊

If you like this content & if you feel it may help someone share it ❤️

If you know any games that would help in learning to code drop below

Buy Me A Coffee

Top comments (1)

eliasagg profile image

What an excellent idea! There were many I hadn't heard about.

Also, the link to ruby warrior seems to be 404