Changed the code formatting a bit

This commit is contained in:
Rasmus Rasmussen 2025-03-18 20:25:00 +01:00
parent 959a55d4d0
commit 48a2c065f0
2 changed files with 1 additions and 4 deletions

BIN
bin/Bowling Executable file

Binary file not shown.

View File

@ -20,7 +20,6 @@ void PrintFrames::PrintHeader(vector<int> rolls){
} }
cout << " f" << i << " "; cout << " f" << i << " ";
frame += 1; frame += 1;
} }
@ -33,7 +32,6 @@ void PrintFrames::PrintHeader(vector<int> rolls){
} }
cout << " f" << i << " "; cout << " f" << i << " ";
frame += 2; frame += 2;
} }
@ -82,7 +80,6 @@ void PrintFrames::PrintValue(vector<int> rolls){
} }
cout << "X "; cout << "X ";
frame += 1; frame += 1;
} }
@ -95,7 +92,6 @@ void PrintFrames::PrintValue(vector<int> rolls){
} }
cout << rolls[frame] << ", /"; cout << rolls[frame] << ", /";
frame += 2; frame += 2;
} }
@ -107,6 +103,7 @@ void PrintFrames::PrintValue(vector<int> rolls){
else if (rolls[frame + 1] == 0) { else if (rolls[frame + 1] == 0) {
cout << rolls[frame] << ", -"; cout << rolls[frame] << ", -";
} }
cout << "" << rolls[frame] << ", " << rolls[frame + 1]; cout << "" << rolls[frame] << ", " << rolls[frame + 1];
frame += 2; frame += 2;
} }