Back to services

untrusted

Unique puzzle game designed for geeks and developers, where you solve the puzzles in the game by reading and writing Javascript.

View alternatives to untrusted
Suggest edit
Open source
Self-hostable
cc-by-nc-sa-3-0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We couldn't retrieve the content of the official site (the GitHub repository), so what follows is based on known information about the project. Details we weren't sure about have been left out. Refer to the actual repository for the authoritative information.

Overview

Untrusted is an open-source meta-programming puzzle game created by Alex Nisnevich and Greg Shuflin, with the subtitle "a user javascript adventure game". You control the protagonist, Dr. Eval, as you make your way through ASCII-style (Roguelike-like) maps. Every level is designed to look impossible to beat. You have to edit the level's JavaScript code directly, getting around obstacles and rewriting the rules of the game, to reach the exit.

Key Features

  • Edit code as you play: The game map appears on one side of the screen and a code editor on the other. You write or tweak JavaScript in the areas you're allowed to modify, and you see the effect as soon as you run it.
  • Code with locked regions: Part of the code in each level can't be changed, so you can only work within the open areas. Every level is therefore a programming puzzle with constraints.
  • In-game API: You can call the interfaces the game provides, such as those for manipulating the map, objects and player state, to solve problems through code.
  • Story and soundtrack: A storyline runs between levels, accompanied by background music, giving the whole game the atmosphere of a hacker adventure.
  • Play right in the browser: There's nothing to install. Just open the web page and play.

Target Users and Use Cases

  • Programming learners who want to practice JavaScript through a game
  • Developers and puzzle fans who enjoy "hacking" the rules and looking for unconventional solutions
  • Teachers who cover computational thinking or JavaScript basics and want a fun classroom exercise

Core Strengths

  • Reading, debugging and modifying code becomes the gameplay itself, a design that is rare
  • A level can usually be solved in several ways, which encourages creative thinking
  • It's open source, so you can study how it's implemented, or adapt it and extend the levels yourself

Deployment

The game is a purely front-end web project, and there is an official online version you can play right away. To run it locally or build on it, clone the GitHub repository, build it following the instructions in the README, serve the project directory with any static web server, and then open it in your browser.

Technical Requirements

  • A modern browser with JavaScript support
  • Some JavaScript knowledge is recommended, as the later levels demand stronger programming skills

Notable Characteristics

  • The game's core mechanic is "running code you shouldn't trust", which is where the name Untrusted comes from
  • It makes a good comparison with other programming games such as Screeps, Human Resource Machine and CodeCombat