CamelCase in Scratch
Example for versions
Scratch 1.4
Since Scratch is a graphical language, the screenshot contains all the actual information about the program.
This example can’t be done using only standard blocks provided by the language; to implement it, we’ll need to explore hidden possibilities of the environment. Two blocks which handle conversions between ASCII codes and letters can be added as described in this tutorial on Scratch web-site. Once they are available, the rest of the program is quite evident.
Note that arrays are indexed starting with 1, and boolean values have to be compared with true
and false
explicitly to produce a condition.
CamelCase example in Scratch
Comments
]]>blog comments powered by Disqus
]]>