I'm fairly new to C and I need help creating the game of GO. My first problem is drawing the board. I need a board that is 19x19 spaces with the rows and columns labeled 1-19. I have already assigned a char [19][19] to allow for all my spaces but cannot get the rows labeled. Any help with this would be appreciated. Thanks



LinkBack URL
About LinkBacks




I used to be an adventurer like you... then I took an arrow to the knee.
In essence it's the entire body of the for loop, and the curly braces that follow are a random block that you've introduced. So what will happen is that the for loop will execute as you programmed it to, do nothing each time, and then the code in the block will execute once (with j == BoardSize, which will probably crash it!). Or it would if j existed outside of the loop; since it doesn't, you're getting that error message. The short of it is that you should get rid of that semicolon.