## CodeRunner Documentation (V3.2.1)

### 2.3 Installing CodeRunner from scratch

CodeRunner requires two separate plug-ins, one for the question type and one for the specialised adaptive behaviour. The plug-ins are in two different github repositories: github.com/trampgeek/moodle-qbehaviour_adaptive_adapted_for_coderunner and github.com/trampgeek/moodle-qtype_coderunner. Install the two plugs using one of the following two methods.

EITHER:

1. Download the zip file of the required branch from the coderunner github repository unzip it into the directory moodle/question/type and change the name of the newly-created directory from moodle-qtype_coderunner-<branchname> to just coderunner. Similarly download the zip file of the required question behaviour from the behaviour github repository, unzip it into the directory moodle/question/behaviour and change the newly-created directory name to adaptive_adapted_for_coderunner. OR

2. Get the code using git by running the following commands in the top level folder of your Moodle install:

git clone git://github.com/trampgeek/moodle-qtype_coderunner.git question/type/coderunner

WARNING: at least a couple of users have broken CodeRunner by duplicating the prototype questions in the System/CR_PROTOTYPES category. Do not touch those special questions until you have read this entire manual and are familiar with the inner workings of CodeRunner. Even then, you should proceed with caution. These prototypes are not for normal use - they are akin to base classes in a prototypal inheritance system like JavaScript's. If you duplicate a prototype question the question type will become unusable, as CodeRunner doesn't know which version of the prototype to use.