Premium accounts
are only £9.99 - Upgrade now

Funkysnooker Break Analyser! [beta v1.0]

Viewing forum thread.
Back to Game Queries.
Back to Forum List.

Pages:
1
2
Deleted User
(IP Logged)
05:35 Tue 30 Jun 09 (BST)  [Link]  
lfc_lad productions in association with funkyleagues

would like to present

A break analyser.

------------------------------

The break analyser wil analyse your stats. All you do is copy and paste your events page into the form, The analyser will work out the average and total amount of all the breaks added.

Just paste like so:

20:54 Sun 28/06/09
Arcade - lfc_lad got a break of 55
20:21 Sun 28/06/09
Arcade - lfc_lad got a break of 58
20:17 Sun 28/06/09
Arcade - lfc_lad got a break of 50
20:12 Sun 28/06/09
Arcade - lfc_lad got a break of 64

------------------------------
PLEASE NOTE the break analyser is in beta (which means its still in progress, There may be errors, And there will be future developments on it.

As of now, It counts carom breaks as a break, but doesnt add them into the total score (also puts your average down). I suggest just edit the carom and tourny events out for now. This will be fixed so that they dont count. But when i have time this week.

Also, It cannot determine regular, arcade or original as seperate breaks. This is a feature that will be implemented very very soon.

Like said above. Its still under development.

------------------------------

http://funkyleagues.com/average.php

------------------------------

ENJOY! feedback appreciated!

Deleted User
(IP Logged)
05:43 Tue 30 Jun 09 (BST)  [Link]  
Hi lfc_lad,Your analysed results are below:

Total Amount of all breaks: 8462
There are 137 breaks
Your average break is 61.7664233577

Obviously it only calculates the breaks you post in. I copied all my 6 pages, and removed all the tournys and carom runs. I think the events only shows the last 3 months?

Also forgot to mention, if you post page 1 and then copy page 2, Make sure you post it onto a new line in the text box provided.


Edited at 10:45 Tue 30/06/09 (BST)
Deleted User
(IP Logged)
05:46 Tue 30 Jun 09 (BST)  [Link]  
it didnt work for me
Deleted User
(IP Logged)
05:49 Tue 30 Jun 09 (BST)  [Link]  
dobbzee said:
it didnt work for me


Why not?
What it do?
Any error messages?
You post it correctly?

Using IE?
Try firefox

Hi dobbzee,Your analysed results are below:
Total Amount of all breaks: 1544
There are 24 breaks
Your average break is 64.3333333333

Page 1 only

Deleted User
(IP Logged)
05:54 Tue 30 Jun 09 (BST)  [Link]  
ohh, ty mate
Deleted User
(IP Logged)
07:26 Tue 30 Jun 09 (BST)  [Link]  
You could of said why it didnt work, So i have an idea where there is bugs etc so that they can be fixed.

dansta
dansta
Posts: 176
08:25 Tue 30 Jun 09 (BST)  [Link]  
basically all the 'break analyser' does is anything a simple calculator can do. soooo over engineered!.
iamtheworst
iamtheworst
Posts: 2,677
08:37 Tue 30 Jun 09 (BST)  [Link]  
For a simple calculator to do this, you'd need to sit there for what could be hours putting in each break! This is a lot quicker, and alot better than a simple calculator!
Deleted User
(IP Logged)
09:28 Tue 30 Jun 09 (BST)  [Link]  
dansta said:
basically all the 'break analyser' does is anything a simple calculator can do. soooo over engineered!.


If only you knew the complicated coding behind such a 'simple' thing.

Feel free to input every break into a calculator while remembering how many in total you have added and then dividing that total by the number of breaks added.

I agree for a small amount, it is easier to use a calculator. But its only just the basic's there is more features soon to be added.

Just watch this space
blutch
blutch
Posts: 1,089
11:21 Tue 30 Jun 09 (BST)  [Link]  
Good work!

I'll list below my improvement ideas.

I find it a bit cumbersome to use, because we need to copy/paste manually the data, which becomes a long process when we want to use the whole Events log and not only the first page.
You could have the user name as only input, and fetch the data from the user's profile.

It would be very nice to build graphs showing the your breaks' history as well as the average's.
There are existing, powerful libraries to build flash charts easily from php, for example http://www.fusioncharts.com/free/
Deleted User
(IP Logged)
11:55 Tue 30 Jun 09 (BST)  [Link]  
It is akward to use, as you do have to edit it as you posted above, which was the problem dobbzee had, he didn't read your post on how to do it.
Deleted User
(IP Logged)
12:52 Tue 30 Jun 09 (BST)  [Link]  
It does need many improvements i agree. The main one being, to discard any information that isnt a break. For example a carom run or tournament. but this is the first version of it. So is very basic in what it does at the moment.

It will be a few weeks probably before its doing everything i intend it to do. Like said above watch this space

Appreciate the feedback, Was looking to see if people thought it was a nice idea or is it just pointless?

-----

To give you a insight into how this simple process works, i will give a basic outline. Remember a computer has to be told exactly what to do and must be very specific. Computers are not humans .

1. The data inputted will save to a file and store it on the server so that it can be read.

2. When you copy and paste your events, It puts the date and time of the event on a line and the break on the line below. I need to make sure the date is removed. The process searches the data file and deletes any line that contains a slash. Resulting in all the date lines being removed.

3. It then counts how many lines of data there is. (To determine how many breaks)

4. The server cannot just find all numbers and add them together. It needs to be told where the number is. So the code tells it that the 'break' is after the words 'got break of'.

5. It then does all the calculations to display the analysed results.

6. To make sure there is no server overload. It deletes the file once done.

Simples
Deleted User
(IP Logged)
12:56 Tue 30 Jun 09 (BST)  [Link]  
Oh no question its hard, would love to be able to do that, hope to learn it one day!

And good luck on doing it all!
Deleted User
(IP Logged)
15:03 Tue 30 Jun 09 (BST)  [Link]  
Lol, i am still learning mate. Google has been my best friend the last two days.
blutch
blutch
Posts: 1,089
15:37 Tue 30 Jun 09 (BST)  [Link]  
lfc_lad said:
1. The data inputted will save to a file and store it on the server so that it can be read.

Why do you need to store it to a file? You could do all the processing in the memory as well, while saving system resources and having better performances.

The rest makes sense.
Deleted User
(IP Logged)
16:56 Tue 30 Jun 09 (BST)  [Link]  
Originallly i had it to read the data without saving and process the data etc....

But, i kept getting a bug. The data wouldnt clear itself so it wouldn't recalculate any new data unless you cleared the cache. So i then tried saving the data and processing it. When the file gets deleted at the end of the process it wipes all the data. Meaning new data can be added and the process will work.

I know there is probably a way to fix the bug i had but the alternate solution works better i think.


Plus, i aint no expert
dansta
dansta
Posts: 176
17:52 Tue 30 Jun 09 (BST)  [Link]  
you lot take funky snooker to seriously! this is over over engineering taken to a whole new meaning. all it does is calculate the 'mean average' this wouldn't take 1 min to do with a calculator........... hang on i have one on my phone, would you look at that!

and who cares what the average break is anyway! all i care about is getting half centuries and cents

dont waste anymore of your time and code something which people will actually use. after all funkysnooker is all about having fun
Deleted User
(IP Logged)
18:47 Tue 30 Jun 09 (BST)  [Link]  
Maybe he enjoys doing it.
Deleted User
(IP Logged)
18:51 Tue 30 Jun 09 (BST)  [Link]  
dansta said:
you lot take funky snooker to seriously! this is over over engineering taken to a whole new meaning. all it does is calculate the 'mean average' this wouldn't take 1 min to do with a calculator........... hang on i have one on my phone, would you look at that!

and who cares what the average break is anyway! all i care about is getting half centuries and cents

dont waste anymore of your time and code something which people will actually use. after all funkysnooker is all about having fun


Posted Image

Nice work Phil, these little things are fun little additions for a lot of people.

Why people feel the need to post stuff like the above I dont know, its an option, you dont have to use it!
Deleted User
(IP Logged)
18:53 Tue 30 Jun 09 (BST)  [Link]  
^^ lol
Pages:
1
2
Unable to post
Reason:You must log in before you can post

Funkysnooker Break Analyser! [beta v1.0]

Back to Top of this Page
Back to Game Queries.
Back to Forum List.