Clarification #1: This is in the assignment description, but I would like to make it clear that you are NOT supposed to use JavaScript for this assignment. I understand that the interface would be a bit clunkier, but the assignment is for you to learn PHP.
I am confused about the error checking. If we are removing the radio buttons that would allow a player to make an invalid move, it doesn't make sense to also check that the move is valid. Could you clarify this?
This is a very good observation. If someone is using the form as is, then indeed you do not need this extra check, but if someone is not using the form that you generated (i.e., tries to submit an invalid board through a modified form), then this adds an additional check on the server side. With the assumption that you are doing the error checking through a separate function, this does not add any programming overhead, so I decided to include this extra check in the requirements.
Clarification #2: Once a player submits the last move (and the Sudoku board is complete), there should be a congratulations message displayed on the bottom of the screen.
Clarification #3: (as explained in class today) You are not allowed to use local file storage at the server or connect to a database for this assignment.
Not sure what you mean by "dummy sudoku game". The php script will not play sudoku, just keep track. However, it should assist the user in identifying legal moves (and detect illegal ones, including illegal board configurations).
Are we allowed to use PHP sessions? Also, I'm not sure what you mean by "local file storage". Does this mean we can not use XML files as part of our project?
Clarification #1: This is in the assignment description, but I would like to make it clear that you are NOT supposed to use JavaScript for this assignment. I understand that the interface would be a bit clunkier, but the assignment is for you to learn PHP.
ReplyDeleteI am confused about the error checking. If we are removing the radio buttons that would allow a player to make an invalid move, it doesn't make sense to also check that the move is valid. Could you clarify this?
ReplyDeleteThis is a very good observation. If someone is using the form as is, then indeed you do not need this extra check, but if someone is not using the form that you generated (i.e., tries to submit an invalid board through a modified form), then this adds an additional check on the server side. With the assumption that you are doing the error checking through a separate function, this does not add any programming overhead, so I decided to include this extra check in the requirements.
DeleteClarification #2: Once a player submits the last move (and the Sudoku board is complete), there should be a congratulations message displayed on the bottom of the screen.
ReplyDeleteClarification #3: (as explained in class today) You are not allowed to use local file storage at the server or connect to a database for this assignment.
ReplyDeleteAre we just making a dummy sudoku game? Since the user is providing the format of the board, wouldn't the user already know what the valid moves are?
ReplyDeleteNot sure what you mean by "dummy sudoku game". The php script will not play sudoku, just keep track. However, it should assist the user in identifying legal moves (and detect illegal ones, including illegal board configurations).
DeleteI just read this. Okay, that makes more sense. Thank you!
DeleteAre we allowed to use PHP sessions? Also, I'm not sure what you mean by "local file storage". Does this mean we can not use XML files as part of our project?
ReplyDeleteYes, you are allowed to use PHP sessions. You are not to use file storage (nor databases) at the server or at the client.
DeleteWhich cells do we highlight when an error occurs? All cells in the violating regions, or just the specific conflicting cells?
ReplyDeletee.g. if the table is 2xx2:xxxx:xxxx:xxxx does it highlight both 2's, or the entire upper-left subtable?
You should highlight all cells that are in the violating region, for uniformity. This is actually simpler to do also.
Delete