mistitled ranking places (very very minor thing)

Suggestions & ideas / Suggestions & idées
Post Reply
MrBeardy
Posts: 141
Joined: 28 January 2022, 11:23

mistitled ranking places (very very minor thing)

Post 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
User avatar
TearsOfJupiter
Posts: 16
Joined: 21 July 2022, 19:31

Re: mistitled ranking places (very very minor thing)

Post 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.
User avatar
KongKing123
Posts: 577
Joined: 04 April 2020, 19:43

Re: mistitled ranking places (very very minor thing)

Post by KongKing123 »

This has already been reported years ago and has up until now only been partially fixed: https://boardgamearena.com/bug?id=17100
Post Reply

Return to “Suggestions”