I am looking for some advice in how best to structure a text-based football game in C++. I am actually a trying to mimic an old DOS game called Armchair Quarterback but without any graphics for the time being. The original DOS game had very minimal graphics just showing a cursor moving across a static graphic (but I will leave the graphics to the end). I attached what the original game looked like below.
So far, I wrote functions for the following :
- for the user to select a team
- for the user to select the opponent's which is always the CPU controlled
- for the user to select difficulty (enum)
Things left to do:
Set-up one overarching team class for all the teams in the game then each specific team would inherit the attributes from the overarching team class.
In the original game, each team only had four attributes that they were rated on.
I would also have to construct 17 offensive plays that the user has to choose from. Would each play be a separate function???
Also, the main logic and AI would need to be constructed (would need some variables for logic and AI).
-Bigger pass plays have lower % of completion than shorter pass plays
-CPU is guessing what the user selects to "play" defense
-The user is guessing what the CPU selects to "play" defense
-This will incorporate the attribute ratings for the offense and defense per team plus randomness and the situation in the game (down and distance???)
Any help would be appreciated in how the code base should be structured. Thanks!
DK
-