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.

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:points: :-D :eyeroll: :neutral: :nmr: :razz: :raging: :-) ;) :( :sick: :o :? 8-) :x :shock: :lol: :cry: :evil: :?: :smirk: :!:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is OFF
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Expand view Topic review: 250000 games (kind of)!

Re: 250000 games (kind of)!

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.

Re: 250000 games (kind of)!

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!

Re: 250000 games (kind of)!

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.

Re: 250000 games (kind of)!

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

Re: 250000 games (kind of)!

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

Re: 250000 games (kind of)!

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?

250000 games (kind of)!

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!

Top