Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16208 | bpr | 1 | !set name_answer1=No! You have made bad manipulations which have led you to a situation\ |
2 | where the proof of the exercise is no longer possible. The exercise\ |
||
16121 | bpr | 3 | is therefore aborted, score=0. |
16208 | bpr | 4 | !set name_answer2= No! You have exceeded the limit of allowed steps. The operation is\ |
16121 | bpr | 5 | aborted, score=0. |
6 | !set name_answerprompt=Phew, Well, Yes, Great, Bravo, Congratulations |
||
7 | !set name_solve=!nosubst You have solved the exercise in $ctstep steps. |
||
8 | !set name_shouldbe=!nosubst It can be done in $m_minsteps steps. |
||
9 | !set name_scoreend=Score,stray steps, penalties for serious errors |
||
10 | |||
20 | reyssat | 11 | !if $error!=$empty |
16114 | bpr | 12 | !exit |
20 | reyssat | 13 | !endif |
14 | !if $condtest1<0 |
||
16114 | bpr | 15 | <p> |
16121 | bpr | 16 | $name_answer1 |
16114 | bpr | 17 | </p> |
18 | !exit |
||
20 | reyssat | 19 | !endif |
20 | !if $cutstop=yes |
||
16114 | bpr | 21 | <p> |
16121 | bpr | 22 | $name_answer2 |
16114 | bpr | 23 | </p> |
24 | !exit |
||
20 | reyssat | 25 | !endif |
26 | !if nostatus notwordof $m_options |
||
17046 | bpr | 27 | !read deduc/$modu_lang/status.phtml |
20 | reyssat | 28 | !endif |
29 | |||
16121 | bpr | 30 | !item floor($score/2)+1 of $name_answerprompt |
31 | $ ! $name_solve |
||
20 | reyssat | 32 | !if $ctstep>$m_minsteps |
16121 | bpr | 33 | $name_shouldbe |
20 | reyssat | 34 | !endif |
16121 | bpr | 35 | $(name_scoreend[1]) $score/10. |
36 | ($[$ustep-$currstep] $(name_scoreend[2]), |
||
37 | $penalty $(name_scoreend[3]). |