| | | | | | | | | | | | | | | | | | ########### ######################### ########################### ############################# ############################### ################################# ####################################### ######################################### =============================================== | | | | | | | | | | | | | | | | | | ### ##### ####### ######### ################### ##################### ################################### ########################################### ############################################# =============================================== | | | | | | | | | | | | | | | | | | | | | | ############# ############### ################# ####################### ##################################### =============================================== |
$ gcc -o towers-of-hanoi towers-of-hanoi.c -lpthread
<!--#exec cmd="/home/gniibe/www/html/hanoi-counter" -->
The code of hanoi-counter is like this:
#! /usr/bin/gosh
(set! *load-path* (cons "./code" *load-path*))
(use hanoi)
(use srfi-11)
(use text.tree)
(define (main args)
(let-values (((step html-output)
(hanoi "/home/gniibe/www/hanoi/hanoi.dat" 22 :border 0.5)))
(write-tree (list step html-output))))
;;
;; Local Variables:
;; mode: scheme
;; End: