Rev 12459 | Rev 12672 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !nocache |
9177 | bpr | 2 | !read oef/default |
20 | reyssat | 3 | exo=!listintersect $exo and $exolist |
4 | !default exo=$defaultlist |
||
5 | wims_intro_parm=$exo |
||
6 | !default exo=$exolist |
||
7 | nn=!itemcnt $exo |
||
8 | |||
9 | shlist= |
||
10 | !ifval $random=0 |
||
10897 | obado | 11 | shufflelist=$exo |
20 | reyssat | 12 | !else |
10897 | obado | 13 | shuffle=!shuffle $nn |
14 | shufflelist=!item $shuffle of $exo |
||
20 | reyssat | 15 | !endif |
16 | !if $intro_expert=yes |
||
12460 | bpr | 17 | !distribute items 0,0,0,0 into qcmgood,penalty,givegood,givehint |
10897 | obado | 18 | !bound intro_qcmpresent between 2 and 8 default $(default_choice[4]) |
19 | qcmpresent=$intro_qcmpresent |
||
12460 | bpr | 20 | !bound intro_sol between 0 and $limit_version default $(default_choice[3]) |
21 | !bound intro_feed between 0 and $limit_version default $(default_choice[5]) |
||
12459 | bpr | 22 | !! for retrocompatibility |
10897 | obado | 23 | presentsol=$intro_presentsol |
12459 | bpr | 24 | !if $presentsol!=$empty |
12460 | bpr | 25 | givesol=$[$presentsol-1] |
12459 | bpr | 26 | !else |
12460 | bpr | 27 | givesol=$intro_sol |
12459 | bpr | 28 | !endif |
12460 | bpr | 29 | givefeed=$intro_feed |
12350 | bpr | 30 | !read oef/testseedscore.phtml |
12460 | bpr | 31 | !read getparm $module_init_parm intro_check intro_hint |
12459 | bpr | 32 | !if 4 isin $get_introcheck |
12460 | bpr | 33 | !set introgivehint=1 |
12459 | bpr | 34 | !endif |
12460 | bpr | 35 | !default introgivehint=$get_intro_hint |
36 | !bound introgivehint between 0 and $limit_version |
||
12459 | bpr | 37 | !default seedrepeat=1 |
12460 | bpr | 38 | !default introgivehint=0 |
12423 | bpr | 39 | !default seedlastcnt=0 |
40 | !!calculation done before the line with new. |
||
41 | !if $seedlastcnt>=$seedrepeat |
||
42 | !set seedlastcnt=0 |
||
43 | !increase seedcnt |
||
44 | !else |
||
45 | !increase seedlastcnt |
||
46 | !endif |
||
12460 | bpr | 47 | !if (4 isitemof $intro_check or ($introgivehint=1 and $seedrepeat<=1) or\ |
48 | ($introgivehint>=1 and $seedcnt>=$introgivehint and $seedlastcnt>=$seedrepeat)) |
||
12350 | bpr | 49 | !set givehint=1 |
10897 | obado | 50 | !endif |
51 | !bound intro_expow between 1 and 6 default $(list_expow[1]) |
||
52 | !bound intro_sepow between 1 and 6 default $(list_sepow[1]) |
||
53 | !bound intro_precw between 0 and 1 default $(list_precw[1]) |
||
54 | !if $qnum>1 |
||
55 | scorepower=$intro_sepow |
||
56 | !else |
||
57 | scorepower=1 |
||
58 | !endif |
||
59 | freepower=$intro_expow |
||
60 | precweight=$intro_precw |
||
12350 | bpr | 61 | !!for choice type |
62 | !if 1 isitemof $introcheck |
||
10897 | obado | 63 | qcmgood=1 |
64 | !endif |
||
12350 | bpr | 65 | !if 2 isitemof $introcheck |
10897 | obado | 66 | penalty=1 |
67 | !endif |
||
20 | reyssat | 68 | !else |
12459 | bpr | 69 | !! non expert parametrage, every thing is deduced from the qcmlevel |
9099 | bpr | 70 | !default qcmpresent =!item $qcmlevel of 2,3,4,5,5,6,7,8,8 |
71 | !default qcmgood =!item $qcmlevel of 1,1,1,1,0,0,0,0,0 |
||
72 | !default penalty =!item $qcmlevel of 0,0,0,0,0,1,1,1,1 |
||
12460 | bpr | 73 | !default givegood=!item $qcmlevel of 1,1,1,1,1,1,0,0,0 |
74 | !default givesol=!item $qcmlevel of 1,1,1,0,0,0,0,0,0 |
||
75 | !default givefeed=!item $qcmlevel of 1,1,1,1,1,1,1,1,1 |
||
9099 | bpr | 76 | !default givehint =!item $qcmlevel of 1,1,1,1,1,0,0,0,0 |
77 | !default scorepower =!item $qcmlevel of 1,1,1,1.1,1.3,1.5,1.7,2,2.6 |
||
78 | !default freepower =!item $qcmlevel of 1,1.5,2,2.5,3,3.5,4,4.5,5 |
||
79 | !default precweight =!item $qcmlevel of 0.9,0.8,0.7,0.55,0.4,0.25,0.1,0,0 |
||
20 | reyssat | 80 | !endif |
81 | |||
9099 | bpr | 82 | !!qcmpower =!item $qcmlevel of 1,1.1,1.2,1.3,1.5,2,2.5,3,4 |
20 | reyssat | 83 | |
9099 | bpr | 84 | !!! where is defined allchoices, except as a default 0 ? |
20 | reyssat | 85 | !if $allchoices>0 |
10897 | obado | 86 | !default qcmpresent=8 |
20 | reyssat | 87 | !endif |
88 | |||
89 | !distribute item 0,0,0 into reply_cnt,score_should,score_got |
||
90 | !if $oef_test!=yes |
||
10897 | obado | 91 | !if $nn>4 |
92 | loglist=$nn |
||
93 | !else |
||
94 | loglist=$shufflelist |
||
95 | !endif |
||
96 | wims_module_log=$cmd: $qnum exos on $loglist level=$qcmlevel |
||
20 | reyssat | 97 | !endif |