am making tetris in ti-basic, every time a tetrimono lands i would like to update some rows lists either from 0 to one, or whenever a line clears, the entire rows list to zero, or false
an example. someone clears 4 rows with the straight tetrimono. because it is 4 units long facing vertical, it checks the coordinates of x and then updates 4 lists, with the corresponding list number, in this case 6 of 10 piece slots. it updates these slots to one, or true. it then checks every row list if it is full or not; in this case, lists TR1,TR2,TR3, and TR4 all have ten values of 1, or true, and no values of 0,or false. for every row that has all true values it resets all values to one. what would be the most efficient way of updating every coordinate that the terimono lands in... continuing on the code
ZoomRcl
11→Dim(ʟTR1)
11→Dim(ʟTR2)
//goes up to 9
11→Dim(ʟTRA)
11→Dim(ʟTRB)
// goes up to l, for 21 rows
ClrDraw
Line(15,-31,-15,-31)
Line(-15,-31,-15,31)
Line(15,-31,15,31)
Line(15,31,-15,31)
Lbl 1
-5→x // i set the xmin and xmax to -47, and 47
30→y // i set the ymin and ymax to -31, and 31
randIint(1,6)→P //determines which tetrimono will be spawned
Lbl 2
if p=1
goto 3
if p=2
goto 4
if P=3
goto 5
if p=4
goto 6
if p=5
goto 7
if p=6
goto 8
if p=7
goto 9
lbl 3
//visual code for L tetrimono 1
Line(x,y,x+8,y) also, is it possible to make a x coordinate list that draws all x coordinates, like x1,y1 to x2,y2 then x2,y2 to x3,y3, etc without external libraries
Line(x+8,y,x+8,y-5)
Line(X+8,y-5,x+6,y-50
Line(x+6,Y-5,X+6,y-2)
Line(x+6,y-2,x,y-2>
Line(x,y-2,x,y)
goto 10
lbl 4
//mirrored l tetrimono
goto 10
lbl 5
//line tetrimono
goto 10
lbl 6
//box tetrimono
goto 10
lbl 7
//s tetrimono
goto 10
lbl 8
//z tetrimono
lbl 9
//t tetrimono
lbl 10
y-3→y
//this is where i need help making tetris