Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.59 KB

File metadata and controls

33 lines (20 loc) · 1.59 KB

codeworld-tasks

This library provides abstractions and functions for evaluating images created in the vector graphics domain CodeWorld. The interface is mostly used as part of a Haskell programming task type on our e-learning platform Autotool.

Documentation is available on GitHub Pages.

Running Tasks Offline

The package provides an executable test-task to replicate the grading process of Autotool in a terminal. This currently only works on Unix systems (OSX untested, but likely works), Microsoft Windows is not supported.

First, follow the usual Student workflow:

  1. Copy a task from examples/tasks into the CodeWorld editor.
  2. Work on the task until you think you've solved it.
  3. Paste your solution back into the template.

Now to simulate the grading process:

  1. Install Haskell Stack
  2. Optionally set an alias for stack run -w run.yaml
  3. Execute stack run -w run.yaml <task name> <[submission|solution]> (solution loads a sample solution)

The submission will either be rejected or accepted and feedback be printed directly into the console. Running the stack command may take a while the first time, since a lot of dependencies will have to be installed.

Sample solutions for all tasks are provided in examples/solutions for reference.

Single Page Application (SPA)

You can also try out my SPA to interact with the task components in a web editor.