Main questions about the click circle project (20.6.4):
Stop condition | How? |
---|---|
user action | return (stop-with model) from a handler |
model state | (stop-when ...) in big-bang |
Question: How do you make a win screen show?
Answer: There are three steps:
win-draw-handler
function.Write a should-stop?
function. This is a technical annoyance.
For now this can do nothing:
(define (should-stop? model)
false)
Add a (stop-when should-stop? win-draw-handler)
clause to your big-bang
.