Aller au contenu principal
← Retour

Pathfinder - BFS

🧭 Pathfinder - Breadth First Search

Trouvez le chemin le plus court vers la cible !

Entrée

START sx,sy TARGET tx,ty GRID w,h WALLS wx1,wy1;wx2,wy2;...

  • START : Position de départ
  • TARGET : Position cible
  • GRID : Dimensions de la grille
  • WALLS : Liste des murs (obstacles)

Sortie

Retournez le chemin complet sous forme de directions : RIGHT RIGHT DOWN DOWN LEFT

Objectif

Trouvez le chemin le plus court possible.

Console
Lancez le jeu pour voir les logs...
CodeLearn Pro - Apprenez à Coder avec l'IA