chickadee » aima » simulate-graph

simulate-graph world agentprocedure
simulate-graph world agent stepsprocedure

Simulate the graph world.

world
The world to simulate
agent
The agent to inhabit the world
steps
The steps to simulate (default: (default-steps))
(define simulate-graph
  (case-lambda
    ((world agent) (simulate-graph world agent (default-steps)))
    ((world agent steps)
     (parameterize
       ((randomize! bsd-randomize))
       (simulate
         (compose-environments
           (make-step-limited-environment steps)
           (make-debug-environment agent)
           (make-graph-environment world agent)
           (make-graph-performance-measure world agent)))))))