private int selectBest ( double a , double b , double c ) { if ( a < b ) { if ( a < c ) return 0 ; else return 2 ; } else if ( b <= c ) { return 1 ; } else { return 2 ; } }
Given the 3 scores return the index of the best