-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunner.js
executable file
·31 lines (27 loc) · 903 Bytes
/
runner.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env node
var adventure = require( 'adventure' );
var shop = adventure( {
name: 'graphs-with-javascript',
title: 'Graphs with JavaScript',
bg: 'yellow',
fg: 'black'
} );
shop.add( 'Intro', function () {
return require( './exercises/ex0-intro/intro' );
} );
shop.add( 'Vertices and Edges', function () {
return require( './exercises/ex1-vertices-edges/vertices-edges.js' );
} );
shop.add( 'Graph Structure', function () {
return require( './exercises/ex2-graph-structure/graph-structure' );
} );
shop.add( 'Reading Problems', function () {
return require( './exercises/ex3-reading-problems/reading-problems' );
} );
//shop.add( 'Under Siege', function () {
// return require( './exercises/ex4-siege/siege' );
//} );
shop.add( 'Improve it!', function () {
return require( './exercises/feedback/feedback' );
} );
shop.execute( process.argv.slice( 2 ) );