Lightbot is an educational puzzle game about programming and logical thinking.
The player controls a small robot and must guide it to light up all blue tiles in each level.
Instead of moving the robot directly, you build a program from simple instructions
(move, turn, jump, light up, repeat, etc.). This makes Lightbot well-suited for
introductory courses on algorithms, control flow, and problem decomposition.
You can play Lightbot directly in your browser:
No installation or account is required for the online version.
To get a downloadable, offline version:
- Go to the Releases page of this repository on GitHub.
- Download the latest Lightbot release archive (ZIP).
- Extract the ZIP file.
- Open
index.htmlfrom the extracted folder in a modern web browser
(Chrome, Firefox, Edge, Safari).
Lightbot is a fully static web app: you only need to open index.html.
No web server or backend is required.
You can translate Lightbot into your own language using only the deploy ZIP.
In the extracted folder you will find a file:
js/locales/translations.js
This file contains the texts used in the game.
-
Open
js/locales/translations.jsin a text editor. -
You will see a JavaScript object similar to this:
window.LIGHTBOT_TRANSLATIONS = { "title": "LightBot v1.1", "controls": { "run": "Run", "stop": "Stop" }, "welcomeScreen": { "start": "Start Game", "toggleAudio": "Toggle Audio", "help": "Help", "achievements": "Achievements" } // ... };
-
Do not change the keys (
menu.play,welcome.title, etc.).
Only change the text on the right-hand side to your language. For example:window.LIGHTBOT_TRANSLATIONS = { "menu": { "play": "Spielen", "options": "Optionen", "exit": "Beenden" }, "welcome": { "title": "Willkommen bei Lightbot", "subtitle": "Lerne, wie ein Programmierer zu denken!" } };
-
Save the file.
-
Reload
index.htmlin your browser. The game interface should now appear in your language.
If you prefer to build the game yourself (or modify the code):
-
Clone the repository
git clone https://github.com/haan/Lightbot.git cd Lightbot -
Install dependencies
Make sure you have Node.js installed, then run:
npm install
-
Build the game
npm run build
This will:
- Minify and bundle the JavaScript into
deploy/js/lightbot.min.js - Minify the CSS into
deploy/css/lightbot.min.css - Copy images, audio and other assets into
deploy/ - Copy the production
index.htmlintodeploy/index.html
- Minify and bundle the JavaScript into
-
Run locally
Open:
deploy/index.htmlin your browser to play the game from your local build.
Lightbot was designed with teaching in mind. Typical use cases include:
- Introducing basic programming concepts (sequencing, loops, conditionals)
- Practicing algorithmic thinking and planning
- Comparing different solutions for efficiency (shorter programs vs. more steps)
Teachers are free to:
- Run the online version in class
- Provide a local copy built from the Releases page
- Fork the repository and customize levels and interface to their needs
- Development: Laurent Haan
- Interface: Zenobia Homan
- Robot artwork: surt
- Music: hektikmusic
- Original Lightbot concept: https://lightbot.com/
This project is released under the MIT License.
See the LICENSE file for the full license text.