Cleaner printing func

This commit is contained in:
Vivianne 2023-07-02 22:59:01 -07:00
parent 3040c402b8
commit a3e2c45861

View file

@ -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))