Pascal Monte Carlo Simulation (Baseball) Peer Review Request lazarus / 8-Other ---------------------------------------------------------------------- MalabarFlash · 2013-06-05 16:41 This will be of interest to those interested in baseball, Monte Carlo simulations, and those desiring to affect paradigm shift.  "We've always done it that way" is not valid justification for maintaining the status quo. My project began in 1968 with a BASIC program to refute the claim that ordering a baseball lineup from best to worst was superior to the traditional method where the best hitter usually hits third or fourth. I rewrote my program in Turbo Pascal and then FPC and concluded that there is no lineup superior to one in which hitters bat in descending order according to on-base percentage.  A web search will reveal about as many computer simulations refuting my claim as supporting it.  Other than my own, I found only one site had the source code listed but I was unable to contact the authors.  Baseball teams at all levels still adhere to the traditional batting order. I would like the Lazarus community to “peer review” my assumptions, my source code and my conclusions.  If my work passes the scrutiny of some of the best Pascal programmers in the world, then I would like your help in communicating the results to the baseball world (Little League and school coaches, university baseball programs etc.)  For those of you who are Pascal experts, I challenge you to prove me wrong.  For those learning Pascal I challenge you to write a program to determine the lineup that will yield the greatest number of wins. The sections “For Programmers and Persons Interested in the Program's Source Code”, “Computer Source Code” and “Sample Output from PrintDebugData” will help explain how the program is structured. A copy of my source code and background information may be found at:  https://sites.google.com/site/winningbaseballstrategies/  or GordonKraus.com (Windows only)