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))))) (array-set! board val y x)))))
(define (board-display board) (define (board-display board)
(define (print-mark mark) (define (print m) (or m " "))
(if mark mark " "))
;; this is .. probably messy? ;; this is .. probably messy?
(array-slice-for-each-in-order (array-slice-for-each-in-order
1 1
(lambda (x) (lambda (x)
(map (lambda (i) (format #t "[~a]" (print-mark i))) (map (lambda (i) (format #t "[~a]" (print i)))
(array->list x)) (array->list x))
(format #t "\n")) (format #t "\n"))
board)) board))