Nokosee’s Thinking

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

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

fun is-onscreen​(​y​): 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. Do they both work?

 

 

 

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

 

 

 

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

 

 

 

4 Which strategy do you prefer? Why?

 

 

 

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). 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.