Abner Doubleday, a Union General during the Civil War, is generally credited with inventing the game in 1839, and therefore establishing the first set of rules. (There is substantial evidence that would debunk Doubleday's involvement in the evolution of the game1.) The rules have been revised, improved and clarified many, many times since then.
1 Wikipedia.org, "Abner Doubleday"
Go on line to MLB.com and search for rules, or google baseball rules.
Max Rules was created in 2005.
The Mob Rules was created in 1981.
There Are Rules was created on 2011-01-25.
Cambridge rules was created in 1848.
Against the Rules was created in 2009.
Hart's Rules was created in 1893.
Defying the Rules was created in 1000.
The Rules was created on 1995-02-14.
The Rules of Survival was created in 2006.
Brooklyn Rules was created in 2007.
No Rules - film - was created in 2005.