250000 games (kind of)!

General discussions that don't fit in other forums can go here.
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.
Post Reply
Message
Author
BobMcBob
Posts: 3150
Joined: Mon Feb 11, 2019 6:28 am
Location: Also Not Austalia
Contact:

250000 games (kind of)!

#1 Post by BobMcBob » Sun Oct 06, 2019 4:14 am

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!

User avatar
Jamiet99uk
Posts: 30414
Joined: Sat Dec 30, 2017 11:42 pm
Location: Durham, UK
Contact:

Re: 250000 games (kind of)!

#2 Post by Jamiet99uk » 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?

User avatar
pyxxy
Gold Donator
Gold Donator
Posts: 1459
Joined: Tue Jul 02, 2019 5:40 pm
Contact:

Re: 250000 games (kind of)!

#3 Post by pyxxy » Sun Oct 06, 2019 5:25 pm

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

WyattS14
Bronze Donator
Bronze Donator
Posts: 161
Joined: Sat Sep 30, 2017 4:14 am
Contact:

Re: 250000 games (kind of)!

#4 Post by WyattS14 » Sun Oct 06, 2019 5:43 pm

Does every site have its coding accessible through github? I didn’t know that was a thing

Restitution
Posts: 225
Joined: Thu Jan 31, 2019 7:00 am
Contact:

Re: 250000 games (kind of)!

#5 Post by Restitution » Sun Oct 06, 2019 5:50 pm

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.

Restitution
Posts: 225
Joined: Thu Jan 31, 2019 7:00 am
Contact:

Re: 250000 games (kind of)!

#6 Post by Restitution » Sun Oct 06, 2019 5:50 pm

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!

User avatar
Chaqa
Bronze Donator
Bronze Donator
Posts: 13703
Joined: Fri Sep 29, 2017 7:33 pm
Location: Allentown, PA, USA
Contact:

Re: 250000 games (kind of)!

#7 Post by Chaqa » Sun Oct 06, 2019 7:43 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users