This Kata includes dogfooding usage of javascript-ioc.
Usage:
node .\dist\app.js "7,0|10|0,10|10|10|1,8|0,9|10|8,2|0,10,10"
Output:
-------------------------------------------------------------------------------------
| 7 | - | | X | - | / | | X | | X | 1 | 8 | - | 9 | | X | 8 | / | - | / | X |
| ----| ----| ----| ----| ----| ----| ----| ----| ----| --------|
| 7 | 27 | 47 | 68 | 87 | 96 | 105 | 125 | 135 | 155 |
-------------------------------------------------------------------------------------
And here is the dependency graph...just because :)
{
"name": "BowlingGameController",
"dependencies": [
{
"name": "view",
"dependencies": []
},
{
"name": "gameProvider",
"dependencies": [
{
"name": "userInput",
"dependencies": []
},
{
"name": "parser",
"dependencies": []
},
{
"name": "scorer",
"dependencies": []
}
]
}
]
}