private int[] computeScores()
    {
        scores = new int[players.length];
        
        for (int i = 0; i < players.length; ++i) {
            int score  = 0;
            int[] pref = preference[i];

            for (int r = 0; r <= 1; r++) {
                int[] bowl = bowlOfPlayer[r][i];
                for (int k = 0; k != bowl.length; ++k)
                    score += pref[k] * bowl[k];
            }
            scores[i] = score;
        }
        
        return scores;
    }