> However, (I’m guessing) using world or w makes it clear that the
functions
> are meant to be used with big-bang.
This is on the right track. You are programming using the universe API.
This API manipulates what changes in a game which it calls a world. What a
world actually is depends on the gam
In this program, a world is just an interval.
All of those w s could be replaced with ivl s, because a world is an interval,
and the value of the parameter will always be an interval.
However, (I’m guessing) using world or w makes it clear that the functions are
meant to be used with big-ba
In Guess My Number I see the following definitions:
(define (smaller w)
(interval (interval-small w)
(max (interval-small w) (sub1 (guess w)
(define (bigger w)
(interval (min (interval-big w) (add1 (guess w)))
(interval-big w)))
(define (guess w)
(quotient (+ (int
3 matches
Mail list logo