1
0
mirror of https://github.com/abakh/nbsdgames.git synced 2025-01-03 14:56:23 -05:00

adding a bunch of refresh()'s

This commit is contained in:
untakenstupidnick 2019-08-01 20:51:10 +04:30
parent ad3f8d9765
commit 45514a6cc8
4 changed files with 9 additions and 0 deletions

View File

@ -525,6 +525,7 @@ int main(void){
printw("Choose type of the game:\n");
printw("1 : Single Player*\n");
printw("2 : Multi Player\n");
refresh();
input=getch();
if(input == '2'){
multiplayer=1;

View File

@ -515,6 +515,7 @@ int main(int argc,char** argv){
keypad(stdscr,1);
int input ;
printw("Dark plays first.\nChoose type of the dark player(H/c)\n" );
refresh();
input=getch();
if(input=='c'){
computer[0]=dpt;
@ -525,6 +526,7 @@ int main(int argc,char** argv){
printw("Human.\n");
}
printw("Choose type of the light player(h/C)\n");
refresh();
input=getch();
if(input=='h'){
computer[1]=0;

View File

@ -285,6 +285,7 @@ int main(int argc , char** argv){
int input;
printw("Black plays first:\n");
printw("Choose type of the white player (H/c)\n");
refresh();
input=getch();
if(input == 'c'){
computer[0]=depth;
@ -294,7 +295,9 @@ int main(int argc , char** argv){
computer[1]=0;
printw("Human.\n");
}
refresh();
printw("Choose type of the black player(h/C)\n");
refresh();
input=getch();
if(input == 'h'){
computer[1]=0;

View File

@ -278,6 +278,7 @@ int main(int argc, char** argv){
cbreak();
keypad(stdscr,1);
printw("Black plays first.\n Choose the type of the blue player(H/c)\n" );
refresh();
input=getch();
if(input=='c'){
computer[0]=dpt;
@ -287,7 +288,9 @@ int main(int argc, char** argv){
computer[0]=0;
printw("Human.\n");
}
refresh();
printw("Choose the type of the yellow player(h/C)\n");
refresh();
input=getch();
if(input=='h'){
computer[1]=0;