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