Timeline for Pset3, Error in init function
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 3, 2016 at 6:10 | vote | accept | samidha | ||
Sep 3, 2016 at 6:09 | comment | added | samidha | that worked! thanks :) | |
Aug 31, 2016 at 18:48 | comment | added | Cliff B | Your code is calculating the initial values by column and then by row, when it should be by row and then column. I suspect that your draw is doing the same. Unfortunately, check50 and the log.txt code depend on the top row being in board[0][x], not board[x][0]. Try reversing the i and j in the formula that calculates the initial values, and make the necessary changes in draw as well. | |
Aug 31, 2016 at 14:58 | comment | added | samidha | I did that but the error still exists: { :( init initializes 3x3 board correctly \ expected "7" character 3 of line 1, not "5" } I have no idea why this is happening, it's annoying now. | |
Aug 30, 2016 at 22:11 | history | answered | Cliff B | CC BY-SA 3.0 |