Ticket #262 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Towers of Hanoi example in docs have wrong number of disks in output

Reported by: r.walker@… Owned by: williams
Priority: trivial Milestone:
Component: williams/inference.plt Keywords:
Cc: Version: (2 3)
Racket Version: 4.4

Description

When running the Towers Of Hanoi example, despite running
(solve-towers 6)
at the end of the program for 6 disks, the output shows only enough steps for 5 disks.
Perhaps the line in the solve-towers function,

(for ((i (in-range 1 n)))

should be changed to

(for ((i (in-range 1 (+ n 1))))

or something to that effect.

P.S.
In any case, I very much appreciate the work you've done for this. I was evaluating CLIPS, LISA, ERSEYE, etc. and I'm glad there is a viable option for rules-based expert systems in Scheme.

Change History

Changed 15 years ago by williams

  • status changed from new to closed
  • resolution set to fixed

Fixed in Version 2.4.

Note: See TracTickets for help on using tickets.