Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

coders   JavaScript worlds

Search:

Free AI exercises


Breadth-first search (graphical) exercise

  

Click to run World: Breadth-first search at Ancient Brain.
  

Keeps going after DEST

Look in the console and you see something odd:

  

Exercise: Print a message

Clone it and Edit it to:
  

Refactor the code

Can we make it immediately stop when it finds DEST?



Why You Shouldn't Nest Your Code.
Not everyone agrees. But I'm with this guy.


  

More exercises