Digital Paint Discussion Board
Digital Paint Community => Other Stuff => Topic started by: jitspoe on June 09, 2007, 04:40:58 AM
-
... went into the global login system.
This includes C/C++, PHP, MySQL, and menu scripts. It also includes some of the server list, ban list, and cheat detection since it's all interelated. It does not include external libraries I compiled (such as gcrypt). Just code that I personally wrote.
Closest guess gets a low player ID number on the new database. Only 1 guess per person.
-
4928
-
23585
-
65536
( I still want 666 as my player id )
-
50000
(Still wanting ID #8)
-
1500
EDIT: When will the game end?
-
100,000
-
49,000
-
6,768
nice idea :)
you should do some more games like that, hehe
and I agree with cobo that you should announce a final date :)
-
7777
I want #7!!!!
-
Considering the average Microsoft programmer does 14k in a year, I'm betting in the GLS you have... 34002 in it.
*crosses fingers for #42*
-
34,001, lol.
Idk what number I want, but under 100
-
15,050
-
8000
-
Post removed
-
44.444
-
4999
-
70000
-
93,428
-
130,385
-
7
-
8500
-
6332
Remember to omit my GBL code from the count ;)
-
7341
-
Closest guess gets a low player ID number on the new database.
He's clever, notice how he said 'low'.. it's not relative to anything. 5,000 could be low to him... :P
-
Considering the live database will start at around #3000, low will mean something like 0<x<3000. ;)
-
"Come one down!! You're the next contestant on " Guess the number of lines of code!!""
/me plays the theme song to "The Price is Right" in the background.
-
19342
-
666
-
6500
-
2,500
Low cause they are interrelated.
-
Post removed
-
3456
-
So, when does this end?
This is the thread that never ends
It keeps going on and on my friend
Some people started posting
Not knowing what it was
...
:D
-
Jits tends to lock neverending threads. :<
Jerk. No one uses the RSS feed anyway!
-
666
LAWL
-
Jerk. No one uses the RSS feed anyway!
I use it :P
-
To win we have to guess the exact number?
smart way to dont give low id numbers to anyone;)
-
2
First one and the others.
-
I guess a lot depends on how you structure your programming, and if you are including comments in your calculation.
You can structure simple if statements to be different line lengths:
1) one line
if(argument)do this;
2) four lines
if(argument)
{
do this;
}
There are several other variations as well.
It's hard to omit comment count from a line count unless you have some way to remove comments.
intermixed sounds like a lot of checks and balances.
I'll throw it up there kind of high.
235,467
-
17
-
Game ends some time after I've finished coding the GLS, lol. I'll probably let it run for a week or two. As for my coding style, it's very compressed in PHP:
code;
code;
if (1 line) {
code;
}
code;
if (more) {
code;
code;
}
code;
C is a bit more padded:
code;
code;
if (1 line)
code;
code;
if (more)
{
code;
code;
}
code;
I don't really use comments that much, and they're often tagged onto the end of a line of code, not on their own. I will just be counting linefeeds, so whatever that count ends up being is what guesses will be compared against. And just to clarify, the prize is a sub-3000 ID number.
-
127,420
-
Post removed
-
500894 lines or limes ;D either way
#999
-
654321
I want #12
-
Oh, one last question. Are you going to just randomly clear the login database thing? Or will you give us a bit of warning? Then we have a chance of getting #3000 :D
I'll just stealthfully switch over to the live database. I don't want to set a specific time or anything, or everybody will be pounding the login server at once and it'll probably get shut down for email spamming. :P
-
Server shutdown for email spamming? Yeah right, like that could happen.
:P
-
Server shutdown for email spamming? Yeah right, like that could happen.
:P
Yeah it could if all 5000 something registered, registered again in one day.
-
</sarcasm>
-
I know that would be funny though.
-
I know that would be funny though.
Not really.
-
Well of course not if it happened to you but just seeing all the people fighting for numbers and then email being messed up because of it lol :P
-
Well, it would be a little ironic if the people had to wait like 3 months just because they were too anxious to register :P
-
130,000
-
550
-
3457
-
It's good to not use many comments. If you can't comeback later and understand what you were doing then you did a bad job at it.
-
Actually, it's good to use comments all the time.
-
Post removed
-
Haha! XD
-
500000
-
Actually, its good to use self-describing code, ie method names, variables etc. If you can read through your code and understand it without comments it means you have successfully added functionality in a non-complex manner. Comments are useful for those times when a complex implementation is necessary.
-
1 :P
-
And the winner is...
-
Who won?
-
come on tell us.....im dyin here
-
im gonna have to say: 1 long continuous line.
-
Ace already guessed that.
Hm, anybody know some good tools for counting lines? :)
-
the human brain
-
Ace already guessed that.
Hm, anybody know some good tools for counting lines? :)
Hmm, Make a PHP script that parses files and explodes each file by \n
-
Notepad++/VS + a calculator.
-
Shouldn't your IDE do that? :P
-
It can... for some of it. I have other things on linux, on the server, etc. I was just hoping for a lazy man's approach. Can vim count lines?
-
Eiii, the string was a grenade pin.
He's another I made up:
Two ghost are talking:
Ghost 1: "How did you die"?
Ghost 2: "I was going bunjee jumping by myself; but I'm the type of guy that is very cautious and can point out any mistakes. So, I set up the bungee rope and checked it for any flaws, and had a back-cable in case it didn't work. So I went over everything and tested it with a sand bad; it worked fine. So, last step, I put it around my neck and jumped!"
-
Huh?
-
How about a nice helpful shell script?
#! /bin/sh
# for each $1
# diff $1 $1.old |grep -c '> '
# next
# echo result
echo 3457
#// End of file
man grep:
-c, --count only print a count of matching lines per FILE
If you want a count of all the lines of a file you can:
cat filename |grep -c ''
-
play3r1 what the hell r u talkin about
-
Again I swear play3r1 you had something like this in another thread.
-
Notepad++/VS + a calculator.
Just open it up in Notepad++, go to the bottom, read the last line number, then add that to the other files' (there is more than one, right?) length.
-
ah, n++ ... good stuff it is.
-
Visual studio counts the lines too.
-
... and the winner is ....
-
the winner is me cuz i said so..:) :P
-
Ok, I'll start off with a vote tally:
ViciouZ - 4928
T3RR0R15T - 23585
KnacK - 65536
bitmate - 50000
Cobo - 1500
Zorchenhimer - 100,000
lekky - 49,000
b00nlander - 6,768
Olbaid - 7777
y00tz - 34002
Nitroboy - 34,001
Smokey - 15,050
MosheD - 8000
P!nk - 2,100
Matze - 44.444
IronFist - 4999
Spook - 70000
Y2J - 93,428
Razr - 130,385
magalhaes - 7
Eiii - 8500
XtremeBain - 6332
nightryder - 7341
MaDMaN - 19342
loial21 - 666
Playah - 6500
Termin8oR - 2,500
Fyre - 3456
TinMan - 666
Edgecrusher_CRO - 2
S8NSSON - 235,467
blaa - 17
UNiBoNGeR - 127,420
ashkenaz - 500894
Apocalypse - 654321
DaRkNeSS - 130,000
webhead - 550
Krizdo4 - 3457
atmays - 500000
Ace - 1
-
Just tell us who won!
-
He doesn't know he's trying to count the lines now.
-
Oh I see.
-
Counting them one by one... LOL.
-
Wow that will only take ooohh let me see..... a week! :P
-
All right, here's what's on the server side of things (mostly php, but some C for the UDP master and login server, couple hundred lines of SQL to generate the tables as well):
4426 lines
-
ViciouZ won, I think.
-
4426 lines on the server side only
-
darnit, that was close... I've lost. (probably)
-
Looks like I lost unless their is 649845 more.
-
jits we're waiting....
-
and I'm not gonna pay for a low ID when I know I still could win this :D :D
-
Here's what's in the client (Mostly C code, a few lines of menu script):
4120
-
Congratulations to Eiii
-
Is there any more code? I was expecting a final count when it was done, so don't congratulate me just yet. :P
-
There's still the game code.
-
Please be 645775 more.....
-
Please be 645775 more.....
Haha :P
Someone correct me if I'm wrong, but there will have to be 3500 lines or more left for the next peron (15000) to win. Odds are still pretty good for Eiii.
-
All right, enough teasing. 1495 is what I have for the game code. I think that's everything now.
-
If that is indeed all, then the total is 10041 lines of code. I think I still win, then. >_>
-
If that is indeed all, then the total is 10041 lines of code. I think I still win, then. >_>
Looks like it. Pick your number.
-
Eiii, pick 10041 =D
-
Already taken.
-
I think I'm missing whatever joke goes with 10041.
I was going to choose 3111, but I like 3 more. 3, please?
-
Congrats, Eiii, you're now the proud owner of ID number 3. I think 3111 would have fit you better, but whatever you want. :) See PM for details.
-
<3
-
Congratulations Eiii. :D
-
Dang it I was 644280 off lol congrats though eii.
-
congrats (lucky %#&*@#) lol jk
-
53,691
-
Post removed