Subversion Repositories wimsdev

Rev

Rev 12350 | Rev 12423 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

!nocache
!read oef/default
exo=!listintersect $exo and $exolist
!default exo=$defaultlist
wims_intro_parm=$exo
!default exo=$exolist
nn=!itemcnt $exo

shlist=
!ifval $random=0
  shufflelist=$exo
!else
  shuffle=!shuffle $nn
  shufflelist=!item $shuffle of $exo
!endif
!if $intro_expert=yes
  !distribute items 0,0,0,0 into qcmgood,penalty,presentgood,givehint
  !bound intro_qcmpresent between 2 and 8 default $(default_choice[4])
  qcmpresent=$intro_qcmpresent
  !bound intro_presentsol between 0 and 5 default $(default_choice[3])
  !bound intro_presentfeed between 0 and 5 default $(default_choice[5])
  presentsol=$intro_presentsol
  presentfeed=$intro_presentfeed
  introcheck=!listintersect $intro_check,$intro_check3,$intro_check4 and $introcheck_list
  !read oef/testseedscore.phtml
  !read getparm $module_init_parm intro_check
  !default introcheck=$get_intro_check
  !set introcheck4=!values x-40 for x in $introcheck
  !set introcheck4=!listintersect $introcheck4 and 0,1,2,3,4,5
  !default seedrepeat=0
  !default introcheck4=1
  !if (4 isitemof $intro_check or ($introcheck4=1 and $seedrepeat=0) or\
      ($introcheck4>=1 and $seedcnt>=$introcheck4-1 and $seedlastcnt>=$seedrepeat+1))
    !set givehint=1
  !endif
  !bound intro_expow between 1 and 6 default $(list_expow[1])
  !bound intro_sepow between 1 and 6 default $(list_sepow[1])
  !bound intro_precw between 0 and 1 default $(list_precw[1])
  !if $qnum>1
    scorepower=$intro_sepow
  !else
    scorepower=1
  !endif
  freepower=$intro_expow
  precweight=$intro_precw
 !!for choice type
  !if 1 isitemof $introcheck
    qcmgood=1
  !endif
  !if 2 isitemof $introcheck
    penalty=1
  !endif
!else
!! non expert parametrage, every thing is deduced from the qcmlevel
  !default qcmpresent =!item $qcmlevel of 2,3,4,5,5,6,7,8,8
  !default qcmgood    =!item $qcmlevel of 1,1,1,1,0,0,0,0,0
  !default penalty    =!item $qcmlevel of 0,0,0,0,0,1,1,1,1
  !default presentgood=!item $qcmlevel of 1,1,1,1,1,1,0,0,0
  !default presentsol =!item $qcmlevel of 2,2,1,0,0,0,0,0,0
  !default presentfeed =!item $qcmlevel of 2,2,2,2,2,2,2,2,2
  !default givehint   =!item $qcmlevel of 1,1,1,1,1,0,0,0,0
  !default scorepower =!item $qcmlevel of 1,1,1,1.1,1.3,1.5,1.7,2,2.6
  !default freepower  =!item $qcmlevel of 1,1.5,2,2.5,3,3.5,4,4.5,5
  !default precweight =!item $qcmlevel of 0.9,0.8,0.7,0.55,0.4,0.25,0.1,0,0
!endif

!!qcmpower   =!item $qcmlevel of 1,1.1,1.2,1.3,1.5,2,2.5,3,4

!!! where is defined allchoices, except as a default 0 ?
!if $allchoices>0
  !default qcmpresent=8
!endif

!distribute item 0,0,0 into reply_cnt,score_should,score_got
!if $oef_test!=yes
  !if $nn>4
    loglist=$nn
  !else
    loglist=$shufflelist
  !endif
  wims_module_log=$cmd: $qnum exos on $loglist level=$qcmlevel
!endif