src/model/Player.js
/**
     * we can calculate the player's reliability by the following formula:
     * 
     * <correct_answers>/(<correct_answers> + <wrong_answers>)
     */
we can calculate the player's reliability by the following formula.


we can calculate the player ' s reliability by the following formula .
print() {
        var reliability = this.correctQuestions / (this.correctQuestions + this.wrongQuestions);
        if (reliability > config.reliabilityThreshold) {
            console.log(chalk.green.bold('Player %s has a reliability score of %f, so next time few golden questions will be added.'), this.name, reliability.toFixed(2));
        } else {
            console.log(chalk.red.bold('Player %s has a reliability score of %f, so next time more golden questions will be added.'), this.name, reliability.toFixed(2));
        }
    }
print ( ) { var reliability = this . correctQuestions / ( this . correctQuestions + this . wrongQuestions ) ; if ( reliability > config . reliabilityThreshold ) { console . log ( chalk . green . bold ( 'Player %s has a reliability score of %f, so next time few golden questions will be added.' ) , this . name , reliability . toFixed ( 2 ) ) ; } else { console . log ( chalk . red . bold ( 'Player %s has a reliability score of %f, so next time more golden questions will be added.' ) , this . name , reliability . toFixed ( 2 ) ) ; } }
we can calculate the player's reliability by the following formula:
we can calculate the player ' s reliability by the following formula :