Follow TV Tropes


Programming Game

Go To
A game, usually a Puzzle Game or a Simulation Game, in which the player has little to no direct control over the game's events. Instead, the player's task is to set up the solution, then hit a "go" switch to activate the solution and see if it accomplishes the task correctly. Setting up the solution may require enqueuing objects with a list of commands to follow, or arranging objects on the game board to change the way they react to one another. If the solution contains elements of randomness or is particularly complex, the player will need to perform many unsuccessful test runs to adjust the solution before finding one that works.

Programming games usually have no playable characters, but sometimes one will exist for the purpose of setting up and activating the solutions. It is also common for the game to allow a limited measure of user activity while a solution is running, by means of the playable character or otherwise, but the player will need to design the solution with this interaction in mind and plan ahead for it.

Programming games, if they involve a programming-like language, can make good Edutainment Games for introducing computer science and programming to children.

Not to be confused with Interactive Fiction, Game Maker, or Game Engine. Other genres of game can have elements of this through Gameplay Automation.


  • The Incredible Machine was one of the first such games and the Trope Codifier for many of the common elements of the genre (no characters, using an array of items that react to each other in various ways to set up a field to achieve a certain goal upon activation, steep difficulty curve).
  • Colobot is a mixture of this and a Real-Time Strategy game, where you are you given various robots at your disposal that you can program yourself, with your task being finding a new planet for humanity to colonize. The language they use, CBOT, is based on real programming languages like C++ and Java, and it offers you quite a lot of freedom in setting up the tasks for the robots. With the right coding, you are able to order robots to do things like automatically collecting ore, bringing it to the nearest ore refinery and then placing the resulting titanium somewhere aside, or having the shooter robots become turrets that automatically turn towards targets and shoot at them when they get close enough.
  • Armadillo Run, which makes use of a physics engine. Set up a bunch of platforms and ropes of varying material, start the process, and hope your armadillo (actually a ball) finds its way to the portal.
  • Most games by Zachtronics Industries (former tagline "games for engineers"). Notably:
    • The Codex Of Alchemical Engineering. Quoting the description, 'As an Alchemical Engineer, you must build machines out of mechanical arms and magical glyphs that transform and combine atoms in order to create the compounds required for each level.'
    • KOHCTPYKTOP Engineer Of The People: design integrated circuits to meet set tasks by laying out doped silicon.
    • SpaceChem. Each 'reactor' is effectively a finite-state machine. (Arguably a refinement of Codex.)
    • Infinifactory has you designing manufacturing processes to take inputs and manipulate them to produce outputs. It's often described as a 3D version of SpaceChem, though it does have a different tool set and is considerably easier.
    • TIS-100 is the purest example of this trope, since it involves you literally programming an emulated fictional microprocessor using Assembly language.
    • SHENZHEN I/O expands on TIS-100's gameplay by putting you into the role of an engineer designing products using microcontrollers, which not only need code written, but also requires you to lay out circuit pathways connecting them up.
    • EXAPUNKS is themed around 90s style Hollywood hacking. You are tasked with programming EXAs, autonomous programs that move around whatever host you are trying to subvert.
    • MOLEK-SYNTEZ is like a hex-grid version of SpaceChem (with a few elements from Opus Magnum), putting you in the position of programming a molecular synthesiser to make various drugs from common industrial chemicals.
    • Last Call BBS features three programming games: 20th Century Food Court, ChipWizard™ Professional, and X'BPGH: The Forbidden Path.
  • Final Fantasy XII has you set up conditions that the AI-controlled characters use to fight — unless, of course, you want to control all of them yourself, which is an entirely valid option.
  • Dragon Age has combat tactics, simple AI-type selection and a list of conditions and responses. Since the player can only control one character in real time, you have to either rely on these, or pause every split second to micromanage. In Origins, the number of available tactics slots (condition-reaction pairs) pro companion was determined by character level and a specific skill level, but only by the former in Dragon Age II.
  • The Dr. Brain series is quite fond of these. All four games have a programming puzzle in them.
    • In Castle of Dr Brain, it's a simple maze with three important objects. If you play on Standard or Expert, the robot heads break after success, and only one of the three follows your program exactly as written. The others are one which always does the opposite of what you tell it, and the other alternates between obeying and the opposite instruction.
    • In The Island of Dr Brain, you're programming a robot to retrieve packages from around a randomised lab. One cartridge has the robot behave normally, one has random bugs (which make it do the opposite of the written instruction) and the third one makes the robot stop and watch any monitor it goes past! Unsurprisingly, anyone using the third cartridge will be trying to make the robot's route avoid monitors. Oh, and on the harder difficulties, the cartridges burn out after the robot successfully delivers a crate to you, forcing you to use all three, just like the robot heads in the first game.
    • In The Lost Mind of Dr Brain, you're programming an icon of Dr Brain to collect brain icons. Novice difficulty restricts programming to just the seven-line Main program. Expert and Genius have, respectively, one and two subroutines and a lot more brains to collect.
    • In The Time Warp Of Dr Brain there's a bunch of cars which need to get to the appropriate parking spaces. In this version color-coded instructions are placed at the intersections, and cars will follow any appropriately-colored instructions they come across. Harder difficulties add obstacle vehicles which follow predetermined paths and multiple cars of the same color, and even though same-colored cars have interchangeable parking spots each spot can only hold one car.
  • else Heart.Break() has a programming language, Sprak, which the computers, and other various things, run on. The player can use a modifier to change the code within various objects.
  • The boardgame Robo Rally is something of a programming game. At the start of each turn, you 'program' the moves for your robot (turn, move forward, move backward, etc), and hope none of the other players' robots get in your way.
  • The lesser-known boardgame Robotanks has you controlling a team of four tanks, setting each with its own stack of order cards and having limited ability to reprogram them. Normally you're reprogramming one a turn while the others go around doing whatever you last told them to do.
  • Fire Pro Wrestling G had an Edit Ranking mode, where you design the AI for a Create-A-Wrestler and pit him against a ladder of opponents, the objective being to design a character who can make it all the way through. Fire Pro Wrestling D goes one better, allowing you to have the AI play through the game's season mode, essentially turning the whole game into a Programming Game.
  • Core Wars is a simulation of an old-fashioned computer's memory. Players write programs in Redcode (an assembler-style language) to attack other programs; common tactics include attempting to overwrite, crash, or enslave by various means. Competitions are generally one-on-one, with a King Of The Hill format being typical for most servers and some tournaments.
  • Origin Systems (of Ultima and Syndicate fame) published a game called Omega where you programmed robotic tanks using a structured form of BASIC, then set them battling each other.
  • Globulation2 is a partial example. It's freeware game which doesn't let you directly control your units; instead, you give various "orders" to all of your units of a certain type, and the game's AI takes over. For example, instead of leading your soldiers directly into an enemy base, you drop an "invasion flag," which attracts soldiers to come and knock stuff over. Workers are controlled by clicking on the building you want staffed and assigning more workers to it. You set a "forbidden zone" where you don't want the to go and "clear area" where you want workers to collect crops or wood. And units will automatically check out any new upgrade building you make. This concept wouldn't work if it weren't for the game's aversion of Artificial Stupidity.
  • The Neo Geo Pocket Color game Faselei was played by loading commands into the CPU of your Toy Soldier. Naturally, upgrades included the amount of commands you could execute in a turn, the amount of commands you could store in your CPU, and the quality and versatility of the commands themselves.
  • The strategy game Spartan is like this. In an effort to simulate the difficulty of communicating over the din of battle on ancient battlefields and the rarity of complex tactics, it gives you a limited number of commands you can issue at the start of battle and only three options (all charge, rally, and all retreat) for modifying your army's behavior in the midst of combat. The History Channel: Great Battles of Rome uses a modified version of the same engine which allows a limited degree of direct control over your units during battle, but it remains a partial example.
  • An old PlayStation Real-Time Strategy game called Carnage Heart involved programming an army of mecha, essentially constructing flowcharts to determine their actions.
  • Your only means of attack in The Magic Circle is to trap and subsequently Hack Your Enemy in order to reprogram their RPG maker-style parameters spreadsheet to see you as a friend, essentially turning them into mons.
  • Toribash somewhat fits into this category. Two players fight each other with 3D stickmen, but they have to control all limbs individually. Each player gets about 20 seconds to make adjustments, then the fight advances slightly, adjust again until pre-determined victory conditions are set.
  • There was a Doctor Who
    • Doctor Who and the Mines of Terror for the Commodore 64, Spectrum ZX80 and BBC Micro, where Colin Baker's Doctor had a robot cat, Splinx, which could be programmed through a series of simple commands to go to various markers (which you can drop or throw), pick things up, put them down, return to the Doctor, and so forth. Since Splinx was invisible and invulnerable to the many monsters, this was the technique of choice for getting objects out of dangerous territory. It probably helped that most users had some exposure to programming anyway, since BASIC was pretty much the C64 and ZX80's entire operating system, and BBC's Acorn OS was similar.
    • The Doctor and the Dalek was as an Edutainment Game to teach kids the basics of programming, with Peter Capaldi's Doctor and a Dalek no dissimilar to Rusty from "Into the Dalek". The "see the Dalek from a different angle" minigames have you programming Lumpy in much the same way as Splinx.
  • GranTurismo4 has the B-Spec mode, where the AI controls the car and you specify how hard it should be with the throttle (which affects the life of your tires and your fuel tank), as well as when it should pass or pit-stop. You can also control the simulation speed. While it's not very impressive, it becomes quite useful to clear the endurance races, which can be as long as 24 simulated hours.
  • Robot Odyssey was a game created by The Learning Company using the engine from Adventure, the famous Atari game where you had to program and coordinate the efforts of a handful of robots to complete specific goals to escape the titular city. The method used for programming? Logic gates. There's a reason that the game was at one time considered a good tutorial for Digital Logic college courses.
  • Sports management games such as Football Manager, in which the manager chooses their team and sets tactics to use during each match, but does not directly control any of the players.
  • Zork 2 has a robot that follows the same sort of English commands you use to control your own character.
    • You could tell any NPC to do something, and the interpreter would understand that's what you were trying to do. The robot was one of those rare characters that more or less followed any order that it could.
  • Robozzle is a rather advanced web bot programming game, involving both subprograms and recursion. Once you have solved 40 puzzles, you can even add your own puzzles.
  • The Robot Club is an obscure robot-building game that's most notable for its wide variety of silly parts (i.e., "poop detector") and laughably Narmic Green Aesop.
  • In Gratuitous Space Battles, you design ships, construct a fleet, and issue orders. The individual captains then follow their own initiative within the confines of those orders.
    • The developer eventually added an option to give orders in battle that brought the game out of the Programming genre and straight into Real-Time Strategy.
  • AI Wars is an interesting game where you write the AI of either robotic bugs in Insect Wars or tanks in Armor Commander using a special programming language for the game, available here.
  • In Dwarf Fortress, you can decide who goes into the military, who's allowed to do what, and what needs to be done, but ultimately it's up to your dwarves to decide who does it, and when and with what it gets done.
    • With the use of zoning, everything in the fortress can become automated except for mining, timber, and trade. With the use of patrol pathing, theoretically the military can be automated, but in practice a player would want finer realtime control over combat engagement.
  • The Avalon Hill board game Gunslinger. The players program action sequences much like in Robo Rally, but different actions take different time. You can spend actions totalling up to 5 segments, representing two seconds of game time.
  • ChipWits has you assemble the eponymous robots' flowchart-style AI out of draggable icons. It's one of the few Programming Games aimed at children.
  • A series of two burglary-based games called The Clue! and The Sting went a step further with this. You had to plan an entire burglary from start to finish, by issuing exact orders and timings to each of your burglars. Then, you'd watch the heist take place and hope your plan would work out as well as it did in the training.
  • Mind Rover The Europa Project is a vehicle-based 3rd-person shooter where you preprogram the vehicles to fight each other using a visual programming interface. (There are also race and 'sumo' modes). The premise is also pretty entertaining: basically there are a bunch of scientists working on Jupiter's moon Europa and they're boooooored. Programming the miniature vehicles called 'Rovers' to fight each other is just their way of killing time...
  • Galaxy Hack (Download here) sets entire fleets of spaceships against each other, helpless except for the AI you write and assign them. Oh, and their weapons.
  • Roboforge: The (now open-source) robot fighting game, where you build a robot, code it, then send it to fight until it's defeated.
  • The dojo missions in WarioWare DIY have you finishing the programing for microgames. While usually only one or two instructions are needed, the coding is quite dependent on understanding the tricks used to dodge engine limits.
  • Episode 3 of Strong Bad's Cool Game for Attractive People features a cross between this and Script Swap. You can change the order of records in the Two-O-Duo's set (and add two from elsewhere), and Bubs (The DJ) will play them in order, scratching each so that it sounds like a movement instruction. His rap partner Coach Z, dancing on stage, will follow these instructions - even the useless 'do the Wigglie'. The goal is to get Coach Z to punch Bubs in the face.
  • Pac-Man 2: The New Adventures swapped out traditional Pac-Man gameplay for a combination of this and Escort Mission. The player gives directions to Pac-Man... who may or may not actually choose to follow them, depending on his mood.
  • Cosmic Supremacy Fixes the micromanagement bloat of 4X games and the requirement to be online at all times in a persistent real time strategy by letting the player script almost all the economy management and much of the combat.
  • ChuChu Rocket! presents you with the stage and where the ChuChus and KapuKapus will spawn and requires you to lay down arrows at strategic points to change the direction of the ChuChus and/or KapuKapus (who will otherwise move in a straight line until they reach a wall, at which point they will turn right if possible). Once you've placed the arrows, the only effect you have on the game is to start everything moving and hope they go where you want them to.
  • Professor Layton loves these. Frequently, they are given as toys for young Luke to play with — such as car and train tracks, where you have to set up a route for the car and train to take. This is also employed for the designated pets of each game — a hamster in Diabolical Box, a parrot in Unwound Future, and a goldfish in Spectre's Call, setting up routes for each pet to take on their respective tasks. The latter of the series also has a couple puzzles like this where someone is attempting to bounce an item (a watermelon, an apple, and a bomb in the Old Save Bonus puzzles) across to their friend.
  • An old edutainment game by the name of Leap Frog (or similar) tasked the player with guiding a frog to the home lily pad by inputting a series of up to four instructions, which looped until the frog made it home or fell into the water. For example, you might program 3 right, 2 up, 4 right, 1 down. The levels worked by generating a path of lily pads that could be followed by correctly programming the frog, and harder difficulties also added random lily pads to obfuscate the correct path.
  • The game Lightbot by Coolio Niato features a robot that the player has to program with "command blocks" such as "right" or "jump" in order to light up all the tiles in a given level. The game was featured in CS Ed Week's Hour of Code.
  • As a partial example, Armored Core Verdict Day has this in the form of UNACs (Short for UNmanned ACs). Not only you get to determine their loadouts, you get to create their own AI via an full-blown in-game logic programming system note .
    • Arguably, while you can issue rudimentary commands to your "party" while fighting, being in Operator mode is more useful as it lets you modify the AI logic's priorities, essentially modifying their behavior on-the-fly. In short, how good the AI performs is entirely dependent on you, the programmer.
  • Scriptarians is an unusual example: it's a fantasy game about two teams of adventurers fighting each other, but the gameplay consists entirely of programming your adventurers' AI in a C-like language, then just sitting back and watching them duke it out.
  • Untrusted (found here) exaggerates this trope. Though initially the game looks like a roguelike, the main draw of the game is using Javascript to edit each level. Beginning tasks include removing obstacles, creating walls to block an attack drone, and revealing the locations of hidden mines.
  • Robugs was a freeware Atari-ST game where the logic "Circuits" defined the physical appearance of the "Robug"; you could design various teams and have them have at it. There appears to be a new Robugs 3D beta on Sourceforge, but it has been some time since it was updated.
  • Human Resource Machine has you program the actions of an office worker. Tasks are rather abstract and include math computations, array lookups, string sorting and similar problems.
    • Its sequel Seven Billion Humans has you control multiple workers to complete tasks - moving into multithreading.
  • Pony Island has this as a large part of the game. The goal is to get a key icon to the end command by placing command blocks to make it go down, left, right, back to the start (which means failure in most cases), or more advanced things like portal blocks (if the key reaches one, it skips to the other) or a "splitter" that makes the key go down, but creates a second one on the right. Later puzzles also require passing through certain bits of code enough times to bring variables to a correct value, while avoiding code that will reset the values. One portion also mixes things up by forcing you to pick the commands in a certain order while also having a demon automatically place one command for each you place or move .
  • The end of [redacted] Life requires the player to go into the game's files and change a line of code to save the main character and complete the game.
  • The Board Game Pony Express, although not obviously computer themed, has the players programming actions for bandits raiding a train.
  • The Board Game Lords of Xidit is about roaming the countryside fighting monsters. But because you must program your turns in chunks of six actions at a time, most of the game revolves around you trying to predict what others will do so you don't try to kill a monster or take a troop they can get to before you. Sometimes the optimal strategy is to wait an action to take advantage of others' prior actions.
  • Subverted for humorous purposes by Dandy Dungeon. It sells itself as "the world's first Romance Programming Game" (check out the initials), but while the main character is a programmer you don't have to program anything, instead it's more of a puzzle game where you have to set a track to cover the whole dungeon grid. It's not a real RPG either, it's all part of its nature as an Affectionate Parody of video game industry.
  • Nintendo Labo includes a separate section called "Toy-Con Garage" which allows you to play with if/then instructions for the Joy-Cons and Switch touchscreen.
  • Game Builder Garage is an expansion of the Labo Garage where the player uses animated nodes called Nodon to make simple if/then statements and then create characters and items to use them.
  • Code Combat: Select warriors, send them on missions, program how they behave, make sure they survive, make sure they complete the missions.
  • Baba is You is a mix of a Block Puzzle game and a programming game, where the main rules are physical items within the game's screen, as three-words long, basic sentences (such as "Baba is You", "Flag is Win" and "Wall is Stop"). You can push these words to mix-and-match them together. For example, making "Flag is You" will allow the player to control the flag, while removing the "Stop" from "Wall is Stop" will make the walls traversable. As the game progresses, you're given more and more rules and the opportunity to make longer and more elaborate sentences to change the level rules in increasingly complex ways, culminating in the ability to change rules on the world map itself to reach hidden areas.
  • The open source game Robocode allows you to program little robot tanks in Java to have them fight with other robots, either those bundled with the game or downloaded from the internet.
  • Autonauts has the player buildings robots to help them colonize an unknown planet by giving them simple instructions to follow. The robots will observe your actions and plan accordingly.
  • The tabletop game Robot Turtles is designed to teach programming concepts to young kids. It starts out simple, issuing one instruction at a time to your turtle, but then you can ramp up the difficulty by using chains of instructions and eventually adding in subroutines.
  • Minecraft educational edition has dedicated coding sessions where you program an "agent".
  • Rabbids Coding has you code for a mixture of robots and brainwashed Rabbids.
  • Automachef has you build and program a restaurant kitchen.
  • Codemancer reskins the programming concept into a fantasy setting - each object has a script that it follows, and the player needs to write a script to get themselves to the destination. Unlike other programming games, it's real-time and your script needs to be initiated at the right time.
  • Tweet2Doom is an experimental project that turns Doom into this, by way of inputting the commands via a tweet in Twitter.
  • Stuck in Timenote  is a game where you have only four basic commands (Move, Interact, Speak, and Attack) and a limited pool of mana to determine how far you can travel. As you complete loops and familiarize yourself with the map, moving and interacting with entities costs less mana, allowing you to advance farther.
  • JumpStart Adventures 3rd Grade: Mystery Mountain has one in the form of the Robot Maze, in which you unscramble a series of commands that when ordered correctly will enable a robot to reach a box. The maze contains obstacles, such as cliffs, mud puddles, and on the higher levels, enemy robots. In some places, gaps can be crossed over a log or bridge, but the robot has to be explicitly commanded to use them, or else he'll just walk off the cliff. The higher levels also add in teleporters.