Help with code for pen in my tic tac toe AI

I cant get the AI's move to draw properly for some reason

The project isn't shared.

Why don't you use a 2D list?


Instead of '(1 2 3 4 5 6 7 8 9)


'((1 2 3)
  (4 5 6)
  (7 8 9)

You can get a specific (X,Y) with:
(item (X) of(item (Y) of (list)))

I can't find out why the ai isn't getting drawn, but I have a feeling you might be able to figure it out as you work on the project.

i think its a problem with how snap clones work

becuase the system i used made it easier to code for traps

When I wrote a TTT program, I kept both board formats, the linear one for computations and the 2D one for showing results.

The AI works as shown in one of my other projects. im not getting the pens to draw correctly and it makes no sense why

You should probably have the AI calculate its move before drawing the AI's move, I'm noticing the circle moving a lot while it's being drawn