chickadee » aima » make-score-update!

make-score-update! agentprocedure

Make a score-updater that adds score to the score of an agent.

agent
The agent whose score to add to
(define (make-score-update! agent)
  (lambda (score) (agent-score-set! agent (+ (agent-score agent) score))))