"use strict";

class Game {
    rollAll(framesListWithScores) {
        var framesArray = JSON.parse(framesListWithScores);
        return Array.isArray(framesArray);
    }

    roll(pins) {
        return true;
    }

    score() {
        return 0;
    }
}

module.exports = Game;
"use strict";

class Game {
    constructor() {
        this.totalPins = 0;
    }
    rollAll(framesListWithScores) {
        var framesArray = JSON.parse(framesListWithScores);
        return Array.isArray(framesArray);
    }

    roll(pins) {
        this.totalPins += pins;
        return true;
    }

    score() {
        return this.totalPins;
    }
}

module.exports = Game;
Test in which we expect the score to be that of the roll if we have only rolled once is passing
Test in which we expect the score to be that of the roll if we have only rolled once is passing
