open-resources / scripts

Repo of converter scripts to and from MD files to various platform file formats.
3 stars 0 forks source link

Webwork Script - Add Server Section #24

Closed Parsa-Rajabi closed 3 years ago

Parsa-Rajabi commented 3 years ago

Implement the following into the script: Note: ensure the imports and the generate lines are kept as displayed

server: 
    imports: |
        import random
        import problem_bank_helpers as pbh
    generate: |
        data2 = pbh.create_data2()

        # define or load names/items/objects from server files

        # store phrases etc

        # Randomize Variables

        # store the variables in the dictionary "params"

        # define possible answers

        # Update the data object with a new dict
        data.update(data2)
    prepare: |
        pass
    parse: |
        pass
    grade: |
        pass
Parsa-Rajabi commented 3 years ago

completed via #23