Reply To: Maze task

PennController for IBEX Forums Support Maze task Reply To: Maze task


Hi Susanne,

The Maze controller, being designed for native Ibex, handles feedback the native-Ibex way: it flags a value for the next controller to check. The command failure is a PennController command that is only defined in the context of a .test command, the only test command on a Controller element being the standard printed.

The good news is that you can easily add a custom PennController test command. Add this to your script:

    this.test = {
        passed: function(){
            return !PennEngine.controllers.running.utils.valuesForNextElement ||

Then you can do this:

Template("training.csv", row =>

        newController("Maze", {s: row.Sentence, a: row.Distractor})
            .failure( newText("oops!").print() )