?/100

Coding Challenge 51.1: A* Pathfinding Algorithm - Part 1

January 16, 20172834072

Description

In this multi-part coding challenge, I attempt an implementation of the A* Pathfinding Algorithm to find the optimal path between two points in a 2D grid. Code: https://thecodingtrain.com/challenges/51-a-pathfinding-algorithm šŸ’» Github Repo: https://github.com/CodingTrain/AStar šŸ•¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/ehLjdFpat Other Parts of this Challenge: šŸ“ŗ A* Algorithm - Part 2: https://youtu.be/EaZxUCWAjb0 šŸ“ŗ A* Algorithm - Part 3: https://youtu.be/jwRT4PCT6RU šŸŽ„ Previous video: https://youtu.be/QHEQuoIKgNE?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH šŸŽ„ Next video: https://youtu.be/l__fEY1xanY?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH šŸŽ„ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: šŸ“˜ Artificial Intelligence: A Modern Approach: http://aima.cs.berkeley.edu/ šŸ—„ A* Search Algorithm on Wikipedia: https://en.wikipedia.org/wiki/A*_search_algorithm šŸ’» Online demo: https://codingtrain.github.io/AStar/ Live Stream Archive: šŸ”“ Live Stream #72: https://www.youtube.com/watch?v=S4yQYiAECnM&t=34m50s Related Coding Challenges: šŸš‚ #10 Maze Generator: https://youtu.be/HyK_Q5rrcr4 šŸš‚ #162 Self Avoiding Walk: https://youtu.be/m6-cm6GZ1iw Timestamps: 0:00:00 Introduction 0:01:26 A* Pathfinder 0:09:39 Coding a Grid 0:13:09 A* Pathfinder Algorithm 0:22:07 Choosing Best Available Path 0:27:05 Finding New Nodes 0:38:30 Adding Heuristic 0:41:50 Tracing Back 0:46:49 Using Better Heuristics Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound šŸš‚ Website: http://thecodingtrain.com/ šŸ‘¾ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide šŸš© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box šŸ’” GitHub: https://github.com/CodingTrain šŸ’¬ Discord: https://discord.gg/hPuGy2g šŸ’– Membership: http://youtube.com/thecodingtrain/join šŸ›’ Store: https://standard.tv/codingtrain šŸ–‹ļø Twitter: https://twitter.com/thecodingtrain šŸ“ø Instagram: https://www.instagram.com/the.coding.train/ šŸŽ„ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH šŸŽ„ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA šŸ”— p5.js: https://p5js.org šŸ”— p5.js Web Editor: https://editor.p5js.org/ šŸ”— Processing: https://processing.org šŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new #aalgorithm #pathfinding #heuristic #p5js #javascript

Wheatcha