Here's how I would recode the first
for-next loop I came across:
for t = 1 to 9
---Check for Draw---
if t=1 OR t=3 OR t=5 OR t=7 OR t=9 then gosub xpaste
if t=2 OR t=4 OR t=6 OR t=8 then gosub opaste
next t
I've also included the best place to check for a draw. However, the code required to check for a draw is slightly more tricky: you'll have to analyse the board and make sure that there is nowhere on it where a 3-length line can be made.
Note: Unless it's changed since DBClassic, you shouldn't put the extra ":" on the end of a
gosub command. Also, you don't need the
step part of a for loop if you're simply incrementing by one.
Hope this helps!