I'm trying to make tic-tac-toe in scheme and when trying to refer to a variable I get application: not a procedure;
(display "1 turn")
(define spot (read-line))
(vector-set! row
(spot)
1)
(print-gameboard) ; just a display function
I expected this to change the vector into 1 0 0 0 0 0 0 0 0
if I give it one, but I just get application: not a procedure;