Mar-27-2019, 05:11 PM
You need to do one check before each square is appended, depending on how you are modifying the coordinates. If you are subtracting, you need to make sure the number is at least 0. If you are adding, you need to make sure the number is less than the appropriate len. If it passes the check, add the square, otherwise move on to the next square.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures