Subversion Repositories wimsdev

Rev

Rev 12362 | Rev 12423 | 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
10897 obado 17
  !distribute items 0,0,0,0 into qcmgood,penalty,presentgood,givehint
18
  !bound intro_qcmpresent between 2 and 8 default $(default_choice[4])
19
  qcmpresent=$intro_qcmpresent
12308 bpr 20
  !bound intro_presentsol between 0 and 5 default $(default_choice[3])
12345 bpr 21
  !bound intro_presentfeed between 0 and 5 default $(default_choice[5])
10897 obado 22
  presentsol=$intro_presentsol
12345 bpr 23
  presentfeed=$intro_presentfeed
12350 bpr 24
  introcheck=!listintersect $intro_check,$intro_check3,$intro_check4 and $introcheck_list
25
  !read oef/testseedscore.phtml
26
  !read getparm $module_init_parm intro_check
27
  !default introcheck=$get_intro_check
28
  !set introcheck4=!values x-40 for x in $introcheck
29
  !set introcheck4=!listintersect $introcheck4 and 0,1,2,3,4,5
12362 bpr 30
  !default seedrepeat=0
31
  !default introcheck4=1
32
  !if (4 isitemof $intro_check or ($introcheck4=1 and $seedrepeat=0) or\
12390 bpr 33
      ($introcheck4>=1 and $seedcnt>=$introcheck4-1 and $[$seedlastcnt]>=$seedrepeat))
12350 bpr 34
    !set givehint=1
10897 obado 35
  !endif
36
  !bound intro_expow between 1 and 6 default $(list_expow[1])
37
  !bound intro_sepow between 1 and 6 default $(list_sepow[1])
38
  !bound intro_precw between 0 and 1 default $(list_precw[1])
39
  !if $qnum>1
40
    scorepower=$intro_sepow
41
  !else
42
    scorepower=1
43
  !endif
44
  freepower=$intro_expow
45
  precweight=$intro_precw
12350 bpr 46
 !!for choice type
47
  !if 1 isitemof $introcheck
10897 obado 48
    qcmgood=1
49
  !endif
12350 bpr 50
  !if 2 isitemof $introcheck
10897 obado 51
    penalty=1
52
  !endif
20 reyssat 53
!else
9099 bpr 54
!! non expert parametrage, every thing is deduced from the qcmlevel
55
  !default qcmpresent =!item $qcmlevel of 2,3,4,5,5,6,7,8,8
56
  !default qcmgood    =!item $qcmlevel of 1,1,1,1,0,0,0,0,0
57
  !default penalty    =!item $qcmlevel of 0,0,0,0,0,1,1,1,1
58
  !default presentgood=!item $qcmlevel of 1,1,1,1,1,1,0,0,0
59
  !default presentsol =!item $qcmlevel of 2,2,1,0,0,0,0,0,0
12345 bpr 60
  !default presentfeed =!item $qcmlevel of 2,2,2,2,2,2,2,2,2
9099 bpr 61
  !default givehint   =!item $qcmlevel of 1,1,1,1,1,0,0,0,0
62
  !default scorepower =!item $qcmlevel of 1,1,1,1.1,1.3,1.5,1.7,2,2.6
63
  !default freepower  =!item $qcmlevel of 1,1.5,2,2.5,3,3.5,4,4.5,5
64
  !default precweight =!item $qcmlevel of 0.9,0.8,0.7,0.55,0.4,0.25,0.1,0,0
20 reyssat 65
!endif
66
 
9099 bpr 67
!!qcmpower   =!item $qcmlevel of 1,1.1,1.2,1.3,1.5,2,2.5,3,4
20 reyssat 68
 
9099 bpr 69
!!! where is defined allchoices, except as a default 0 ?
20 reyssat 70
!if $allchoices>0
10897 obado 71
  !default qcmpresent=8
20 reyssat 72
!endif
73
 
74
!distribute item 0,0,0 into reply_cnt,score_should,score_got
75
!if $oef_test!=yes
10897 obado 76
  !if $nn>4
77
    loglist=$nn
78
  !else
79
    loglist=$shufflelist
80
  !endif
81
  wims_module_log=$cmd: $qnum exos on $loglist level=$qcmlevel
20 reyssat 82
!endif