Drag the background!

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

Our goal: To become one of the most fun places in the world to code.

21 countries    1,571 coders    3,282 worlds    218,115 runs    1.2 million lines of code    Update stats

Space Hero
85 runs ♦ 0 likes
By Enhanced  
Created: 13 Jun 2018
Modified: 21 Jun 2018
Drag the Earth the collect the suns. Don't get hit by the asteriods ! Enhanced version of "Space...
CELLS WITH MIND ...
133 runs ♦ 0 likes
By Enhanced  
Created: 10 Jul 2018
Modified: 10 Jul 2018
Cells is a game about cells trying to infect each other. It offers a playground for minds to com...
Sheepdog3(Submis...
645 runs ♦ 3 likes
By Neil Geoghegan  
Created: 8 Dec 2016
Modified: 10 Feb 2018
Interstellar cubes
399 runs ♦ 3 likes
By Thomas Mc Cann  
Created: 16 Oct 2019
Modified: 3 Nov 2019
A journey into Interstellar space. Run and press F12 (in chrome) to view the console. Try left c...
An online coding platform

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


Coders: Make 3D worlds and share them with friends. Clone and edit other people's worlds. Make touch mobile games. Embed your worlds on other sites.
Teachers: Run courses in coding and coding for kids and AI coding. Run programming practicals in 3D or 2D 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.
Enough talk. Show me a video!

OK, here is a high-level introduction.
This does not assume you have ever coded, or ever heard of JavaScript graphics (what is behind this site).

How to code
You can "run" any of the 3,284 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.
Click below to learn how to code on this site. Basically, there is a choice of "libraries" that you can use. Skip the intro, let us decide the library, and go straight to the starter tutorial (with videos):
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 2.1
324 runs ♦ 1 like
By "Coding Train" p...  
Created: 4 Sep 2018
Modified: 4 Sep 2018
Variables in p5.js (mouseX, mouseY)
Tutorial 7.8 variant
273 runs ♦ 0 likes
By "Coding Train" p...  
Created: 6 Sep 2018
Modified: 11 Sep 2018
Tutorial 7.8 with music and other uploaded images, including from other users. Click on the images.
Tutorial 7.3
137 runs ♦ 0 likes
By "Coding Train" p...  
Created: 5 Sep 2018
Modified: 5 Sep 2018
Arrays of Objects
Tutorial 2.5
61 runs ♦ 1 like
By "Coding Train" p...  
Created: 4 Sep 2018
Modified: 4 Sep 2018
The random() Function
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.

Breadth-first se...
828 runs ♦ 0 likes
By "Coding Train" p...  
Created: 30 Apr 2019
Modified: 15 Dec 2019
Breadth-first search with a Force-directed graph.
Character recogn...
735 runs ♦ 0 likes
By "Coding Train" p...  
Created: 5 Jul 2019
Modified: 28 Mar 2021
Neural network to do character recognition from image database and from handwriting in real-time.
GA (Finnegans Wake)
522 runs ♦ 0 likes
By "Coding Train" p...  
Created: 2 May 2019
Modified: 15 Dec 2019
Genetic Algorithm to write the first line of Finnegans Wake.
A star
1349 runs ♦ 1 like
By "Coding Train" p...  
Created: 1 May 2019
Modified: 15 Dec 2019
"A Star" algorithm to find shortest path through maze.
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.8
41 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 9 Sep 2018
3D Custom Shapes
Tutorial 18.5
54 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 2 Jun 2019
Camera and Perspective
Tutorial 18.7
311 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 11 Sep 2018
Tutorial 18.7 with full canvas, resized model, sound. Texture on box is image from another user.
Tutorial 18.3
20 runs ♦ 0 likes
By "Coding Train" p...  
Created: 9 Sep 2018
Modified: 9 Sep 2018
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.

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

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

Comments, Types ...
24 runs ♦ 0 likes
By Soph  
Created: 20 May 2019
Modified: 20 May 2019
Clone of "Comments, Types & Variables World" by Alex Murphy
Binary tree
235 runs ♦ 0 likes
By Jorge Blanco  
Created: 18 Oct 2019
Modified: 18 Oct 2019
Build the tree as search it
bull_business
86 runs ♦ 0 likes
By akshara  
Created: 5 Dec 2020
Modified: 9 Dec 2020
bull_business
Plain canvas web...
64 runs ♦ 0 likes
By Starter user  
Created: 1 Sep 2018
Modified: 18 Apr 2021
Example of porting webgl World (almost) unchanged to AB using plain canvas API
bouncy Collision...
18 runs ♦ 0 likes
By tom  
Created: 30 Sep 2017
Modified: 10 Feb 2018
1. Shapes
126 runs ♦ 0 likes
By "3D Game Program...  
Created: 16 Aug 2018
Modified: 24 Mar 2019
Port of code "shapes" from Ch.1
Cloned Cloned CA...
190 runs ♦ 0 likes
By milesj2  
Created: 26 Nov 2018
Modified: 27 Nov 2018
Clone of "Cloned CA318 2018 World" by cdaly
GA (TSP) (clone ...
13 runs ♦ 0 likes
By Jorge Blanco  
Created: 22 Nov 2019
Modified: 22 Nov 2019
Clone of "GA (TSP) (clone by Jorge Blanco)" by Jorge Blanco
Cloned Cloned On...
11 runs ♦ 0 likes
By Katie McCarthy  
Created: 17 Dec 2018
Modified: 17 Dec 2018
Clone of "Cloned One Cube World (P5)" by Katie McCarthy
Cloned CA318 201...
296 runs ♦ 0 likes
By Lazarus  
Created: 7 Nov 2018
Modified: 19 Nov 2018
Clone of "CA318 2018 World" by test


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

Website copyright © Ancient Brain Ltd. 2018-2021.
Users retain copyright of their own content.
Ancient Brain ™ is a trademark of Ancient Brain Ltd.

Platforms      Stats      The name      Terms and conditions

Bug bounty      Classes      Contact

Call for partners!
If you are interested in writing a programming course, textbook or tutorial videos, Ancient Brain is looking for partners. We will work with you, and integrate your course into the site. This is an opportunity for someone looking to develop a course or textbook to partner with a site to support it and promote it.