Connect Four Help?
I'm working on a Connect Four game, but the piece glitches out and adds a piece to every column instead of only adding one. I have a list for each column (column1, column2, etc.) and adds 1 (for red piece) to the corresponding column.
define Drop Piece in (column)
if <(column) = (column1 :: list)> then // This code by itself works, just not with the other rows.
set y to (60)
repeat ((5) - (length of (column1)))
change y by (-42) // Move one slot.
add (costume #) to [column1 v]
when green flag clicked
if <<(column#) = > and <(length of (column1)) < >> then
Drop Piece in (column1)