13. Exercises C
-
below-10-or-above-50?: number -> boolean
. True if the number is either below ten or above fifty. -
Craps is an old dice game. Simplified rules: you win if you roll a 7 or an 11. Write
win-craps?: number -> boolean
. -
Write a function
roll-2-dice: number(ignore) -> number
that gives the total from rolling two standard six-sided dice. -
Write the function
play-craps: number(ignore) -> boolean
that plays one round of craps (randomly) and returns true when it is a win. -
Write
not-blue-triangle?: image -> boolean
that is true only if the image is not a blue equilateral triangle (of any size). -
Stripes. Create a pattern of red, green, and blue diagonal stripes, each 50 pixels wide.