Drag the background!
A* ("A-star") algorithm in JavaScript - Student Worlds 2021

Student Worlds from an AI course in 2021.
Students were to write Worlds to demonstrate aspects of the A* pathfinding algorithm. Here are the best submissions.


Dynamic A* with graphical path

Students were to get the A* pathfinding algorithm working in a version of Complex World. This is a 3D graphics World, but actually a 2D pathfinding problem. The "enemy" chases the moving "agent". It calculates a new A* path to the agent every timestep. The path should route around obstacles. The students were to show this path graphically.

Terminator 7 (A*...
353 runs ♦ 1 like
By Theo Delettre  
Created: 27 Oct 2021
Modified: 17 Sep 2023
A* search algorithm to chase an Agent down
Complex_World_AS...
348 runs ♦ 0 likes
By Chinmay  
Created: 8 Nov 2021
Modified: 17 Sep 2023
This is the Complex World where the Enemy is trying to search/catch the Agent using A star searc...
Chaser - Upstrea...
438 runs ♦ 0 likes
By Patrick Travers  
Created: 26 Oct 2021
Modified: 17 Sep 2023
Clone of "Complex World" by Starter user
Complex World (c...
218 runs ♦ 0 likes
By yilin li  
Created: 6 Nov 2021
Modified: 17 Sep 2023
Clone of "Complex World" by Starter user
Complex World (c...
717 runs ♦ 0 likes
By Sumit Khopkar  
Created: 6 Nov 2021
Modified: 17 Sep 2023
Clone of "Complex World" by Starter user
Tom and Jerry Wo...
799 runs ♦ 0 likes
By Xin Zhang  
Created: 31 Oct 2021
Modified: 17 Sep 2023
Sun - Earth chase
775 runs ♦ 0 likes
By atharva joshi  
Created: 29 Oct 2021
Modified: 17 Sep 2023
Sun - Earth chase
Complex World By...
83 runs ♦ 0 likes
By archy yu  
Created: 5 Nov 2021
Modified: 17 Sep 2023
Complex World By A star ( by archy yu)
The code for the following submission was not put into a new World, but rather into a new Mind for an existing World:
A Star
World: Complex World
650 runs ♦ 0 likes
By Himanshu Warekar  
Created: 21 Oct 2021
Modified: 17 Sep 2023
Clone of "Complex Mind" by Starter user


Trapping the agent

The enemy must implement an "endgame" algorithm to try to trap the agent in a hole.

Sun - Earth chas...
109 runs ♦ 0 likes
By atharva joshi  
Created: 16 Nov 2021
Modified: 17 Sep 2023
Sun - Earth chase to trap
Complex World tr...
314 runs ♦ 0 likes
By archy yu  
Created: 27 Oct 2021
Modified: 17 Sep 2023
trap the agent
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
Terminator 8 (A*...
161 runs ♦ 0 likes
By Theo Delettre  
Created: 9 Nov 2021
Modified: 17 Sep 2023
Might have a bit of loading time on first load, give it a few seconds, it's trying its best
Trapper - Upstre...
290 runs ♦ 0 likes
By Patrick Travers  
Created: 5 Nov 2021
Modified: 17 Sep 2023
Clone of "Complex World" by Starter user
Complex_World_Tr...
36 runs ♦ 0 likes
By Chinmay  
Created: 15 Nov 2021
Modified: 17 Sep 2023
Clone of "Complex World" by Starter user
Complex World (c...
360 runs ♦ 0 likes
By Sumit Khopkar  
Created: 13 Nov 2021
Modified: 17 Sep 2023
Clone of "Complex World" by Starter user
Complex World (c...
66 runs ♦ 0 likes
By yilin li  
Created: 10 Nov 2021
Modified: 17 Sep 2023
Clone of "Complex World (clone by yilin li)" by yilin li
The code for the following submission was not put into a new World, but rather into a new Mind for an existing World:
Trapping Agent
World: Complex World
807 runs ♦ 0 likes
By Himanshu Warekar  
Created: 1 Nov 2021
Modified: 17 Sep 2023
Clone of "CA686~1 (clone by Himanshu Warekar)" by Himanshu Warekar


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.