Rev 12459 | Rev 12672 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12459 | Rev 12460 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | !else |
12 | !else |
13 | shuffle=!shuffle $nn |
13 | shuffle=!shuffle $nn |
14 | shufflelist=!item $shuffle of $exo |
14 | shufflelist=!item $shuffle of $exo |
15 | !endif |
15 | !endif |
16 | !if $intro_expert=yes |
16 | !if $intro_expert=yes |
17 | !distribute items 0,0,0,0 into |
17 | !distribute items 0,0,0,0 into qcmgood,penalty,givegood,givehint |
18 | !bound intro_qcmpresent between 2 and 8 default $(default_choice[4]) |
18 | !bound intro_qcmpresent between 2 and 8 default $(default_choice[4]) |
19 | qcmpresent=$intro_qcmpresent |
19 | qcmpresent=$intro_qcmpresent |
20 | !bound |
20 | !bound intro_sol between 0 and $limit_version default $(default_choice[3]) |
21 | !bound |
21 | !bound intro_feed between 0 and $limit_version default $(default_choice[5]) |
22 | !! for retrocompatibility |
22 | !! for retrocompatibility |
23 | presentsol=$intro_presentsol |
23 | presentsol=$intro_presentsol |
24 | !if $presentsol!=$empty |
24 | !if $presentsol!=$empty |
25 |
|
25 | givesol=$[$presentsol-1] |
26 | !else |
26 | !else |
27 |
|
27 | givesol=$intro_sol |
28 | !endif |
28 | !endif |
29 |
|
29 | givefeed=$intro_feed |
30 | !read oef/testseedscore.phtml |
30 | !read oef/testseedscore.phtml |
31 | !read getparm $module_init_parm intro_check |
31 | !read getparm $module_init_parm intro_check intro_hint |
32 | !if 4 isin $get_introcheck |
32 | !if 4 isin $get_introcheck |
33 | !set |
33 | !set introgivehint=1 |
34 | !endif |
34 | !endif |
35 | !default |
35 | !default introgivehint=$get_intro_hint |
36 | !bound |
36 | !bound introgivehint between 0 and $limit_version |
37 | !default seedrepeat=1 |
37 | !default seedrepeat=1 |
38 | !default |
38 | !default introgivehint=0 |
39 | !default seedlastcnt=0 |
39 | !default seedlastcnt=0 |
40 | !!calculation done before the line with new. |
40 | !!calculation done before the line with new. |
41 | !if $seedlastcnt>=$seedrepeat |
41 | !if $seedlastcnt>=$seedrepeat |
42 | !set seedlastcnt=0 |
42 | !set seedlastcnt=0 |
43 | !increase seedcnt |
43 | !increase seedcnt |
44 | !else |
44 | !else |
45 | !increase seedlastcnt |
45 | !increase seedlastcnt |
46 | !endif |
46 | !endif |
47 | !if (4 isitemof $intro_check or ( |
47 | !if (4 isitemof $intro_check or ($introgivehint=1 and $seedrepeat<=1) or\ |
48 | ( |
48 | ($introgivehint>=1 and $seedcnt>=$introgivehint and $seedlastcnt>=$seedrepeat)) |
49 | !set givehint=1 |
49 | !set givehint=1 |
50 | !endif |
50 | !endif |
51 | !bound intro_expow between 1 and 6 default $(list_expow[1]) |
51 | !bound intro_expow between 1 and 6 default $(list_expow[1]) |
52 | !bound intro_sepow between 1 and 6 default $(list_sepow[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]) |
53 | !bound intro_precw between 0 and 1 default $(list_precw[1]) |
Line 68... | Line 68... | ||
68 | !else |
68 | !else |
69 | !! non expert parametrage, every thing is deduced from the qcmlevel |
69 | !! non expert parametrage, every thing is deduced from the qcmlevel |
70 | !default qcmpresent =!item $qcmlevel of 2,3,4,5,5,6,7,8,8 |
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 |
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 |
72 | !default penalty =!item $qcmlevel of 0,0,0,0,0,1,1,1,1 |
73 | !default |
73 | !default givegood=!item $qcmlevel of 1,1,1,1,1,1,0,0,0 |
74 | !default |
74 | !default givesol=!item $qcmlevel of 1,1,1,0,0,0,0,0,0 |
75 | !default |
75 | !default givefeed=!item $qcmlevel of 1,1,1,1,1,1,1,1,1 |
76 | !default givehint =!item $qcmlevel of 1,1,1,1,1,0,0,0,0 |
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 |
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 |
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 |
79 | !default precweight =!item $qcmlevel of 0.9,0.8,0.7,0.55,0.4,0.25,0.1,0,0 |
80 | !endif |
80 | !endif |