public void add(int[] bowl) {
        assert(nkindfruits == bowl.length);
        if (nfruits == 0)
            nfruits = sum(bowl);
        assert(nfruits == sum(bowl));
        nround++;
        history.add(bowl);
        scoreHistory.add(dot(bowl, pref));
        assert(nround == history.size());
    }