Drag the background!

Ancient Brain
Code. Play. Teach. Learn. Research. Demo.

An online coding and hosting platform for everyone.

38 countries    2,379 coders    11,095 worlds    579,258 runs    3.6 million lines of code    Update stats

Catch the flag
4355 runs ♦ 2 likes
By Meabh Horan  
Created: 16 Nov 2016
Modified: 17 Sep 2023
canvas 2d
359 runs ♦ 2 likes
By Starter user  
Created: 4 Oct 2017
Modified: 17 Sep 2023
Minimal starter World for "Canvas" API (no graphics library). Program using getContext("2d"). Pa...
smooth movement
387 runs ♦ 0 likes
By Mark Humphrys  
Created: 6 Sep 2017
Modified: 11 Sep 2024
this may work on touch
Enhanced Space Pong
1018 runs ♦ 0 likes
By Enhanced  
Created: 18 Jun 2018
Modified: 17 Sep 2023
It's all you want from Pong : smooth controls, different difficulty levels and game modes
An online coding platform

Ancient Brain is an online coding and hosting platform for everyone.
See Introduction and List of features.


Coders: Make 3D worlds and share them with friends. Clone and edit other people's worlds. Make multi-user games and environments. Make touch mobile games. Upload your own images, music and 3D models. Embed your worlds on other sites.
Teachers: Run courses in coding and coding for kids and AI coding. Run programming practicals in 3D graphics or 2D graphics or text, with many features designed for teachers. Safely edit and run student code.
Learners: Do courses in coding and coding for kids and AI coding. Clone other people's worlds and change one or two lines. What's the worst that could happen?
Gamers: Play the endless game worlds the coders make. Come and browse an ever-growing archive of games.
Researchers: Upload problems, tender for solutions, test and rank them. Make hybrid AI systems from the code of multiple authors.
Getting started
You can "run" any of the 11,095 programs or "Worlds" by clicking on them. But this is also a coding site, where you can code your own Worlds. You can use this site to learn to code. Or show off your creations if you are an experienced coder.
Basically you can read more about how to get started running Worlds and coding: Or you can leap straight into coding with our starter tutorial:
Programming course

Ancient Brain has a course in how to program from scratch.
You will get to make "Worlds" like the following. Click on them to run them.

Tutorial 7.3
229 runs ♦ 0 likes
By "Coding Train" p...  
Created: 5 Sep 2018
Modified: 17 Sep 2023
Arrays of Objects
Tutorial 2.1
560 runs ♦ 1 like
By "Coding Train" p...  
Created: 4 Sep 2018
Modified: 17 Sep 2023
Variables in p5.js (mouseX, mouseY)
Tutorial 2.5
169 runs ♦ 1 like
By "Coding Train" p...  
Created: 4 Sep 2018
Modified: 17 Sep 2023
The random() Function
Tutorial 7.8 variant
380 runs ♦ 0 likes
By "Coding Train" p...  
Created: 6 Sep 2018
Modified: 17 Sep 2023
Tutorial 7.8 with music and other uploaded images, including from other users. Click on the images.
AI course

Ancient Brain has a set of AI programming exercises, with videos and notes. For use in any AI course.
You will get to modify "Worlds" like the following. Click on them to run them.

A star
4928 runs ♦ 2 likes
By "Coding Train" p...  
Created: 1 May 2019
Modified: 17 Sep 2023
"A Star" algorithm to find shortest path through maze.
Breadth-first se...
3371 runs ♦ 0 likes
By "Coding Train" p...  
Created: 30 Apr 2019
Modified: 17 Sep 2023
Breadth-first search with a Force-directed graph.
GA (Finnegans Wake)
1040 runs ♦ 0 likes
By "Coding Train" p...  
Created: 2 May 2019
Modified: 17 Sep 2023
Genetic Algorithm to write the first line of Finnegans Wake.
Character recogn...
2014 runs ♦ 0 likes
By "Coding Train" p...  
Created: 5 Jul 2019
Modified: 17 Sep 2023
Neural network to do character recognition from image database and from handwriting in real-time.
WebGL course

Ancient Brain has a short course in JavaScript 3D graphics ("WebGL") programming.
You will get to make "Worlds" like the following. Click on them to run them.

Tutorial 18.5
96 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 17 Sep 2023
Camera and Perspective
Tutorial 18.7
424 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 17 Sep 2023
Tutorial 18.7 with full canvas, resized model, sound. Texture on box is image from another user.
Tutorial 18.8
94 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 17 Sep 2023
3D Custom Shapes
Tutorial 18.3
67 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 17 Sep 2023
Light and Material
Starter Worlds for Three.js

These are the main "Starter Worlds" that use the Three.js library (which tends to give the most advanced graphics).

You can Clone and Edit all of these and change their code. Look for a section at the top called the "Tweaker's Box". This contains the easiest things to change.

