Drag the background!

Search JS code (of Worlds)

Search JavaScript code of all Worlds for: console log


Cook A Long
269 runs ♦ 1 like
By Joseph Adeosun  
Created: 3 Dec 2022
Modified: 17 Sep 2023
Attempted port of "Chicken Alfredo Cooking Game" by Emily Cerequas and Jenny Kowalski. https://q...
console.log ( "Got user list: " );
console.log ( JSON.stringify ( a, null, ' ' ) );
Chess : Mind v...
184 runs ♦ 0 likes
By Enhanced  
Created: 7 Aug 2018
Modified: 17 Sep 2023
Your mind plays against "Simple AI - Depth 1" with a little bit of random added so the games are...
console.log("Error in drawBoard");
console.log("chess loaded");
console.log(s);
console.log("Random turn for Black has been chosen to be turn", randomTurn);
console.log("White tried to make an illegal move");
Chess : Mind v...
1180 runs ♦ 0 likes
By Enhanced  
Created: 17 Aug 2018
Modified: 17 Sep 2023
Clone of "Chess : Mind vs Simple AI (a bit of random)" by Mathias Bazin
console.log("Error in drawBoard");
console.log("chess loaded");
console.log(s);
console.log("Random turn for Black has been chosen to be turn", randomTurn);
console.log("Black plays randomly");
AIRecipe
60 runs ♦ 0 likes
By Alex Petrash  
Created: 1 Dec 2023
Modified: 5 Feb 2024
User enters the name of a dish. Display list of ingredients, recipe and an image. Uses two API c...
console.log(answer)
console.log ( "MH get image for: " + `The food dish "${parsedResults.dish}"` );
console.log ( "MH get recipe for: " + theprompt );
AI Song Generator
108 runs ♦ 0 likes
By Niall Ryan  
Created: 24 Nov 2023
Modified: 5 Feb 2024
A webpage that will generate a song and album art from your description through AI! It makes two...
console.log ( "fetchData: " + apiUrl );
console.log ( data );
escape...
800 runs ♦ 2 likes
By Jon Bryan Ortiz  
Created: 22 Nov 2022
Modified: 17 Sep 2023
There are 10 pages scattered around the map. First person to find all 10 pages escapes...the res...
console.log (JSON.stringify (a, null, ' '));
Character recogn...
1800 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.
console.log ("All JS loaded");
console.log ("All data loaded into mnist object:")
console.log(mnist);
// console.log(train_index);
// console.log(inputs);
Stack (Multiplayer)
536 runs ♦ 1 like
By Alexandru  
Created: 6 Dec 2022
Modified: 17 Sep 2023
console.log(getScore());
console.log("gameFinished emit");
console.log("resize", window.innerWidth, window.innerHeight);
console.log("socketIn", data);
console.log("gameFinished received");
Recognise any image
267 runs ♦ 0 likes
By Starter user  
Created: 10 Jun 2021
Modified: 17 Sep 2023
Try to recognise any image with ML5 and MobileNet. Enter any image URL at runtime.
// console.log ( "loaded classifier");
// console.log ( "fetching image: " + url );
// console.log ( "loaded image");
console.log (error);
Binary tree
3172 runs ♦ 0 likes
By "Coding Train" p...  
Created: 25 Apr 2019
Modified: 17 Sep 2023
Binary tree search demo.
// console log how we build the tree or not
// console.log ("Got node");
// console.log ("Got tree");
console.log ("=== build tree =================");
// console.log ("adding node: " + n);
OpenAI summarise...
150 runs ♦ 0 likes
By Daugirdas Stirbys  
Created: 26 Nov 2023
Modified: 16 Feb 2024
Upload file (PDF, TXT) and get summary of it. Uses Assistants API from OpenAI: https://platform....
console.log(json_data);
console.log(file_id);
//console.log(d);
//console.log(d)
//console.log(d);
AI Recipe Generator
909 runs ♦ 0 likes
By Pooja Salgar  
Created: 25 Nov 2023
Modified: 16 Feb 2024
App to get a recipe for a meal given what ingredients you have, and generate an image of it. Cal...
console.log('Edited Image URL:', imageUrl);
Comment on image
69 runs ♦ 0 likes
By Nik Shautsou  
Created: 1 Dec 2023
Modified: 5 Feb 2024
Classify image and make funny comment on it. Give URL of image (e.g. an animal). Calls two APIs....
console.log(response);
Azure Image Desc...
151 runs ♦ 0 likes
By Suraksha Shetty  
Created: 25 Nov 2023
Modified: 16 Feb 2024
App to analyze images using the Computer Vision API from Microsoft Azure: https://learn.microsof...
console.log(data);
Run Run Run!
5690 runs ♦ 3 likes
By Duarte Martinho  
Created: 15 Nov 2022
Modified: 17 Sep 2023
CA318 Project by Duarte Martinho and Rion Xheladini. Modified port of "Crossy Road" by Hunor Mar...
// console.log(e); // Logs the event
// console.log(host); // Set host
// console.log("Join game");
// console.log("Create game"); // Creates a new
// console.log("TRIGGER SOCKET IN ", element.name, element.data);
Tic Tac Toe with...
273 runs ♦ 0 likes
By Madalina Triboi  
Created: 1 Dec 2023
Modified: 8 Feb 2024
Play Tic Tac Toe with Cohere Chatbot AI API: https://cohere.com/. P5 graphics World. Click on sq...
console.log ( "MH prompt: " + initialPrompt );
console.log ( "MH chat hist: " );
console.log ( chat_hist );
console.log( "MH response: " );
console.log ( response);
Competitive Hangman
422 runs ♦ 2 likes
By David Jusev  
Created: 5 Dec 2022
Modified: 17 Sep 2023
Play hangman against friends. Multi-user port of https://codingartistweb.com/2022/05/hangman-gam...
console.log(data);
console.log("You win against: " + data.username);
console.log("You lost against: " + data.username);
console.log ( "Got user list: " );
console.log ( JSON.stringify ( a, null, ' ' ) );
Infinite World O...
97 runs ♦ 0 likes
By Enhanced  
Created: 16 Aug 2018
Modified: 17 Sep 2023
Here is a code to get an infinite world that loop without object in it, without the sun
console.log("onDocumentTouchStart");
console.log(havePointerLock);
console.log("groundMultiplierHtml " + newGroundMultiplier);
console.log("groundMultiplierHtml " + newGroundMultiplier);
console.log("worldSizeHtml " + newworldSize);
Breadth-first se...
2778 runs ♦ 0 likes
By "Coding Train" p...  
Created: 30 Apr 2019
Modified: 17 Sep 2023
Breadth-first search with a Force-directed graph.
console.log ("======" );
console.log ("start of search of " + person.label);
console.log ("found goal node");
console.log ("checking neighbours of " + person.label);
console.log ("adding neighbour " + n.label + " to queue");
Cohere Chatbot "...
173 runs ♦ 0 likes
By Madalina Triboi  
Created: 24 Nov 2023
Modified: 8 Feb 2024
"Hello World" call of Cohere Chatbot AI API: https://cohere.com/. User enters prompt and gets re...
console.log(COHERE_API_KEY);
console.log(theprompt);
console.log(response);
AncientBook - 3D...
1130 runs ♦ 0 likes
By Jordan Tallon  
Created: 20 Nov 2023
Modified: 8 Feb 2024
Generates a custom story with GPT and places it into an interactive 3d book. A series of control...
// console.log ( storyPrompt );
VerseCraft
406 runs ♦ 1 like
By Leonard Alphonso  
Created: 29 Nov 2023
Modified: 11 Feb 2024
Calls GPT and DALL-E (text to image) and Whisper (text to speech) APIs (all at OpenAI). User ent...
console.log("please enter the type of poem you want.")
console.log('First ChatGPT Response:', firstChatGptResponse);
console.log('Second ChatGPT Response:', secondChatGptResponse);
console.log('prompt to Dall e 3', secondChatGptAssistantResponse);
console.log("Audio URL:", audioURL);
Stylish Image Ge...
372 runs ♦ 0 likes
By Daniel Pelech  
Created: 23 Nov 2023
Modified: 4 Feb 2024
Convert user prompt to a set of images. Uses Sohail Ahmed's text to image API at Rapid API: http...
console.log ( promptText );
console.log(data);
Game of Crowns s...
209 runs ♦ 0 likes
By Enhanced  
Created: 21 Jun 2018
Modified: 17 Sep 2023
Enhanced version of "Game of Crowns" by Niamh Byrne with better graphics and controls
// console.log("????");
// console.log("camAngle", camAngle);
// console.log("agleto EAT ", EAST.angleTo(agentToEnemy));
console.log("Collision!");
console.log("pi :", pi, " pj : ",pj);
Complete Infinit...
508 runs ♦ 0 likes
By Enhanced  
Created: 9 Aug 2018
Modified: 17 Sep 2023
This program was made by Nathan Bonnard. In this world, you can generate an infinite world ! Bu...
// console.log("day");
// console.log("Sunset 1");
// console.log("Sunset 2");
// console.log("night");
// console.log("Sunrise 1");
Sampler
148 runs ♦ 1 like
By Enhanced  
Created: 19 Jul 2018
Modified: 17 Sep 2023
Upload sounds, play them, automate them. Saving data works.
// console.log(ColorEnum.red, +type, "grid[ColorEnum.red][+type] : ", grid[ColorEnum.red][+type]);
// console.log(printGrid());
// console.log("Clicked : ", color, type);
// console.log("Clicked : the Void");
// console.log(bpm);
P5 Mouse tracker
323 runs ♦ 2 likes
By Starter user  
Created: 4 Jul 2018
Modified: 17 Sep 2023
Example of P5 World integrated with AB framework. Desktop: Draw ellipse wherever the mouse hover...
// console.log ( "newRun" );
DeepAI text to i...
93 runs ♦ 0 likes
By Evans Kipchaui  
Created: 26 Nov 2023
Modified: 16 Feb 2024
Demo of DeepAI text to image API: https://deepai.org/machine-learning-model/text2img. Need to en...
console.log('API key is missing.');
console.log('Request start time: ' + startTime);
console.log('Request end time: ' + endTime);
console.log('Response time: ' + duration + ' ms');
console.log(data);
3MF demo
70 runs ♦ 0 likes
By Mark Humphrys  
Created: 17 Jan 2019
Modified: 17 Sep 2023
Attempt to load 3MF model. Not working yet.
console.log ("loaded JS");
AnimImagine imag...
96 runs ♦ 0 likes
By Ivan Shvydchenko  
Created: 2 Nov 2023
Modified: 2 Feb 2024
Call to AnimImagine image generator API at Rapid API: https://rapidapi.com/serhaterfidan/api/ani...
console.log(data);
console.log(result);
DEB.ai.TE
37 runs ♦ 1 like
By Calem McGlynn  
Created: 2 Dec 2023
Modified: 4 Feb 2024
An all-round tool for school and university debates. Calls 3 APIs. User enters prompt, such as a...
console.log(apiKey);
console.log ( theprompt );
console.log ( "You are part of a debate team. You are to play the role of promoter of faith. You must agree with every prompt for
console.log ( "You are part of a debate team. You are to play the role of devil's advocate. You must disagree with every prompt f
console.log(data);
Sun
127 runs ♦ 0 likes
By Enhanced  
Created: 15 Aug 2018
Modified: 17 Sep 2023
Here is a prototype of a sun object that you can copy to your world !
// console.log("day");
// console.log("Sunset 1");
// console.log("Sunset 2");
// console.log("night");
// console.log("Sunrise 1");
Interstellar cubes
612 runs ♦ 3 likes
By Thomas Mc Cann  
Created: 16 Oct 2019
Modified: 17 Sep 2023
A journey into Interstellar space. Run and press F12 (in chrome) to view the console. Try left c...
setTimeout(function() {clickAllowed = true; console.log("\n\n4 minutes have passed.\nYou may now try clicking...... to peel away spa
setTimeout(function() {console.log("\n\n1 minute has passed")}, 60000);
setTimeout(function() {console.log("\n\n2 minutes have passed\nSpace and time are collapsing.")}, 120000);
setTimeout(function() {console.log("\n\n3 minutes have passed\nYou move inside the tesseract, lost in between space and time. ")}, 1
console.log("\n\n\n\n\nIt's just you and nothing now.... floating in space, staring in to the event horizon.");
3D AI World
1191 runs ♦ 1 like
By Nithin Sai K J  
Created: 27 Nov 2023
Modified: 11 Feb 2024
AI-powered Three.js 3D graphics World. Story powered by OpenAI GPT API. Need to enter your own O...
console.log('An error happened');
console.log(error);
console.log((xhr.loaded / xhr.total) * 100 + '% loaded');
console.log(error);
console.log ( "playPositionalAudio");
Fact-checker "He...
57 runs ♦ 0 likes
By Calem McGlynn  
Created: 27 Nov 2023
Modified: 4 Feb 2024
Two test calls: (1) Test using OpenAI GPT API to get opinions. Hard-coded prompt. Clone and Edit...
console.log("checkData called");
console.log(dataToCheck);
console.log("New HTML:"); console.log(wikiCheckEndpoint)
console.log(data);
console.log(data);
Pokemon Trading ...
77 runs ♦ 0 likes
By Reeve Barreto  
Created: 30 Nov 2023
Modified: 11 Feb 2024
Generate Pokemon cards from user prompts using AI. Makes four cards. API calls to GPT for text a...
console.log("fetching data");
console.log(pokemons);
console.log(e);
Collision World
1376 runs ♦ 4 likes
By Starter user  
Created: 21 Sep 2017
Modified: 17 Sep 2023
Demo of Physics API. Blocks fall under gravity and collide. Can modify gravity, friction, etc. S...
console.log ( "Resources loaded." );
// console.log ( relative_velocity );
// console.log ( Math.abs(mainImpact) );
DALL-E "Hello World"
16 runs ♦ 0 likes
By Rajesab Nadaf  
Created: 23 Nov 2023
Modified: 16 Feb 2024
"Hello World" call of OpenAI DALL-E image generation API. Clone and Edit to enter your own OpenA...
console.log(xhr.status);
console.log(xhr.responseText);
console.log(open_ai_response);
Language Transla...
89 runs ♦ 0 likes
By Darius Beril  
Created: 7 Dec 2023
Modified: 8 Feb 2024
AI Language Translator And Reader. (1) Uses OpenAI GPT API for translation. Need to enter your o...
console.log(data)
Infinite story book
397 runs ♦ 0 likes
By Darragh McG  
Created: 29 Nov 2023
Modified: 16 Feb 2024
Indefinite story book generation. Allows the user to automatically generate an illustrated short...
console.log("DALLE Request Payload: ", requestBody);
console.log("DALLE Reponse:", json_res);
console.log("LLM Request Payload: ", requestBody);
console.log("LLM Reponse:", json_res);
console.log("Creating New Page with Prompt: ", prompt);


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.