Skip to content

A repository to hold code for my project simulating golf matches between some of the greatest golfers of all time.

Notifications You must be signed in to change notification settings

davebodack/golfsimcode

Repository files navigation

golfsim

A repository for my project simulating golf matches between today's golfers and the greatest golfers of all time.

To run the project, you must have a C++ compiler. One of the text files included in this repo must be used as a command line argument right after calling the executable file generated by the compiler.

Details:
This project enables users to run several different types of competitions between golfers. The types of competition simulating results of golfers who are not active today rely on www.thealltimegreatestgolfers.com to give indications of the skill level of each historical golfer, which are held in the repository's text files. I am not responsible for any content from that website, all credit for those ratings belong to the website's creator, Glenn Sarkis. It's a great website he has, check it out.

The first option for simulation, stroke play, simulates what would happen if the greatest male golfers ever played their careers at the same time. The program gives an indication of how many major tournaments each golfer would win in the amount of years that the user specifies, and how each golfer would do in the FedEx Cup each year.
The second option, match play, simulates a user-specified number of match play tournaments between the greatest golfers ever.
The third option, one on one, allows the user to choose any two golfers in the text file they provide and have them face off in as many match play matches as they want.
The fourth option, International, simulates what would happen if the twelve greatest American golfers ever faced off against the twelve greatest European or international golfers ever in a Ryder Cup/President's Cup format.
The fifth option, Draft, allows the user(s) to pick teams consisting of 2-12 players from the text file and pit them against each other, in match play format.

The newest option, 2020 Players mode, is only accessible by passing the file "players2020.txt" as the command line argument after the executable file. It allows you to simulate the final three rounds of the 2020 Players after it was tragically cancelled.

There are plenty of opportunities for improvement with this code, some of which are quick fixes and others of which may be long-term goals. My ultimate goal is to employ HTML, CSS, and JavaScript, which I am very unfamiliar with right now, to have this running as a website through GitHub Pages. Another very important goal of mine is to use web scraping to ensure that the program will always have the most up-to-date ratings from thealltimegreatestgolfers.com or wherever the rankings are being fetched from. I also have many other ideas for additional modes and features that I hope to implement soon.

Feel free to tweak any aspect of this you'd like to see changed and create a pull request. I hope you find this at least somewhat interesting, even though I know it's not a definitive indication of what would happen in these scenarios in the slightest. Regardless, it's been a blast for me to make and I look forward to seeing what it can become and what it can help me learn!

About

A repository to hold code for my project simulating golf matches between some of the greatest golfers of all time.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages