Back Edit Delete

You are designing a world program but have not implemented its handlers yet. Write callable stubs for tick, draw, and handle-key with the signatures WorldState -> WorldState, WorldState -> Image, and WorldState KeyEvent -> WorldState. Do not implement the real behavior yet.

Short answer

Accepted answer

; WorldState -> WorldState
(define (tick ws) ws)

; WorldState -> Image
(define (draw ws) empty-image)

; WorldState KeyEvent -> WorldState
(define (handle-key ws ke) ws)