Siliconhell Forum  

Go Back   Siliconhell Forum > General Chit Chat > Stuff > Gadgets and the Internet

Notices

Gadgets and the Internet Want to talk about gadgets, software, neat widgets or cool stuff on the web? Then post it in here.

Reply
 
Thread Tools Display Modes
Old 20-07-2006, 03:34 PM   #1 (permalink)
Junior Poster
 
ThundeRumble's Avatar
 

Join Date: Jun 2006
Location: Italy
Posts: 27
Credits: 188
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ThundeRumble
Activity Longevity
0/20 9/20
Today Posts
sssssss27
Default Re: SILICON HELL GRAND PRIX

Quote:
Originally Posted by TheGuru
Quote:
Originally Posted by ThundeRumble
Hi, mates...

For my amusement (yes... I *LOVE* programming) I've made a nice program...

It scans all the highscores tables, for all the games here, and - just like F1 Grand Prix - it gives 10 point at trophy owner, 9 at second, 8 at third... and so on till 1 to the tenth. (yes... it scans usernames too... )
This is a great idea, nice one ;-)

As Benny has already said he is also working a simliar idea which is a PHP script that lists the Top 10 highest scores ever for each game. consider it a Hall of Fame It looks great as it matches the Forum layout.

Perhaps the two could be combined in someway :?:
of course, having access to the database, via a resident .php, it becomes a matter of a couple of "SELECT ... WHERE...".

High scores tables - as I think - are separated in the database, so the listing of ten best players for each game becomes very easy...

I've used EXCEL, instead... a little bit harder... ;-)

-----------------
ThundeRumble
-----------------
View ThundeRumble's Photo Album   Reply With Quote
Old 20-07-2006, 04:00 PM   #2 (permalink)
Moderator
My Mood:
 
TheGuru's Avatar
 

Join Date: Feb 2004
Location: Liverpool UK
Posts: 2,414
Credits: 10,515
Donation Level 2 
Nominated 8 Times in 8 Posts
TOTW/F/M Award(s): 0
TheGuru is a jewel in the roughTheGuru is a jewel in the roughTheGuru is a jewel in the rough
Activity Longevity
2/20 18/20
Today Posts
sssss2414
Default Re: SILICON HELL GRAND PRIX

Quote:
Originally Posted by ThundeRumble
of course, having access to the database, via a resident .php, it becomes a matter of a couple of "SELECT ... WHERE...".

High scores tables - as I think - are separated in the database, so the listing of ten best players for each game becomes very easy...

I've used EXCEL, instead... a little bit harder... ;-)
The data is in one DB ;-)

TheGuru
View TheGuru's Photo Album   Reply With Quote
Old 20-07-2006, 09:19 PM   #3 (permalink)
Super Duper Poster
 
Benny's Avatar
 

Join Date: Mar 2004
Location: UK
Posts: 604
Credits: 1,354
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Benny is an unknown quantity at this point
Activity Longevity
1/20 17/20
Today Posts
ssssss604
Default

One database... with many tables. The highscore data is only in one table, but other tables are required to lookup the game name and whether the best score is the highest or the lowest... I think you were both aluding to this

It's a sligtly more difficult problem we're tackling, cos it has to handle multiple sets of highscores for whenever they're reset. Using the same dataset I've also been thinking about an all-time player ranking system, which is more the kind of thing ThundeRumble has done. Two of the ideas I had some time ago are quoted below:

Quote:
Originally Posted by Somewhere else Benny
Keep a count of how many 1st positions each player has.
Calculate a skill ranking for each player based on various statistics concerning their scores, positions, dates, etc. (This is starting to sound like a project I would give to a student! )
View Benny's Photo Album   Reply With Quote
Old 20-07-2006, 10:12 PM   #4 (permalink)
Junior Poster
 
ThundeRumble's Avatar
 

