![]() |
.. (לתיקייה המכילה) | |
We notice that the clock interrupt occurs much more than 60 times a second. | |
Define a rate variable and set it to 10000. (decimal) Use it for testing purposes. Before submitting your work make sure to set it back to 60. |
When the program ends unpredictably (failed end state) should we clear the stack before halting? | |
Yes, and also make sure not to halt during an interrupt, the program should exit gracefully. I.e. you can set an end-state-flag and check it before branching to wait in the main program. |
During any routine such as updating the board or drawing it, should we stop the clock interrupts from occurring? | |
No. As long as the player can 'think' about his next move, the clock should tick. |
I am having problems with the included .txt or .bat file. | |
They very well could. Make sure to re-download them before asking me about it, as they have been updated occasionally. |
In the examples we are shown an end-game board with "Time left:0" (Timeout end-game). | |
You should print the board, just don't make an updated board if the player made a move. I.e, if the game ended due to timeout, you print the latest board, and if it ended for an other reason you print the board before updating the player's location. |
What can we assume about the size (number of digits) of the score / time limit? | |
You can assume it will fit a Word. i.e. it is smaller than 65536, or less than 6 digits long. |