Switch coords. It kinda works? But testing is annoying.

This commit is contained in:
Vivianne 2023-02-11 22:34:46 -08:00
parent dffa96f5d0
commit e0dd13caab

View file

@ -103,7 +103,8 @@
(array-map! arr (lambda () (spawn ^mark))) (array-map! arr (lambda () (spawn ^mark)))
(methods (methods
[(ref coords) (match coords ((x y) (array-ref arr x y)))] ;; Switch coords for clarity
[(ref coords) (match coords ((x y) (array-ref arr y x)))]
[(chosen? coords) (not (not ($ ($ self 'ref coords) 'get)))] [(chosen? coords) (not (not ($ ($ self 'ref coords) 'get)))]
[(choose! coords mark-char) [(choose! coords mark-char)
(if ($ self 'chosen? coords) (if ($ self 'chosen? coords)