Skip to content

Commit d130be5

Browse files
committed
feature: improve outputs
1 parent 08ecda7 commit d130be5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ int main(const int argsLength, char* args[]) {
5050
printf("\n> Invalid option! Try again...");
5151
};
5252

53-
printf("\n> Available options:\n\n%s%s%s", " 1 - Play Tic-Tac-Toe.\n",
53+
printf("> Available options:\n\n%s%s%s", " 1 - Play Tic-Tac-Toe.\n",
5454
" 2 - Show ranking.\n", " 0 - Exit.\n");
5555

5656
printf("\n> Select an option: ");

src/play/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ unsigned char playTicTacToe(const Configuration* config, char* localFilePath) {
2626
randomSort(&players);
2727

2828
while (popElement(&players, &player, sizeof(player))) {
29-
printf("> Hello %s, the game is about to start...\n\n", player.name);
29+
printf("> Hi %s, now it's your turn to play...\n\n", player.name);
3030

3131
games = config->gamesPerPlayer;
3232
while (games > 0) {
@@ -42,6 +42,7 @@ unsigned char playTicTacToe(const Configuration* config, char* localFilePath) {
4242

4343
printf("> ");
4444
system("pause");
45+
puts("");
4546

4647
if (!pushElement(&playersAfterMatch, &player, sizeof(player))) return 0;
4748
}

src/show-ranking/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ unsigned char showRanking(const Configuration* config) {
4848
player.lastGamePlayed);
4949
};
5050

51+
puts("");
52+
5153
return 1;
5254
}
5355

0 commit comments

Comments
 (0)