TEE TO GREEN by Garry Knott REGISTERED VERSION ---------------------------------------------------- Thankyou -------- On behalf of all PD program writers I thank you very much if you are going to, or have sent the £7.50 shareware fee. This provides incentive for me and others like me to take the large amount of time and trouble to write programs and put them out into public domain. I must also confess that I get a lot of satisfaction from making programs and love to see my stuff on the PD lists. Thankyou also to all PD houses who have accepted my work. From the beginning - Entering your golf course ---------------------------------------------- OK, first you need a golf course! Get yourself a card of the course with all of the details on it. If you play from the yellow tees then enter the information for yellows, or if you usually play the white tees, then put in that information. If you wish, you can make 2 courses. One for white tees and one for yellow. Say you play regularly at Pinner Hill then call one course Pinner Hill Yellows and one Pinner Hill Whites. It is entirely up to you. Sorry ladies, you can of course enter red tees as well. The one thing you cannot do is have two courses with the same name. Enter the name of the course first and press return. You will now see a blank card which is waiting for your input. Starting from hole 1, enter the Yards, Par, and Stroke Index. For the newer glofer, stroke index is a level of difficulty for each hole ranging from 1 to 18, where 1 is the hardest in theory to obtain par and 18 should be the easiest. Every golf card will have this on it and it can vary from different tee colours so please check that you are entering the correct one. Stroke index is used to work out where you get shots according to your handicap. So if you are handicapped at 7 then you will get an extra shot to help you obtain par at the hardest 7 holes. These 7 will be the ones with stroke index 1 to 7. Or if you are handicapped at 22, you will get 1 shot at every hole and an extra shot on the first 4 again. So for holes marked 1 to 4 on the card, you would get 2 shots. Stroke index is also used to work out points in stableford competitions. In a stableford competition, you play each hole for points. If you get par then you get 2 points for that hole. if you get bogie you get 1 point. If you get a birdie you get 3 points. Etc. I will give an example. Paul is a player with a handicap of 12. He is playing the 6th hole at Pinner which is a par 4 with a stroke index of 9. Paul gets a score of 5 at this hole. According to the handicap, he should get 1 shot at the hardest 12 holes. This is stroke index 9 so he gets one shot here. So Pauls 5 minus his one shot is a net 4. (net being overall score). This is now a net par so Paul will get 2 points. If you wish to see how many points you are scoring per round then it is important that you put in the correct stroke index. You must enter a figure for stroke index but the program does not mind if you put a 3 as the stroke index for every hole. I did not include a check for correct stroke index as it is possible some people will not have a clue as to what it is for and so enter any old number. It is also probable these same people will not be bothered about points scored and will just want to see how many shots they have taken. However, this can be changed if I receive some comments. Right, so now you've filled up the card. As you finish entering the details for the 18th hole, the program will fill in the totals boxes. Before you press Y to confirm I strongly suggest that you check the totals against the card you are reading from. If there is a mistake on the inputs then it will show up here. If you find a mistake press N to return to main menu. It is better to have to re-enter the data than to have a wrong course on file. If you make a mistake as you are going along then you can use backspace to backtrack through the card. Alternatively you can press escape at any time to jump straight out and back to the main menu. The backspace was introduced after many complaints from heavy handed friends who could not delete the 555 yard par 3 they had just entered, (see, I do listen to complaints). You will find that you can enter from 20 yards to 750 yards and from par 3 to par 7. I decided on these limits as you can never be 100 percent sure of what exists out there. I know there is a par 6 somewhere in the country and I know there is a 50 yard par 3 on a course near me. If someone wants to enter the card for the local pitch and put then it is now possible. If anyone wants bigger or smaller limits then you know who to ask. Entering the course details is for me the most boring part of this program. You will only have to do it once for every course you want on file and it doesn't take long. When making and testing this program I think I must have done it 200+ times so think yourself lucky! It is also the most improtant information you will put in as all calculations are based around this. Then again, your scores are important too so lets move on to them.... Entering scores --------------- Did you obtain this program to look at the card of the course ? No, you want some statistics so you are going to have to put in some scores. If you just loaded the program then there will be no course in memory so either put one in from NEW COURSE or load a saved one from LOAD A COURSE. LOAD A COURSE does not need explaining. Trust me. Click on ENTER A SCORE. You will be asked for the date that the round was played. If you played on the 25th of September 1994 then enter 25 for the day number, 9 or 09 for the month, (if you put a single figure for day or month then the program will automatically put a 0 in front of it), and 94 for the year number. This will then be shown as 25-09-94. Press Y if correct and you will be taken to the card of the course in memory. I know that some of you golfaholics out there will play more than 1 round on 1 day. I did once! So there will be no problem if you put the same date for more than 1 entry. In fact you can put the same date on every round if you wish. I did not want to put a limit on this. What could it be set at ? Three, Four, Five even. Just enter your score for each hole and press return. Simple as that. When you enter the last score then the totals and points will be filled in and you will be asked if it is correct. If it is, and I suggest you double check first, then press Y and the score will be saved and all statistics calculations will be carried out and saved. This can take up to 40 seconds so please be patient. If you make a mistake when entering your scores then using backspace will enable you to back-track through holes to correct your score. At any time you can press escape to return to the main menu. If you have played a stableford round or competition then it is possible that you may have some zeros on your card where you found you could not score and picked up the ball or just did not pencil in anything. No problem. Just enter a zero or press enter to skip the hole and the zero will be entered automatically. The program will recognise this when working out and saving statistics and will skip certain parts. For instance your best round could not possibly have a zero on it. Handicap calculations will not be done for a round with a zero anywhere. If you had a very bad day then you may have 17 zeros and 1 score. This is treated the same as if you had 1 zero so just enter away and let the program do the work. I would suggest you put a score wherever possible, even if no points were obtained, as this will give you a more accurate break-down of your play. The parameters for scores are from 2 under par to a maximum total score of 20. If you have at some time shot a 1 on a par 4 or a 2 on a par 5, (albatross), then what are you doing reading this, get out and join the pros. Of course, if you want different parameters then let me know. Veiwing a score --------------- You may at some time in the future want to look back on a score for one reason or another. All scores you enter will be kept intact even though they have been pulled apart and analysed by the number crunching part of this program. Go to the VIEW A SCORE screen and you will be presented with a list of dates. These are of course the dates that the rounds were played. The last round entered will be on the top of the list. I felt that you are more likely to look at a recent round rather than an old one. Click once on the date you wish to see and the round and card will be displayed. You will find that your handicap will appear as it was at the time of the round. Click again to return to the main menu. Statistics ---------- Probably the reason for obtaining this program in the first place was for the statistics. Once you press Y after entering your round then the program saves the round to disk and starts working out stats. They are as follows... Best score ---------- If this is the first round entered then it will automatically become your best ever score. For each score after this, it will be compared with this score and if it is better, it will become your new best score. If it is worse then this then no action will be taken. Any round with a zero for a hole will skip this part of the statistics. Worst score ----------- If this is the first round entered then it will automatically become your worst ever score. For each score after this, it will be compared with this score and if it is worse, it will become your new worst score. If it is better then this then no action will be taken. Any round with a zero for a hole will skip this part of the statistics. Best eclectic ------------- The best eclectic score is a round made up of your best ever scores hole by hole. For instance, if you played 18 rounds on 1 course and on each round you birdied a different hole, then your best eclectic round would show these 18 birdies as 1 whole round. Or if you always seem to play 1 hole badly but on 1 occasion got a par, then your best eclectic round would show this hole as par. This particular part of the program is my favorite as it shows what you are capable of if it all comes together one day. Funny how it never does. Worst eclectic -------------- See above and change best to worst. Will take worst holes and glue them together for 1 horrific round. This one scares the life out of me as it is also what you are capable of. Strange how I always score closer to this one than best eclectic. Course statistics ----------------- When you enter the Course statistics screen you will see the following statistics which have all been explained. Rounds Played. Obviously shows how many times you have played this course, (and entered the score into the program). All Holes Scored. This shows how many holes you have actually put down a score for. If you play a stableford game and do not write down a score for 2 holes then this stat will only increase by 16. Total Shots. Shows how many shots you have played for all time. Eagles. Shows how many eagles you have ever scored. Birdies. As above. Pars. As above. Bogeys. As above. (1 over par) D Bogeys.As above. (2 over par) Others. As above. (more than 2 over par) All time average. Every time you enter a full round, (no zeros), the all time average is calculated by adding together every full round total you have ever scored and dividing by the amount of full rounds entered. Last 2 average. Adds together the last 2 full rounds scored and divides by 2. Last 4 average. As above but change the 2s' to 4's Last 6 average. As above with 6s'. Last 8 average. As above with 8s'. Last 10 average. As above with 10s'. Best 18. Your best ever score from a full round. Worst 18. Your worst ever score from a full round. Best Possible Score. This is total of best eclectic score as explained earlier in the text file. Worst Possible Score. Same as above but for worst eclectic. Hole by Hole Statistics ----------------------- The hole by hole stats take up 6 screens. Each screen has 3 holes on it. Screen 1 has holes 1, 2 and 3, screen 2 has holes 4, 5 and 6 and so on. To go to the next screen press the left mouse button. Each hole has the following stats. Hole number \ Par >-- So you know where you are. Stroke index / Eagles. How many eagles you have scored on this hole. Birdies. " " birdies " " " " " " . Pars. " " pars " " " " " " . Bogeys. " " bogeys " " " " " " . (1 over par) D Bogeys. " " d.bogeys " " " " " . (2 over par) Others. How many times you have scored more than 2 over par on this hole. Best score. Best single score for this hole. Worst score. Worst single score for this hole. Last 2 average. Last 2 scores for this hole divided by 2.(not zeros). Last 4 average. As above with 4s'. Last 6 average. As above with 6s'. Last 8 average. As above with 8s'. Last 10 average. As above with 10s'. All time average. All scores ever shot for this hole divided by the amount of times this hole has been played. (not zeros). Scoring Graph ------------- Every time you score a full round, (no zeros), the total of that round is put into a graph file. When there are a minimum of 3 rounds in the graph file then you can see the graph. It's not a lot of use with 2 or less rounds. The graph plots lines between points on the screen. The points represent scores you have entered. The vertical bar represents the score you have shot and along the horizontal bar is the point at which that score was shot compared to other scores. The perfect graph would be sloping from top left to bottom right showing that you are an improving golfer. Unfortunately, most graphs will appear to be rather jagged. Well most meaning mine. The graph is a fairly simple way of showing stats and is a lot more pleasing to the eye than mere numbers. In future versions I intend to make a lot more use of graphs. For instance, the very next version should have a rolling average line overlaid onto the graph above. This will hopefully show a truer picture of your improvement or your worsening. See updates at the end of this file for news on more graphs. Handicap -------- This is what in my opinion helps to make golf a truly great game. The handicap. Theoretically, I could play a scratch player, (handicap 0), and have an equal chance of victory. Tee to Green will work your handicap out exactly as laid down by the Royal & Ancient guidelines. There are 2 settings for the handicap. Automatic. When in automatic, your handicap will be adjusted and saved by the program every time you enter a full round. Manual. When in manual, your handicap will never change unless you change it yourself. When you first load Tee to Green, your handicap will be set at 28. This is normal for all new golfers. The handicap system will be set to automatic. If you have a handicap already then you can set it now. I would suggest that this is the first thing you do before entering any scores. Then decide wether you want auto or manual and set that. It is all set out nicely so you should have no problems. Now if you have it set to automatic, you will have an updated handicap after every full round you enter. Now to explain how the handicaps are worked out..... There are 4 categorys of handicaps which are.. Category 1 Handicaps of 5 or less. Category 2 Handicaps of 6 to 12 Category 3 Handicaps of 13 to 20 Category 4 Handicaps of 21 to 28, (but this program does go higher) You actually have 2 handicaps. One is the exact handicap, ie 15.6, and the other is your playing handicap which is your exact handicap rounded to the nearest whole number. (0.5 is rounded upwards). So 15.6 = 16. If you shoot a score that is no more than 2 strokes above your playing handicap, then your exact handicap is not altered. If you shoot a score that is 3 or more strokes above your playing handicap, then your exact handicap is inceased by 0.1 . If you shoot a score that is below your playing handicap, then your exact handicap is reduced by an amount per stroke which is determined by your handicap category shown below... Category 1 - 0.1 per stroke Category 2 - 0.2 per stroke Category 3 - 0.3 per stroke Category 4 - 0.4 per stroke Now for 3 examples. You are now a golfer with a handicap of 15.6 so your playing handicap is 16. You are playing on a par 72 course. This means that you are expected to go round the course in 72 shots plus 16 for your handicap which makes an expected score of 88. On Monday you shoot 90. This is only 2 over your playing handicap so your exact handicap will not change. On Tuesday you shoot 95. This is 7 over your playing handicap so your exact handicap is put up by 0.1 . Your exact handicap is now 15.7 . Even if you shoot 50 over your playing handicap then your exact handicap still only rises by 0.1 . On Wednesday you have a good game and shoot 84. This is 4 below your playing handicap so your exact handicap will go down by 4 shots X 0.3, (category 3). This makes 1.2 . So now your exact handicap is 15.7 - 1.2 which is 14.5 . Your playing handicap is 15, (14.5 rounded up). If that seems too much to take in at once, then read it a few times. As you can see it is much easier to lower your handicap than to raise it. Please see updates at the end of this file to see what the Set handicap is all about! Printing -------- All statistics except the graph can be printed out. However, there is one small snag. To successfully print, you must first load your WorkBench. Then run Tee to Green by inserting this disk and double clicking on the Tee to Green Icon. What this has achieved is that when this program looks for a printer driver from prefs, it is your WorkBench prefs that it is looking at. All should then be well. It works fine on my system using this method and on all systems that it has been tried on. I tried my very best to get a prefs program that you could set up on this disk that was compatable with all Amiga formats. Unfortunately I failed in my efforts. If you have such a prefs program then PLEEEEEEASE let me in on it. On the printing screen it says that a prefs program was not included due to lack of space. This was a bit of a lie. I did not want to admit defeat. If one day I obtain something suitable then it will be included so that you can autoboot from this disk and will not have to load WorkBench every time you need to print. General ------- This part of the text file is for bits and pieces that do not fall into any other area or for anything that I have forgotten to add earlier. I would advise you to make a copy of this disk and to use only that copy. Please name the copy Tee to Green. If at any time your disk develops a fault or something is not in the correct place or you delete a file by accident, then the program will not work. If this happens and you cannot recover it then send the disk to me with a description of what the problem is and I will try my very best to fix it. If not, then I will try to recover as many scores and stats as I can. Problems will only arise if you fiddle with files. (OK, disks can become faulty too). This program has been well tested by various people for bugs. As far as I know, none have been seen for quite a while now. However, if you spot one then please could you let me know as much information as possible. I will get a fix out to you at top speed. WorkBench 1.3 users. If you have read the part about printing then you will know about loading your WorkBench first. If your WorkBench window is small, (top to bottom), then it is possible that when you boot Tee to Green that you may have the bottom part of the screen missing.To overcome this, try making your WorkBench screen full size before booting the program. To all, please leave the Tee to Green disk write enabled at all times, (make sure the small hole in the corner of the disk is covered). All disks sent out come directly from my own Amiga. I have several virus checkers and check my system regularly. Please do not think that it is impossible for this disk to be or become infected. The program writes to the disk often and if you have something nasty lurking around, then it will soon get on here. Check it regularly. This disk was checked for viruses just before it went into the jiffy bag and out to you. Credits ------- I owe a great deal of thanks to the people who tested this program and who gave me more headaches than the actual programming itself. These people are..... (in alphabetical order) John Cook Peter Flanagan Laurence Hewit Kevin Howard Dave Jones Peter Kay Cliff Ratchford And a special thankyou to Bev ("if you're not playing with that bloody computer then you're out playing bloody golf"), who has I must admit put up with a lot. Thanks for helping me with my spelling Bev. ENJOY ----- Garry Knott 82b Station Road Harrow Middlesex HA1 2RX ENGLAND Tee to Green updates. Version 1.2 --------------------------------- Updated score graph for a more eye pleasing colour and included a rolling average line, (in yellow). Now more graphs. Made graphs to view amount of pars/better, bogeys, double bogeys and others scored per round with an average line overlaid on each. Introduced a computer, (set), handicap. This starts at 28.0 at the begining of use and cannot be changed. This is so that if you have a fixed handicap by your club or society and you use it for your scores, then you can see what your real handicap is according to the computer. Change handicap screen is now much more user friendly due to you now being able to use keyboard Y/N as well as mouse click. This saves entering your score then going to the mouse for confirmation and back again. Printouts/hard copies of scores, (including best worst etc.), will now print out points too. These are shown as the same as when the round was played as the handicap at that time is saved along with the score. Printouts now have handicap printed underneath. (at time of round). Program can now be used mouse free ! All menus, stats etc. can be selected with the keyboard by pressing the letter which is highlighted. The mouse can still be used as normal if required. Fixed bug that put zeros into hole score averages if you scored a zero when more than ten records already present. Program should skip a particular hole if zero scored so as not to mess up averages. It will now! Version 1.3 ----------- Stableford competitions very often use either 7/8 or 3/4 of your handicap depending on the competion or club. It is now possible for you to set your handicap to 3/4 or 7/8 or keep it as normal. This will only affect the way you see your points on screen. Your real handicap will remain intact and will be re-calculated after every round, (if set to auto). Thanks to Mr A McEvoy for pointing out the 7/8, 3/4 handicap rule. Before, when entering the date of a round, the year parameters were set from 80 to 99, (1980-1999). I am sure my Amiga will still be working in the year 2000 and I hope that I'll still be playing golf by then too. So now any number from 00 to 99 can be entered for the year. Version 1.4 ----------- Version 1.4 has the same code as Version 1.3 but the difference is that this program was sent out to PD houses without any restrictions at all. This is the FULL version so I have to trust you to send a shareware fee, but then where can you find a more honest bunch than Golfers ???? -----------------------------END OF FILE-------------------------------------