10-17-2023, 01:22 AM
Some of this old style code is just brain damaging. Examples of poor coding back in the day:
380 LET A=INT(3*(RND(X)))
390 IF A<>0 THEN 410
400 LET A=3
Let's fix that in one line:
LET A = INT(3 * (RND(X))) + 1
Or even change line 390 to:
IF A = 0 THEN LET A = 3
380 LET A=INT(3*(RND(X)))
390 IF A<>0 THEN 410
400 LET A=3
Let's fix that in one line:
LET A = INT(3 * (RND(X))) + 1
Or even change line 390 to:
IF A = 0 THEN LET A = 3