Complete the C++ program for your Game Loop for Tron and submit it to the Drop B
ID: 3559793 • Letter: C
Question
Complete the C++ program for your Game Loop for Tron and submit it to the Drop Box. Remember, you are using blank or empty calling functions, as in:
bool getUserInput() {
}
void makeMove(char input) {
}
while(!gameOver) {
key = getUserInput();
makeMove(key);
....
....
....
}
This is just an example. You need to come up with your own game loop and dummy functions.
bool getUserInput() {
}
void makeMove(char input) {
}
while(!gameOver) {
key = getUserInput();
makeMove(key);
....
....
....
}
Explanation / Answer
#include #include #include #include #include #include using namespace std; //declarations const int ROWS = 23; const int COLUMNS = 80; char playerStart = '#'; char compStart = '%'; int userxCoord = 0; int useryCoord = 0; int compxCoord = 0; int compyCoord = 0; char board[ROWS][COLUMNS]; //Functions void instructions(); void beginningMap(void); void drawMap(char board[0][80]); void instructions() { coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.