Open bobbicodes opened 4 years ago
Upon execution the script now grabs the most recently modified file in order to find your place, eliminating the need to store it in a file.
Obviously it needs to test it to determine if it was indeed answered correctly. Otherwise that problem must be presented again.
Since the main loop is called every time a question is answered, that means every answer ends up being tested twice.
This will likely only be noticeable on the longer-running problems, but should be fixed nonetheless.
I can think of a few different ways to do it, but I'm getting fuzzy and should probably go to sleep. Just leaving this here so I don't forget.
Seems like an obvious fix would be to simply not store the answer unless it passes. (derp)
Upon execution the script now grabs the most recently modified file in order to find your place, eliminating the need to store it in a file.
Obviously it needs to test it to determine if it was indeed answered correctly. Otherwise that problem must be presented again.
Since the main loop is called every time a question is answered, that means every answer ends up being tested twice.
This will likely only be noticeable on the longer-running problems, but should be fixed nonetheless.
I can think of a few different ways to do it, but I'm getting fuzzy and should probably go to sleep. Just leaving this here so I don't forget.