Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Have you stepped through the code with a debugger yet? Commented Jun 19, 2013 at 1:00
  • I agree stepping through the code with a debugger could help with your understanding. You might also want to brush up on the concept of assignment statements, as the code isn't assigning x=j, it's assigning x=j*squaresize. Also, while a single column is a vertical arrangement of items, multiple columns are aligned horizontally with each other. Commented Jun 19, 2013 at 1:07
  • I am sorry, I haven't learned how to do that yet actually. I'm following the Stanford cs106a class and the debugger is being taught later on in the course. Perhaps it'd be a good idea to just get familiar with it now though. Commented Jun 19, 2013 at 1:09
  • 1
    Are you sure you want to use <= in the for loops? Wouldn't this create a 9x9 board instead of an 8x8 board? Commented Jun 19, 2013 at 1:27
  • You are definitely correct about that, I was trying to write the code from memory above and made that mistake, thanks for the notice. Commented Jun 19, 2013 at 1:34