Skip to content

Commit

Permalink
Merge pull request shivaylamba#765 from Anubhvv/patch-1
Browse files Browse the repository at this point in the history
Added a loading Screen in game.
  • Loading branch information
shivaylamba authored Oct 15, 2020
2 parents 1c15530 + efe0d4b commit 20a6a7a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tic tac toe program.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//TIC TAC TOE//
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>

char square[10] = { 'o', '1', '2', '3', '4', '5', '6', '7', '8', '9' };

Expand All @@ -9,6 +10,20 @@ void board();

int main()
{
for(float i=0;i<=1000;i=i+25)
{ if(i<=250)
cout<<"\t\tInitializing Installer...\n";
else if(i<=750)
cout<<"\t\tloading Packages...\n";
else if(i<850)
cout<<"\t\tUnzipping Contents...\n";
else cout<<"\t\tFinalizing the game...\n";
system("cls");
printf("\t\t%6.1f",(i/10.0)); cout<<"%"<<endl;
}
cout<<"\nPress Enter key to Continue:"<<endl;
getchar();

int player = 1, i, choice;

char mark;
Expand Down Expand Up @@ -144,4 +159,4 @@ void board()
printf(" %c | %c | %c \n", square[7], square[8], square[9]);

printf(" | | \n\n");
}
}

0 comments on commit 20a6a7a

Please sign in to comment.