|
-
May 30th, 2000, 06:43 AM
#1
Thread Starter
New Member
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.
-
May 30th, 2000, 08:40 AM
#2
Frenzied Member
Ahhhh Sports...
I always found sports games hard to make, well...not hard, just time consuming. So you want the dice to roll and if it is a 1 you will get a single and 2 is a double etc? I just want to know how you want the runners to advance.
-
May 30th, 2000, 09:53 AM
#3
Thread Starter
New Member
Well actually it's two dice, the combination of the two added together will come up with a play.
2,11 = home run
3 = double
4,10 = single
5-9 = out
12 = triple
just in case you were interested.
What i have going is a diamond, with little white bases, I plan on having if there's nobody on, and a double is rolled, then 2nd base turns red (which i've done), but what i cant figure out how to do is, when a runner is on base, and there's a hit, how would i go about moving the runner to the appropriate base. (example: runner on 2nd, single is rolled, get runners on 1st and 3rd.)
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|