#!/usr/bin/env node

var adventure = require('adventure');
var shop = adventure('javascript-adventure');
var path = require('path');

var problems = [ '01_Hello_World', '02_Functions' ];
problems.forEach(function (prob) {
    shop.add(prob.replace(/_/g, ' '), function () { 
        return require(path.join(__dirname, '/problems/' + prob.toLowerCase()))});
});

shop.execute(process.argv.slice(2));

#!/usr/bin/env node

var adventure = require('adventure');
var shop = adventure('javascript-adventure');
var path = require('path');

// Specify all the problems here
var problems = [ '01_Hello_World', '02_Functions' ];
problems.forEach(function (prob) {
    shop.add(prob.replace(/_/g, ' '), function () { 
        return require(path.join(__dirname, '/problems/' + prob.toLowerCase()))});
});

shop.execute(process.argv.slice(2));

Update text format to UNIX
Update text format to UNIX
