|
Hall Of Famer
Join Date: Nov 2004
Location: In a house in Saint Cloud, Florida.
Posts: 6,378
|
I actually started some code on this last night. (No Tigers game to watch)
While in the baby state, here is what happens.
I created a new historical league that started in 1901. I ran it until 1-1-1902 and then did a CSV dump, then went into the online section and did a ONLINE league function, like I was saving for an online league. But, the only thing I saved was the players HTML. I then had the program move them to a new folder I created. Now, if you did not want to stop the simulation every year to do this, you can use the almanac and have it auto save this information every year. Then you could sim 10 years, run my program and then go to 1902, then 1903, etc. You can tell my AUHOF where the htmls are located.
So, now I have some starting code. You run the program, pick the league and then click start. It will read in the players file and check for all players that have retired status set in the CSV dump. It will show them in alpha order on the left and if you click on their name, it will bring up their HTML page on the right in a frame.
If you right click on a players name, you have three choices. NO HOF - NEXT YEAR - ADD TO HOF
Right now, the code will let you select NO HOF and then, next time you run the program, he is not listed there. This information is saved in a text file, so it is very simple to 'change your mind'.
Now, when you click next year, he will be added to the NEXT YEAR text file and it will keep track of how many years he has been 'next yeared'. I feel those are for the people that the sportswriters are undecided on.
And then of course, there is the ADD TO HOF. Just another text file that keeps track of who you have added. Now, the program will not add them automatically to the HOF, but will have the ability to create a text file that you can print out and then manually add them.
I do things different when I write a program. Since I am not sitting down and spending hour upon hour working on it, instead, I work 15 minutes here, an hour there, etc., but I like to publicly post on the status. I will create a new thread soon and move this to there. Two reasons I do this, one is to get you guys an update on it and give you the chance to help me write the program, suggest things, or say how that won't work or suggesting that I try this or try that.
Also, as I get older, my memory works like A-Rods bat does in the playoffs. This way I record my thoughts on how and why something is designed this way and I can go back and refresh my memory. Sometimes I even think of ideas while posting a message.
That has happened here. When you add someone to 'NEXT YEAR', have it update the player's history to show:
01011902 HOF eligibility carried over to next year.
(Or something to that effect)
That would look cool in the profile, showing that he was rejected three years in a row and then finally made it.
01011902 HOF eligibility carried over to next year.
01011903 HOF eligibility carried over to next year.
01011904 HOF eligibility carried over to next year.
01011905 Inducted to the Hall of Fame.
01011902 HOF eligibility carried over to next year.
01011903 HOF eligibility carried over to next year.
01011904 HOF eligibility carried over to next year.
01011905 No longer eligible for Hall of Fame.
I am curious now on how many players retire each year. My 1st year, I had only 4 retire. But that is just in 1902. I wonder what the average is, and what the most is. I need to run some tests to see what these numbers are over the years. As, if the numbers are not overwhelming, then I do not need to do a 'is he worthy check', as you can simply click and kick.
The benefit to this is that you are forced to look at every single player that retires. Most of the time, just a glance, but it will add more to you knowing your league and even discover oddities. You may see someone that had a CEI that you would have overlooked, or other interesting stuff.
|