Coding Challenge #121: Logo Interpreter
In this coding challenge, I discuss turtle graphics and make a Logo Interpreter in JavaScript. Code: https://thecodingtrain.com/challenges/121-logo-interpreter
p5.js Web Editor Sketches:
πΉοΈ Logo Interpreter Part 1: https://editor.p5js.org/codingtrain/sketches/ryTuOf3gN
πΉοΈ Logo Interpreter Part 2: https://editor.p5js.org/codingtrain/sketches/BJqG8zhlN
Other Parts of this Challenge:
πΊ Part 2: Logo Interpreter: https://youtu.be/aOqEm101fms
π₯ Previous video: https://youtu.be/oCBlwsY8sR4?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/yLuk0twx8Hc?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Logo Repo: https://github.com/shiffman/Logo
π Logo on Wikipedia: https://en.wikipedia.org/wiki/Logo_(programming_language)
π Logo Tutorial: http://cs.brown.edu/courses/bridge/1997/Resources/LogoTutorial.html
Videos:
π Transformation Tutorial: https://www.youtube.com/watch?v=o9sgjuh-CBM
π Angles and Angular Motion: https://www.youtube.com/watch?v=qMq-zd6hguc
π§Ύ Angular Motion: https://www.youtube.com/watch?v=i2ROE_mAhU0
Live Stream Archive:
π΄ Coding Train Live 158: https://youtu.be/flHxQpyiDNc
π΄ Coding Train Live 159: https://youtu.be/kLIHhOEPHG0
Timestamps:
0:20 What is Logo?
1:21 Logo commands
2:23 Let's go!
5:04 The turtle object
7:14 Let's code the turtle methods
10:39 Iterating over the tokens
12:51 Understanding the increment operator
14:37 A little debugging
18:55 Found the bug!
20:00 A look-up table
23:44 Real-time interpretation
26:50 Pen up and pen down
37:54 It works!
40:00 Ending remarks
40:33 Thank you for watching!
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
#logo #logointerpreter #turtlegraphics #p5js #javascript