Page 1 of 1

mistitled ranking places (very very minor thing)

Posted: 27 October 2022, 14:07
by MrBeardy
A minor one, but when someone is next doing some code maintenance could they add a line to display 1st 2nd 3rd places etc instead of lazily adding "th" after the number. I'm currently 21th (sic) at next station london for example. Now it's not that important but it does grate on the eye and once you notice it, if you're like me you can't not see it anymore. This applies to the tables, and also the screen display after arena games, and also the player experience bars in standard game lobbies.

There's probably a bucket load of ways to code it, and it will depend on the language, but it just needs something like:

If <last digit> = 1 and <preceding digit> =/= 1 then append "st"
elseif <last digit> =2 and <preceding digit> =/= 1 then append "nd"
elseif <last digit> =3 and <preceding digit> =/= 1 then append "rd"
else append "th"
end if

Re: mistitled ranking places (very very minor thing)

Posted: 30 October 2022, 17:47
by TearsOfJupiter
I was about to post on the same thing, so I'm glad I did a little searching to find someone else who brought this up too. I'm currently "22th" in Equinox instead of "22nd." As you've said, it's very, very minor. But as you also said, it's difficult to ignore once you notice it. I agree it'd be nice to have changed, but I also realize that it should be a lower priority than getting out a new game or fixing a bug in a game.

Re: mistitled ranking places (very very minor thing)

Posted: 31 October 2022, 02:18
by KongKing123
This has already been reported years ago and has up until now only been partially fixed: https://boardgamearena.com/bug?id=17100