C Board  

Go Back   C Board > General Programming Boards > Game Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-07-2002, 05:23 PM   #1
Registered User
 
Join Date: Aug 2001
Posts: 8
Add to my football strategy text game

I created a text based football strategy game. I want to see if someone can come up with a better PlayAlgorithm() than me. We can compete to see who's Algorithm does better. By PlayAlgorithm() I mean, determining when you should either Run, Pass, Field Goal or Punt the ball, depending on certain factors like, what down it is, yards to go, what yardline the ball is on, time left in the quarter or game, how many points you are winning or losing by etc...

Please reply to this post if interested. I attached a copy of my PlayAlgorithm() as a template or example for you to work with.

RC
real_cozzy is offline   Reply With Quote
Old 01-11-2002, 02:38 PM   #2
Registered User
 
Join Date: Aug 2001
Posts: 8
Here is the source code. Hope the attach works this go around!
Attached Files
File Type: cpp playalg.cpp (4.6 KB, 64 views)
real_cozzy is offline   Reply With Quote
Old 01-13-2002, 10:40 PM   #3
Registered User
 
Join Date: Sep 2001
Posts: 752
This is actually pretty interesting, but we need to how RUN, PASS, FIELD_GOAL, and PUNT work.
__________________
Callou collei we'll code the way
Of prime numbers and pings!
QuestionC is offline   Reply With Quote
Old 01-14-2002, 12:20 PM   #4
Registered User
 
Join Date: Aug 2001
Posts: 8
Run, Pass, FG, Punt Code

Here's an attachment with the code for

Run, Pass, FG, Punt, with a bare bones main program to excercise each.

This post has the .cpp file, next post will have the .h file.
Attached Files
File Type: cpp runpass.cpp (11.6 KB, 41 views)
real_cozzy is offline   Reply With Quote
Old 01-14-2002, 12:37 PM   #5
Registered User
 
Join Date: Aug 2001
Posts: 8
Include file attachment

nflsim.h

compile it with runpass.cpp

comments?
Attached Files
File Type: h nflsim.h (2.1 KB, 36 views)
real_cozzy is offline   Reply With Quote
Old 01-18-2002, 10:23 PM   #6
Super Moderator
 
Join Date: Sep 2001
Posts: 4,746
Is it just me. or are text strategy games more fun?
sean is offline   Reply With Quote
Old 01-20-2002, 05:09 PM   #7
Banned
 
frenchfry164's Avatar
 
Join Date: Oct 2001
Posts: 1,552
I like strategy games, but I like TBS games like Final Fantasy Tactics, Vandal Hearts, or Ogre Battle / Tactics Ogre.
frenchfry164 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text based game wipeout4wh C Programming 12 03-26-2009 04:39 PM
Text adventure game GUI Bubba Game Programming 11 11-07-2007 06:34 PM
Dynamically add statis text to a dialog box earth_angel Windows Programming 8 06-23-2005 01:28 PM
Outputting String arrays in windows Xterria Game Programming 11 11-13-2001 07:35 PM
Football simulation strategy real_cozzy Game Programming 0 08-14-2001 04:29 PM


All times are GMT -6. The time now is 03:19 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22