Cleaner printing func
This commit is contained in:
parent
3040c402b8
commit
a3e2c45861
1 changed files with 2 additions and 3 deletions
|
@ -52,14 +52,13 @@
|
|||
(array-set! board val y x)))))
|
||||
|
||||
(define (board-display board)
|
||||
(define (print-mark mark)
|
||||
(if mark mark " "))
|
||||
(define (print m) (or m " "))
|
||||
|
||||
;; this is .. probably messy?
|
||||
(array-slice-for-each-in-order
|
||||
1
|
||||
(lambda (x)
|
||||
(map (lambda (i) (format #t "[~a]" (print-mark i)))
|
||||
(map (lambda (i) (format #t "[~a]" (print i)))
|
||||
(array->list x))
|
||||
(format #t "\n"))
|
||||
board))
|
||||
|
|
Loading…
Reference in a new issue