(play-with-turns (make-game-state 5 8) 'human)Q: Why the single quote? What would happen if we did just:
(play-with-turns (make-game-state 5 8) human) ?A: Error message from DrScheme: reference to undefined identifier: human
The quote's function is to prevent evaluation of the next expression.
A quote before a name causes the name itself
to be used, not what it is a name of:
> (define x 13)
> x ⇒ 13
> 'x ⇒ x
> 'human ⇒ human
> (define x 'y)
> (define z x)
> z ⇒ y