In September 1845, Alexander Cartwright wrote rules that differentiated baseball from cricket. Highlights were diamond-shaped infield, foul lines, three-strike rule, and he eliminated tagging runners out by hitting them with thrown baseballs. His codified rules evolved over time.
Although there is some debate, the first game played by his rules occurred either 1845 or 1846. A game on 19 June 1846 was well documented. In that game the New York Knickerbocker Baseball Club (Alexander Cartwright was a member) lost to the New York Nine by 23-1.
Alexander Cartwright moved to Hawaii. He was the fire chief of Honolulu from 1850 to 1863 (while Hawaii was a Monarchy).