Page 1 of 1

250000 games (kind of)!

Posted: Sun Oct 06, 2019 4:14 am
by BobMcBob
I just noticed (yes, I'm probably a little slow), but the site has recently reached 250000 games! Or should I say, the number of games created has exceeded 250000. A fair number of those games never actually started. There's still only 93043 finished games. Congratulations to LeWarz for creating the 250000th game!

Re: 250000 games (kind of)!

Posted: Sun Oct 06, 2019 3:51 pm
by Jamiet99uk
So, each time a game is created, it gets a unique number, and if it then fails to get enough players to start, that number is still used up?

Re: 250000 games (kind of)!

Posted: Sun Oct 06, 2019 5:25 pm
by pyxxy
Jamiet99uk wrote:
Sun Oct 06, 2019 3:51 pm
So, each time a game is created, it gets a unique number, and if it then fails to get enough players to start, that number is still used up?
Yup, looks like it. Typical database unique numbering stuff.
https://github.com/kestasjk/webDiplomac ... e.php#L347

Re: 250000 games (kind of)!

Posted: Sun Oct 06, 2019 5:43 pm
by WyattS14
Does every site have its coding accessible through github? I didn’t know that was a thing

Re: 250000 games (kind of)!

Posted: Sun Oct 06, 2019 5:50 pm
by Restitution
WyattS14 wrote:
Sun Oct 06, 2019 5:43 pm
Does every site have its coding accessible through github? I didn’t know that was a thing
Not every site. Just the best ones. It's called "Open Source".

A lot of proprietary code is also on GitHub, but on private repositories and not accessible to the public.

Re: 250000 games (kind of)!

Posted: Sun Oct 06, 2019 5:50 pm
by Restitution
Jamiet99uk wrote:
Sun Oct 06, 2019 3:51 pm
So, each time a game is created, it gets a unique number, and if it then fails to get enough players to start, that number is still used up?
It's certainly the best way to do it!

Re: 250000 games (kind of)!

Posted: Sun Oct 06, 2019 7:43 pm
by Chaqa
Game IDs are likely a sequence. Once those numbers are pulled, they don't replenish unless there's some outside logic in place (which can be dangerous and cause issues). Pretty standard.