I made a map with exactly 5 stars which is hard to do. When I group my maps by difficulty, it appears in the 4 star section, which is wrong. I assumed it was because osu was rounding off the star rating but i upgraded the map to 5.1 stars and it still appears there.
My assumption is that the code that governs grouping by difficulty is this:
where it should be like this:
...
} else if (map.starrating >= 5) {
add map to group 5*
} else if ...
Translation:
if the map is greater than or equal to 5, add map to group 5*
The algorithm puts exact 5* maps to group 5* because it is equal to 5, where it satisfies our condition.
Screenshot:
My assumption is that the code that governs grouping by difficulty is this:
...
} else if (map.starrating > 5) {
add map to group 5*
} else if ...
Translation:
if the map is greater than 5, add map to group 5*
The algorithm just puts exact 5* maps to group 4* because it is not equal to 5
} else if (map.starrating > 5) {
add map to group 5*
} else if ...
Translation:
if the map is greater than 5, add map to group 5*
The algorithm just puts exact 5* maps to group 4* because it is not equal to 5
where it should be like this:
...
} else if (map.starrating >= 5) {
add map to group 5*
} else if ...
Translation:
if the map is greater than or equal to 5, add map to group 5*
The algorithm puts exact 5* maps to group 5* because it is equal to 5, where it satisfies our condition.
Screenshot: