The Optimization
While using softball.app to score a game, the scorer enters information about the result of plate appearance for players in the lineup. Each plate appearance will result in one of the following outcomes (Out, SAC, E, BB, 1B, 2B, 3B, HRi, HRo). These outcomes are mapped to a number between 0 and 4 representing the number bases the player was awarded for the result of their plate appearance:
| Result | Bases |
|---|---|
| Out, SAC*, E, K | 0 |
| 1B, BB* | 1 |
| 2B | 2 |
| 3B | 3 |
| HRi, HRo | 4 |
The simulation then runs simulated games on every possible lineup. During simulated games, the historical result data collected during scoring is used to determine probabilities of any given player getting any given number of bases as the result of a simulated plate appearance.
By default, one million games are simulated for each lineup. The number of runs scored in each simulated game is averaged and recorded. After all simulated games have completed for every possible lineup, the best scoring lineup and its corresponding estimated score are delivered to the user.

Things that are not accounted for in the simulation:
- Double/triple plays
- Stolen bases
- Players who were on base advancing more bases than the hitter
*We can debate about how walks or sacrifices should be counted. It probably depends on what flavor of the sport you are playing. IMHO sacrifices should be counted as outs in slowpitch softball and kickball, but not baseball or fastpitch. In any event, these mapping are configurable (or will be configurable soon). So you are welcome to impose your own philosophy.
Thomas
1543128481498This is pretty cool. I really like optimizing things.
Katy
1543171747982Yeah, this way people wont be passive aggressive with me when I put them near the bottom of the lineup…
Eduardo
1578603502604Is it possible to add your own lineup optimization algorithm?
Thomas
1579041863798Scout Oath On my honor I will do my best to do my duty to God and my country and to obey the Scout Law; to help other people at all times; to keep myself physically strong, mentally awake, and morally straight.
Scout Law
The Scout Law has 12 points. Each is a goal for every Scout. A Scout tries to live up to the Law every day. It is not always easy to do, but a Scout always tries.
A Scout is:
TRUSTWORTHY. Tell the truth and keep promises. People can depend on you.
LOYAL. Show that you care about your family, friends, Scout leaders, school, and country.
HELPFUL Volunteer to help others without expecting a reward.
FRIENDLY Be a friend to everyone, even people who are very different from you.
COURTEOUS Be polite to everyone and always use good manners.
KIND Treat others as you want to be treated. Never harm or kill any living thing without good reason.
OBEDIENT Follow the rules of your family, school, and pack. Obey the laws of your community and country.
CHEERFUL Look for the bright side of life. Cheerfully do tasks that come your way. Try to help others be happy.
THRIFTY Work to pay your own way. Try not to be wasteful. Use time, food, supplies, and natural resources wisely.
BRAVE Face difficult situations even when you feel afraid. Do what you think is right despite what others might be doing or saying.
CLEAN Keep your body and mind fit. Help keep your home and community clean.
REVERENT Be reverent toward God. Be faithful in your religious duties. Respect the beliefs of others.
Bob
1579062940887”>”>’>alert(String.fromCharCode(88,83,83)) “> “>
”>
On Mouse Over
ClickMe alert(1) CLICKME
Dr. FixId
1579125363910Testing Replys
Gus TT Showbiz
1579126133221Testing
Another Reply
1579197951203Here is the important thing. Testing a Reply to Dr. FixId
Thomas Brown
1579198915896Why is the scout law relevant here?
Thomas Brown
1579311243221Test 3rd level comment
Thomasium Bronium
1579203645887Level 2 - nested comment
Thomas Brown
1579311285291Test another second level comment to Hello!
Billy James
1579203152795Level 1 - nested comment
Hello!
1579308637491Here is a message! Nested level 1
Eugene Fitzherbert
1579203659464Hello!!!!!
Eugene Fitzherbert
1579203659536Hello!!!!!
Thomas Brown
1579311224158Test top level comment
Thomas Brown
1579312409815Test top level again