Tinker: a programming by Demonstration System for Beginning Programmers by Henry Lieberman Media Laboratory Massachusetts Institute of Technology


Figure 6: Preparing to teach Tinker about obstacles



Download 177.19 Kb.
Page11/15
Date06.04.2021
Size177.19 Kb.
1   ...   7   8   9   10   11   12   13   14   15
Figure 6: Preparing to teach Tinker about obstacles




First, we have to show Tinker what is special about Block-Z. Every block responds to the function Above, which either returns the block Above it, or NIL if none exists. We type the function Above, then select the line in the Snapshot Window that shows Block-X as the From block. Tinker then displays:

Result: #,(A 'block :name 'Z), Code: (Above From)

This shows Tinker that we chose Block-Z by virtue of its standing in the Above relation to the From block, e.g. Block-X.





Share with your friends:
1   ...   7   8   9   10   11   12   13   14   15




The database is protected by copyright ©essaydocs.org 2020
send message

    Main page