Hailperin, Chapter 6 Slide, Rules for Nim Play a few games on the board Demo ch6a.rkt (one-digit pile limit) > (play-with-turns (make-game-state 5 8) 'human) Here are some I/O functions used in the Nim code > odd? > 'odd? > human > 'human > (+ 2 3) > '(+ 2 3) > (quote abc) > 'abc > (define me 'warford) > me > (display "Hello world!") > (error "You goofed") Note: This is how the Scheme system prints out the error messages > (newline) > (newline)(newline) > (read) > (prompt "How old are you? ") > (+ (prompt "x: ") (prompt "y: ")) Slides, code walkthrough of ch6a.rkt, where the implementation is a two-digit number Slide, Alternate implementation Challenge the class to determine n and m from 648. Slides for the procedure implementation