Join Date: Jun 2006
Location: Italy
Posts: 27
Credits: 188
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ThundeRumble
Activity Longevity
0/20 9/20
Today Posts
sssssss27
Default

Quote:
Originally Posted by Benny
One database... with many tables. The highscore data is only in one table, but other tables are required to lookup the game name and whether the best score is the highest or the lowest... I think you were both aluding to this

It's a sligtly more difficult problem we're tackling, cos it has to handle multiple sets of highscores for whenever they're reset. Using the same dataset I've also been thinking about an all-time player ranking system, which is more the kind of thing ThundeRumble has done. Two of the ideas I had some time ago are quoted below:

Quote:
Originally Posted by Somewhere else Benny
Keep a count of how many 1st positions each player has.
Calculate a skill ranking for each player based on various statistics concerning their scores, positions, dates, etc. (This is starting to sound like a project I would give to a student! )
One DB, many tables, it's not a problem, some where there is the game's list... with this you address the highscore table, you'll look the first ten positions, select names of record's owners, and that's all folks.

I'm very proud of my solution, because I've done it for reading things in another forum, and I was able to reuse procedures in few minutes to make this little thing.

BTW here's how:

dload the games pages (the source) and get the names used for link to highscores' tables.

then dload every highscore table, looks for keywords in html and locate what I want in the page...

so I can locate the first 10 occurrences of names in every higscores' tables
;-) ;-)

-----------------
ThundeRumble
-----------------
View ThundeRumble's Photo Album   Reply With Quote
Sponsored links
Old 21-07-2006, 12:46 AM   #5 (permalink)
Super Duper Poster
 
Benny's Avatar
 

Join Date: Mar 2004
Location: UK
Posts: 604
Credits: 1,354
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Benny is an unknown quantity at this point
Activity Longevity
1/20 17/20
Today Posts
ssssss604
Default

Quote:
Originally Posted by ThundeRumble
One DB, many tables, it's not a problem, some where there is the game's list... with this you address the highscore table, you'll look the first ten positions, select names of record's owners, and that's all folks.
Well it was not quite that easy... scores are entered for every player as they happen and for every game, there's no concept of "first ten positions" either for score size or for game. Not a difficult problem at all, but not as trivial as you suggest.

Quote:
Originally Posted by ThundeRumble
I'm very proud of my solution, because I've done it for reading things in another forum, and I was able to reuse procedures in few minutes to make this little thing.
So you should be

Parsing html churned out by someone elses forum software isn't a trivial task, especially when it's split over several pages. Was your program getting the data via http requests using your log-in details or were you saving the html source code manually first?

What do you think about my ranking ideas? My motivation is to produce a ranking scheme that benefits everyone who has set a score rather than just the 1st place trophy holders. I thought of weighting it using the following:
  • - Scores that have remained unbeaten the longest
    - Scores that have beaten others by the greatest percentage
    - Number of times a game has been played
    - Length of time a game has been available
Anyone got any other ideas?
View Benny's Photo Album   Reply With Quote
Old 21-07-2006, 05:57 PM   #6 (permalink)
Junior Poster
 
ThundeRumble's Avatar
 

Join Date: Jun 2006
Location: Italy
Posts: 27
Credits: 188
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
ThundeRumble
Activity Longevity
0/20 9/20
Today Posts
sssssss27
Default

Quote:
Originally Posted by Benny
Parsing html churned out by someone elses forum software isn't a trivial task, especially when it's split over several pages. Was your program getting the data via http requests using your log-in details or were you saving the html source code manually first?
VBA saves automatically html files in txt on hd, then second part that scans txt to find keywords, login datas, lucky, are stored in cache/cookies so EXCEL too gets access, but - anyway - it's not a problem since pages that I need are available, in reading mode, also for anonymous...

-----------------
ThundeRumble
-----------------
View ThundeRumble's Photo Album   Reply With Quote
Sponsored links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT. The time now is 07:22 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Copyright ©2000-2008Ad Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23