Nathan Wailes - Blog - GitHub - LinkedIn - Patreon - Reddit - Stack Overflow - Twitter - YouTube
Games related to programming
Table of contents
Child pages
Related pages
Background
When I was studying for the LSAT, I found it helpful to do other kinds of logic puzzles as a way of getting better at the LSAT's logic games. I learned certain lessons / best-practices from those other puzzles that I was able to then apply to the LSAT's games.
I suspect that the same thing may be possible with programming; by playing these games, in which a lot of the variables/frustrations/distractions of normal programming have been removed (like spending hours looking on Google to figure out what to do next, or not being able to understand the documentation), I suspect (hope) it will be easier to learn certain lessons about the 'best' way to do programming.
Developers
Articles
2016.10.03 - RPS - Can videogames teach you programming?
Human Resource Machine
Hack ‘n’ Slash
"you have an incredible amount of freedom in approaching every puzzle, but at the same time, it can be terribly intimidating if you don’t understand why your solution simply didn’t work. To be fair, though, that’s pretty much programming in a nutshell."
difficulty spike makes Hack ‘n Slash a rough game to play, but if you can get past that, there’s a lot of good stuff to learn.
As a game, Hack ‘n’ Slash has a lot of problems. As a programming tutorial, it’s markedly better. (...) So long as you’re prepared to learn the hard way just how much trial, error, and frustration goes into coding, you can come away with a firm grip on the systems and processes that underpin all languages of the modern era.
TIS-100
Summary: So, can you learn to program by playing games? I’d say yes, with a couple of caveats. First, the challenges of programming are rarely as clearly defined as the puzzles in the aforementioned games; project requirements often change multiple times during development, and sometimes you won’t even know whether what you’re trying to do is possible until you do it – or give up. (...) Second, games alone won’t turn you into John Carmack; they can teach you the basics and help hone a programming mindset, but you’ll still need to hit the virtual books before you’re ready to make the next DOOM.
Lessons learned
Keep track of the patterns you're being taught.
Many of these games are cumulative in their puzzle design: they will have a puzzle that will require a certain technique to solve it, and then a later puzzle will require that same technique to solve a component of the later puzzle.
This makes it really hard for people who play the game intermittently, as you'll have forgotten the pattern by the time you revisit the game.
The solution (IMO) is to keep track of the patterns and think of them as "new moves" in the same way that those 30 rules of chess can be thought of meta-moves.
This kind of writing-down-what-you've-learned is exactly how I got good at the LSAT logic games.
Limit yourself to solving at most one puzzle per day.
Don't aim for your first solution to be an optimized solution. First focus solely on having a working solution. Be content with an unoptimized working solution.
It is much easier to get to an optimized working solution by first getting an unoptimized working solution and then looking for ways to optimize it. Going straight for an optimized working solution can make it extremely difficult to finish a puzzle.
Step through your code when you're feeling stuck.
Look for ways to break a puzzle down into smaller sub-puzzles or simpler versions of the same puzzle, and solve those smaller / simpler puzzles first.
Games I haven't played yet
Online collections of programming games
programminggames.org ← Wow, that was a true labor of love.
Beginner-level
LightBot - This one looks really well-done.
CodeMonkey - Less well-done
COLOBOT - Haven't checked this out yet, graphics aren't great
Hacking-related games
Misc
rec'd by Oliver Steele here, who made this very-insightful comment about sleep (not related to the game or programming)
Inspired by Zachtronics' Flash games.
Was infinifactory based on this?
Rec'd by a guy in a review of Human Resource Machine on Steam.
This seems to do a good job of showing how commands can be combined to create new commands.
rec'd by Samy Kamkar in a tweet
This one looks cool...
...it apparently has some kind of subscription model.