250000 games (kind of)!
Forum rules
Feel free to discuss any topics here. Please use the Politics sub-forum for political conversations. While most topics will be allowed please be sure to be respectful and follow our normal site rules at http://www.webdiplomacy.net/rules.php.
Feel free to discuss any topics here. Please use the Politics sub-forum for political conversations. While most topics will be allowed please be sure to be respectful and follow our normal site rules at http://www.webdiplomacy.net/rules.php.
250000 games (kind of)!
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!
- Jamiet99uk
- Posts: 33938
- Joined: Sat Dec 30, 2017 11:42 pm
- Location: Durham, UK
- Contact:
Re: 250000 games (kind of)!
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)!
Yup, looks like it. Typical database unique numbering stuff.Jamiet99uk wrote: ↑Sun Oct 06, 2019 3:51 pmSo, 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?
https://github.com/kestasjk/webDiplomac ... e.php#L347
Re: 250000 games (kind of)!
Does every site have its coding accessible through github? I didn’t know that was a thing
-
- Posts: 225
- Joined: Thu Jan 31, 2019 7:00 am
- Contact:
Re: 250000 games (kind of)!
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.
-
- Posts: 225
- Joined: Thu Jan 31, 2019 7:00 am
- Contact:
Re: 250000 games (kind of)!
It's certainly the best way to do it!Jamiet99uk wrote: ↑Sun Oct 06, 2019 3:51 pmSo, 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?
- Chaqa
- Bronze Donator
- Posts: 14306
- Joined: Fri Sep 29, 2017 7:33 pm
- Location: Allentown, PA, USA
- Contact:
Re: 250000 games (kind of)!
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.
Who is online
Users browsing this forum: No registered users