Subversion Repositories wimsdev

Rev

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 qcmgood,penalty,presentgood,givehint
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 intro_presentsolu between 0 and $limit_version default $(default_choice[3])
20
  !bound intro_sol between 0 and $limit_version default $(default_choice[3])
21
  !bound intro_presentfeed between 0 and $limit_version default $(default_choice[5])
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
    presentsolu=$[$presentsol-1]
25
    givesol=$[$presentsol-1]
26
  !else
26
  !else
27
    presentsolu=$intro_presentsolu
27
    givesol=$intro_sol
28
  !endif
28
  !endif
29
  presentfeed=$intro_presentfeed
29
  givefeed=$intro_feed
30
  !read oef/testseedscore.phtml
30
  !read oef/testseedscore.phtml
31
  !read getparm $module_init_parm intro_check intro_check4
31
  !read getparm $module_init_parm intro_check intro_hint
32
  !if 4 isin $get_introcheck
32
  !if 4 isin $get_introcheck
33
    !set introcheck4=1
33
    !set introgivehint=1
34
  !endif
34
  !endif
35
  !default introcheck4=$get_intro_check4
35
  !default introgivehint=$get_intro_hint
36
  !bound introcheck4 between 0 and $limit_version
36
  !bound introgivehint between 0 and $limit_version
37
  !default seedrepeat=1
37
  !default seedrepeat=1
38
  !default introcheck4=0
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 ($introcheck4=1 and $seedrepeat<=1) or\
47
  !if (4 isitemof $intro_check or ($introgivehint=1 and $seedrepeat<=1) or\
48
      ($introcheck4>=1 and $seedcnt>=$introcheck4 and $seedlastcnt>=$seedrepeat))
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 presentgood=!item $qcmlevel of 1,1,1,1,1,1,0,0,0
73
  !default givegood=!item $qcmlevel of 1,1,1,1,1,1,0,0,0
74
  !default presentsolu=!item $qcmlevel of 1,1,1,0,0,0,0,0,0
74
  !default givesol=!item $qcmlevel of 1,1,1,0,0,0,0,0,0
75
  !default presentfeed=!item $qcmlevel of 1,1,1,1,1,1,1,1,1
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