Compound: when, example?
Give this one a try later!
when: two or more items that naturally belong together
example: x and y coordinate of an image on a background
, Compound Data HtDD
Give this one a try later!
(define-struct block (x y))
;; Block is (make-block Number Number)
;; interp. a block at position x y
(define B1 (make-block 2 2))
(define (fn-for-block b)
(... (block-x b) ; Number
(block-y b))) ; Number
;; Template rules used:
;; - compound: 2 fields
Simple Atomic HtDD
Give this one a try later!
;; Time is Natural
;; interp. number of clock ticks since start of game
(define START-TIME 0)
(define OLD-TIME 1000)
#;
(define (fn-for-time t)
(... t))
;; Template rules used:
;; - atomic non-distinct: Natural
Intervals HtDD
Give this one a try later!
when: two or more items that naturally belong together
example: x and y coordinate of an image on a background
, Compound Data HtDD
Give this one a try later!
(define-struct block (x y))
;; Block is (make-block Number Number)
;; interp. a block at position x y
(define B1 (make-block 2 2))
(define (fn-for-block b)
(... (block-x b) ; Number
(block-y b))) ; Number
;; Template rules used:
;; - compound: 2 fields
Simple Atomic HtDD
Give this one a try later!
;; Time is Natural
;; interp. number of clock ticks since start of game
(define START-TIME 0)
(define OLD-TIME 1000)
#;
(define (fn-for-time t)
(... t))
;; Template rules used:
;; - atomic non-distinct: Natural
Intervals HtDD