Open source games

Learn programming through play

Write real code to win.

Games where the controller is your code. In WarriorJS and Ruby Warrior you write the warrior’s turn logic, Elevator Saga asks for a JavaScript elevator scheduler, Colobot has you program robots in its own C-like language, and Rustorio is solved with Rust types the compiler must accept. A second group teaches the tools around code: real Git commands in Gitvana, Kubernetes in K8s Games, and cloud capacity in Server Survival. Other educational games, for maths, languages, music and memory, are listed below.

Coding games: write code to play

Each of these is won by writing a program, not by pressing buttons.

6 games
WarriorJSNo screenshot available
Browser play
Learn through play

Write JavaScript or TypeScript to guide a warrior through enemy-filled tower puzzles and rescue captives.

On GitHub since Apr 2015

BrowserSee play options
Elevator Saga screenshot
Browser play
Learn through play

Program elevator behavior in JavaScript and refine your solution to transport passengers more efficiently.

On GitHub since Aug 2014

BrowserSee play options
Ruby-warrior screenshot
Run locally
Learn through play

Write Ruby turn-taking code to guide a warrior through a tower, fighting enemies, rescuing captives and reaching each floor's stairs.

TerminalSee play options
RustorioNo screenshot available
Run locally
Learn through play

Solve factory-style puzzles by writing Rust types that satisfy the compiler.

On GitHub since Jul 2025

TerminalSingle-player

Learn Git, Kubernetes, cloud and hacking

Games about the tools and systems around code, from version control to running servers.

5 games
Gitvana screenshot
Browser play
Learn through play

Solve version-control puzzles by typing real Git commands in a monastery-themed browser game.

On GitHub since Mar 2026

BrowserSingle-player
K8s Games screenshot
Browser play
Learn through play

Deploy pods, troubleshoot incidents, and learn Kubernetes through campaigns and timed challenges.

On GitHub since Feb 2026

BrowserSingle-player
Squally artwork
Original game needed
Learn through play

Learn about game hacking through a two-dimensional platform game, building the code with separately purchased private art and sound resources.

On GitHub since Dec 2017

PCSee play options

More learning games: maths, languages, music and memory

Educational games outside programming, from TuxMath and GCompris to a Sanskrit word search and an n-back trainer.

13 games
Krida official artwork
Browser play
Learn through play

Practice Sanskrit through word-search puzzles in several Indic scripts.

On GitHub since May 2025

BrowserSee play options
Particle Clicker screenshot
Browser play
Learn through play

Build up an incremental particle-physics experiment in a browser game that introduces discoveries and the history of high-energy research.

On GitHub since Jul 2014

BrowserSee play options
PianOli screenshot
Learn through play

Let young children explore sounds on a small touchscreen piano while an adult-controlled lock helps prevent accidental exits from the activity.

On GitHub since Jul 2018

AndroidSee play options
Prescription Wars screenshot
Run locally
Learn through play

Trade prescription drugs in a classroom simulation where an instructor changes market conditions to illustrate public-health interventions.

On GitHub since Jun 2015

BrowserSee play options
PrimeShooter screenshot
Browser play
Learn through play

Practise prime factorization by firing factor missiles at numbers, dividing each target down to one and using a special missile when the number is prime.

BrowserSingle-player
ALIS screenshot
Learn through play

Explore reconstructed real-world cities and try the interaction map. ALIS is an early single-player survival prototype for Windows, with public source.

On GitHub since Mar 2026

PCSingle-player
Get the gameAI-assisted
QNo screenshot available
Run locally

Q

6
Learn through play

Answer questions through an IRC quiz bot that runs a shared trivia session, with locally configured questions and answers supplying the game.

On GitHub since Aug 2012

See play options
Esc

Type to search every entry. ↑↓ to move, Enter to open.