This commit is contained in:
Vivianne 2023-07-06 23:08:58 -07:00
parent ffddf2a975
commit 79dae2e4a4

View file

@ -12,12 +12,12 @@
(define (make-board)
(make-array #f ggg-size ggg-size))
(define (board-assert-vacant x y)
(define (board-assert-vacant board x y)
(define ref (board-ref board x y))
(if ref (error "That space is already occupied with:" ref) ref))
(define (board-choose! board val x y)
(board-assert-vacant)
(board-assert-vacant board x y)
(array-set! board val y x))
(define (board-display board)