Re: [racket] Question #3 from Realm of Racket

2014-06-30 Thread Marco Morazan
> 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

Re: [racket] Question #3 from Realm of Racket

2014-06-30 Thread Alexander D. Knauth
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

[racket] Question #3 from Realm of Racket

2014-06-30 Thread Steve Graham
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