Complex World
8325 runs ♦ 5 likes
By Starter user  
Created: 1 Oct 2016
Modified: 17 Sep 2023
World with a Mind-controlled agent, actively-pursuing enemy, random maze, skybox, music.
MineCraft
1141 runs ♦ 2 likes
By Starter user  
Created: 27 Nov 2016
Modified: 17 Sep 2023
Use keyboard to draw blocks like in MineCraft. Use arrow keys and PgUp, PgDn to draw. Can save w...
Touch World
472 runs ♦ 1 like
By Starter user  
Created: 6 Jan 2018
Modified: 17 Sep 2023
How to override default touch handling. Mobile: Touch drag moves agent, touch pinch zooms camera...
Simple World
1714 runs ♦ 2 likes
By Starter user  
Created: 1 Oct 2016
Modified: 17 Sep 2023
Simple World with a Mind-controlled agent, randomly-moving enemy, paint blocks with texture.
One Cube World (...
1211 runs ♦ 2 likes
By Starter user  
Created: 11 Apr 2018
Modified: 17 Sep 2023
Simple starter World (Three.js version). Built-in camera control.
User-controlled ...
957 runs ♦ 2 likes
By Starter user  
Created: 12 Feb 2017
Modified: 17 Sep 2023
3d model World. User controlled on desktop. Keyboard arrows to move. Switch to "Move with" camer...
Password Websock...
71 runs ♦ 0 likes
By Starter user  
Created: 14 Nov 2022
Modified: 17 Sep 2023
Password version of "Websockets boxes"
Castle World
801 runs ♦ 4 likes
By Starter user  
Created: 11 Nov 2016
Modified: 17 Sep 2023
Demo of how to insert 3d model into World. Mind-controlled agent, actively-pursuing enemy. Splas...
Blank Three.js World
1731 runs ♦ 2 likes
By Starter user  
Created: 20 Nov 2016
Modified: 17 Sep 2023
A simple starter World. An Array of spheres. Painted with textures. Random motion.
Zombie Death Baby
803 runs ♦ 1 like
By Starter user  
Created: 11 Jun 2018
Modified: 17 Sep 2023
How to make a fun touch game for mobile. Touch drag and tap objects. Mouse drag and click object...
Websockets boxes
812 runs ♦ 0 likes
By Starter user  
Created: 29 Feb 2020
Modified: 17 Sep 2023
Demo of Websockets in 3D World. Click to change the boxes on the other user's machine, while the...
Model World
864 runs ♦ 2 likes
By Starter user  
Created: 8 Nov 2016
Modified: 17 Sep 2023
Demo of how to insert 3d models into World. Mind-controlled agent, actively-pursuing enemy. Skybox.
Random Worlds

Here are some random Worlds that have had more than 30 runs. Reload for more.

A star (clone by...
45 runs ♦ 0 likes
By Harshita Tyagi  
Created: 20 Oct 2022
Modified: 17 Sep 2023
Clone of "A star" by "Coding Train" project
Cloned CA318 201...
130 runs ♦ 0 likes
By Co  
Created: 6 Nov 2018
Modified: 17 Sep 2023
Clone of "CA318 2018 World" by test
Preprocessing to...
609 runs ♦ 0 likes
By Philip  
Created: 4 Dec 2020
Modified: 17 Sep 2023
Clone of "Character recognition neural network" by "Coding Train" project
Maze Battlegroun...
2479 runs ♦ 1 like
By Bernard O'Connor  
Created: 15 Nov 2016
Modified: 17 Sep 2023
NN Project - Bui...
301 runs ♦ 0 likes
By Brendan  
Created: 9 Dec 2019
Modified: 17 Sep 2023
Clone of "Character recognition neural network (clone by Brendan)" by Brendan
Tom and Jerry Wo...
350 runs ♦ 0 likes
By Xin Zhang  
Created: 11 Nov 2021
Modified: 17 Sep 2023
Clone of "Tom and Jerry World 1" by Xin Zhang
Sampler
95 runs ♦ 0 likes
By Mathias Bazin  
Created: 27 Jun 2018
Modified: 17 Sep 2023
Upload sounds, play them, automate them. Saving data works.
Perceptron (clon...
194 runs ♦ 0 likes
By Juraj Kuruc  
Created: 25 Nov 2023
Modified: 11 Sep 2024
Clone of "Perceptron" by "Coding Train" project
Tik tok Hello W...
46 runs ♦ 0 likes
By Manish Sureshkumar  
Created: 2 Dec 2023
Modified: 11 Sep 2024
Clone of "Chat with GPT model (clone by Manish Sureshkumar) (clone by Manish Sureshkumar)" by Ma...
Pokemon Trading ...
83 runs ♦ 0 likes
By Reeve Barreto  
Created: 30 Nov 2023
Modified: 11 Sep 2024
Generate Pokemon cards from user prompts using AI. Makes four cards. API calls to GPT for text a...


 
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Users retain ownership of user content.

Platforms      Stats      The name      Terms and conditions

Call for partners      Contact

Call for partners!
Ancient Brain is looking for a partner to co-write a JavaScript coding book for schools, to be used worldwide. This would be a course for students in learning to code from scratch. The book and course will be integrated into the Ancient Brain site. This is an opportunity for someone looking to develop a course and textbook to partner with a site to promote it. Read more.