Episode 5 - Control Flow - Part 2
Learning to Code - Start Here • 28m
Intro to control flow diagrams. Control flow for choosing a skin. Control flow for choosing what to wear in the morning. Decision trees. Representing decisions graphically. Creating a decision tree that optimizes our mine digging code so that the agent correctly handles situations with water, air, gravel, sand and lava. Also: implement a feature that notifies the player when the agent finds diamonds, emeralds, or iron.
Up Next in Learning to Code - Start Here
-
Episode 6 - Variables
Testing a hypothesis: are the developers being honest with the frequency of each ore. Correspondence between Minecraft chests and variables. Write a program that determines the frequency of the different ores. Variables vs. Constants when representing data.
-
Episode 7 - Functions
Oracle of Delphi. What is a function? How do functions take arguments? Knowing what vs. knowing how. Return values. Choosing function names. Scope of a function.