Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-05-09

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:32 mgage_ joined #webwork
01:35 mgage_ joined #webwork
02:16 rbeezer joined #webwork
02:41 mgage_ joined #webwork
03:07 mgage_ joined #webwork
03:34 Paul_Pearson joined #webwork
12:07 mgage_ joined #webwork
17:21 Paul_Pearson joined #webwork
19:40 Paul_Pearson mgage around?
19:40 mgage hi
19:41 Paul_Pearson Do you have time for an answer checker question?
19:41 mgage sure
19:41 Paul_Pearson Is there a way to limit the number of attempts from within a pg problem?
19:42 Paul_Pearson I've written a custom answer checker that will only return 1 when the answer is correct and $numOfAttempts < 1.
19:42 Paul_Pearson So, it works.
19:42 mgage we didn't intend that to happen -- you can create hidden answer blanks however and keep track of how often a problem has been attempted.
19:43 Paul_Pearson But, since I'm circumventing the usual answer checker, the status report at the bottom says "you have unlimited attempts remaining".
19:43 mgage your method is even better
19:43 Paul_Pearson Is there a way to set the status "you have unlimited attempts remaining" to something else?
19:43 Paul_Pearson Is this message part of the answer hash?
19:44 Paul_Pearson Or, is it read from the homework set definition file?
19:44 mgage I don't think so -- we didn't put that kind of fine grained control into the problems  -- I believe that line is emitted by the grader -- so perhaps you could add a special grader to hack the effect you want.
19:45 Paul_Pearson I just emailed you the PG source.
19:45 mgage You can check using PGinfo.pl  whether or not the number of attempts allowed is revealed to the problem -- even if it is I don't think that it can be reset from within the problem.
19:46 Paul_Pearson I don't think I need to reset $numOfAttempts.  I believe that $numOfAttempts just records how many times the submit answers button is pressed.
19:46 mgage it's worth keeping this use case in mind as the way in which graders interact with the Problem.pm output is updated.
19:47 mgage it won't be $numbOfAttempts  it will be something like max_attempts
19:48 Paul_Pearson When I ran PGinfo.pl, the only environment variable related to attempts was $numOfAttempts.  I did not see anything related to max_attempts.
19:48 mgage you can certainly add another message from the problem about the attempts left -- but I don't know that you can turn off the one emitted by the grader
19:49 mgage take a look through some of the code in the graders for inspiration -- in particular I'm pretty sure the graders can issue messages such as "you have 5 attempts left" so they must have access to max_attempts.
19:49 Paul_Pearson Can max_attempts be set from within a PG problem?
19:49 mgage you might be able to  create a custom grader to get the effect you want.
19:50 mgage I suspect not -- but I don't know for sure.
22:09 mgage_ joined #webwork
22:55 mgage_ joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary