Skip to content

Commit

Permalink
Fixed output formatting for the game over function.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamD2 committed Jun 24, 2016
1 parent 744dd40 commit 000fdc6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Game.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ void calculateWinner (Game g) {
int originalWhoseTurn = g->whoseTurn;
g->whoseTurn = player;

printf ("\n\n\n");
printf ("\n\nGame Over \n\n\n");

while (player <= PLAYER_4) {
Expand All @@ -410,7 +409,7 @@ void calculateWinner (Game g) {

g->whoseTurn = originalWhoseTurn;

printf ("Statistics:\n");
printf ("\nStatistics:\n");
printf ("Rounds - %d\n", getRoundNumber (g));
printf ("Last Turn - %d\n", getWhoseTurn (g));
printf ("Winner - Player %d!\n", winner);
Expand Down

0 comments on commit 000fdc6

Please sign in to comment.