Skip to content

Files

Latest commit

2f9f698 · Sep 27, 2020

History

History

Example - Pathfinder

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 27, 2020
Sep 27, 2020
Sep 27, 2020

Dijkstra's pathfinder algorithm

This Beads language sample program runs a simulation of Dijkstra's famous pathfinding algorithm.

You draw a wall with the mouse (right click to erase wall cells), and then you press ENTER and let the simulation run. You can also press SPACEBAR to go one step at a time.

snake example

Run the game

This version was done naive HTML drawing, you can speed it up considerably by switching to canvas drawing.

This program was inspired by the Python version from codeNULL on YouTube