Changes between Version 9 and Version 10 of BoltTutorialExercises


Ignore:
Timestamp:
Feb 6, 2008, 4:49:32 PM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BoltTutorialExercises

    v9 v10  
    8383}}}
    8484
     85This exercise is a set of true/false questions; the 0/1 arguments indicate which are true.
     86
     87Edit conifer.php to contain:
     88{{{
     89function both_lessons() {
     90    return sequence(
     91        name('both lessons'),
     92        lesson(
     93            name('Introduction'),
     94            filename('conifer_intro.php')
     95        ),
     96        lesson(
     97            name('Conifers and deciduous trees'),
     98            filename('conifer_decid.php')
     99        )
     100    );
     101}
     102
     103function second_lesson() {
     104    return lesson(
     105        name('Conifers and deciduous trees'),
     106        filename('conifer_decid.php')
     107    ); 
     108}
     109
     110function exercises() {
     111    return exercise_set(
     112        name('exercise set 1'),
     113        number(2),
     114        exercise(
     115            filename('conifer_ex1.php')
     116        ),
     117        exercise(
     118            filename('conifer_ex2.php')
     119        ),
     120        repeat(.3, both_lessons(), REVIEW),
     121        repeat(.7, second_lesson(), REVIEW|REPEAT),
     122        repeat(1, null, REPEAT|NEXT),
     123        refresh(array(7, 14, 28))
     124    );
     125}
     126
     127return sequence(
     128    name('course'),
     129    both_lessons(),
     130    exercises()
     131);
     132
     133}}}
     134
     135
    85136The course structure is now:
    86137