Hey guys,

I have to do a project for my programming class, and I'm having some trouble.

I'm developing a baseball game, where each plays outcome is determined by the roll of a dice.

I've gotten as far as counting runs only for home runs, does anybody know how i could advance runners (1 base for a single, 2 for double, 3 for triple, and home for a home run), and have it keep a running total up on the scoreboard.

I can get the inning to end after 3 outs, but does anybody know how in the 2nd inning, runs will be listed as in the 2nd inning, not in the 1st.

Sorry if this is confusing, but it is very difficult to explain.


Thanks for your time.