Okay a quick history to a program idea. I have an 8 year old brother that plays little league baseball. He hits maybe 8th on his team of about 14 players that all hit. He ussually gets a good hit and gets on base but he never gets to score becuase the players behind him never hit him in. They have not gone past the 4th inning this year becuase they get a skunk rule applied (too many points down to catch up).
I would like to talk to his coach about the line up but would like to with some statistics behind my reasoning. I want to come up with the best batting line up based on the hitting record/out record of the previous games.
Any help would be appreciated. I have in my mind a way that I would like to set it up but don't feel that it is the best and I would like some help.
Just some quick facts about his league and the games.
---Every kid on the team gets to hit whether they are in the game or not. So x number of kids hit consecutavely.
---You can only score 6 runs an inning max.
---There are 3 outs to an inning.
I can compile the data in any method (for coding purposes), all I see needed is the players name/number, and what base they landed on.
If there is any more info needed or if this is unclear please let me know.
LeGo
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.