You can teach yourself programming as many people have done without seating in front of some lecturer everyday with the help of this coding games.
Checkout this 12 top sites selected out of nearly 200 sites where you can learn to code while playing games.
Mybridge A.I. evaluates the quality of content based on a variety of factors to determine how useful they are for programmers.
Solve challenging coding problems fun games. Supports all programming languages. Courtesy of @coding game
Check iO is a browser-based game where you need to solve problems in Python in order to advance. (It requires you to log in)
Learning Vim while playing a game.
http://vim-adventures.com/Courtesy of @doronlinder
Open source Link
Learn to code by trying to catch bananas. Mostly used by teachers to teach kids how to code (Paid). Courtesy of @CodeMonkeySTU
The elevator programming game. Solve challenges step by step. For example, Challenge #1: Transport 15 people in 60 seconds or less.
Open Source Link
Ruby Quiz is a weekly programming challenge for Ruby programmers in the spirit of the Perl Quiz of the Week. Currently it has 156 Quiz Archives.
Courtesy of @JEG2
The git-game is a terminal based game that teaches cool features of the git scm (source control management) system. The theme of the game is a scavanger hunt. Using git’s commands you find clues that will help you solve the “puzzle”.
Courtesy of Juan Gerardo Ruelas Jr.
The hacker.org challenges are a series of puzzles, tricks, tests, and brainteasers designed to probe the depths your hacking skills. To master this series you will need to crack cryptography, write clever code, and dissect the impenetrable.
For the folks who want to learn game programming:
No.1) Learn to Code by Making Games – The Complete Unity Developer. [10,374 recommends, 4.6/5 rating]
No.2) The Complete Unity 5 Guide: Unity Game Development Made Easy [270 recommends, 4.8/5 rating]