Originally Posted By: Reconnoiter
how come this does only does four iterations instead of 4 x 30? I think I am resetting i. Maybe I am getting blind here

Step through it with a debugger and you'll see very clearly what's wrong. The if block is only executed 4 times because the for loop it's inside of only iterates 4 times. You should write your code the way superku demonstrated, with two for loops.


Eats commas for breakfast.

Play Barony: Cursed Edition!