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.
-
- Posts: 3150
- Joined: Mon Feb 11, 2019 6:28 am
- Location: Also Not Austalia
- Karma: 2123
- Contact:
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!
5
- Jamiet99uk
- Posts: 29686
- Joined: Sat Dec 30, 2017 11:42 pm
- Location: Durham, UK
- Karma: 18564
- 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?
1
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
2
Re: 250000 games (kind of)!
Does every site have its coding accessible through github? I didn’t know that was a thing
1
-
- Posts: 225
- Joined: Thu Jan 31, 2019 7:00 am
- Karma: 180
- 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.
2
-
- Posts: 225
- Joined: Thu Jan 31, 2019 7:00 am
- Karma: 180
- 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?
2
- Chaqa
- Bronze Donator
- Posts: 13583
- Joined: Fri Sep 29, 2017 7:33 pm
- Location: Allentown, PA, USA
- Karma: 8093
- 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.
1
Who is online
Users browsing this forum: No registered users and 140 guests