Nokosee’s Thinking

fun is-safe-bottom​(​y​): y >= -30 end

fun is-safe-top​(​y​): y <= 510 end

fun is-onscreen​(​y​): is-safe-bottom​(​y​) and is-safe-top​(​y​) end

Sabra’s Thinking

fun is-safe-bottom​(​y​): y > -40 end

fun is-safe-top​(​y​): y < 520 end

fun is-onscreen​(​y​): (​y > -40​) and (​y < 520​) end

1 Nokosee and Sabra have different strategies for keeping Sam on the screen. How does Nokosee’s strategy work?

2 How does Sabra’s strategy work?

3 What’s an advantage of Nokosee’s strategy?

4 What’s an advantage of Sabra’s strategy?

5 Which strategy do you prefer? Why?

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.