Two paths diverge in the lectures 2 Think of the first as concepts, the second as capabilities This ClassPrinciplesDoing stuff
Today – they are merged 3
As experienced Lightbot hackers 4
Agent, Instructions, Intent 5
Sequencing 6
Instructions formed of simpler instructions 7 An Instruction abstracts those steps
Abstraction 8
9
Functions package computation 10
The function becomes a concept 11 Process stairs F1 Move to next staircase Process a stairs F1 Move to next staircase Process a stairs F1
A five instruction program 12 Is that beautiful, or what?
Here is what is beautiful … 13 To a programmer the instruction is monolithic (one thing) To an agent each instruction is a series of steps Slide 7 Slide 12 F1( ): Process Stairs F2( ): Move To Next Staircase It is one concept here (monolithic, but here it is a series of eight instructions
Abstraction … 14
Keep using abstraction … 15 It only simplifies our thinking; the bot still does all the work
Who is M.C. Escher? … 16
The function is just the packaging 18
Summary from Lightbot
What if … 20
Per Bot: Operation and Function 21 GreyBot.Left GreyBot.Jump GreyBot.Power BlueBot.Right BlueBot.Step
Per Bot: Operation and Function 22
Activity – programming w/ words
Example
Repeat operations
Step Jump Jump Step Left Power Step Power Step Power Step Jump Jump Step Left 3:(Power Step) SJJSL 3:(PS) Step Jump Jump Step Right 5:Step Power SJJSR 5:S P 7:(Step Power)R S R 7:(Power Step) 7:(SP)RSR 7:(PS)