Skip to content

added menu in myGame#2

Open
devendradhare wants to merge 1 commit intoaddy123d:mainfrom
devendradhare:main
Open

added menu in myGame#2
devendradhare wants to merge 1 commit intoaddy123d:mainfrom
devendradhare:main

Conversation

@devendradhare
Copy link

@devendradhare devendradhare commented Sep 28, 2022

now after entering your name you will see a menu like this


                game menu      

    Play
--> Difficulty        100 Moves
    Sound             on       
    Unlimited moves   off      
    How to play
    Quit game


you can use the Up arrow key, Down arrow key and Enter key to navigate in the game menu

system("cls");
}

// added by me
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function play sound when you los the game

Beep(350, 1000);
}
}
void you_win_sound()
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function play sound when you win the game

Beep(400, 1000);
}
}
void print_menu(int index)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is refresh the menu

printf("\n\n");
}

void game_menu(int *maxtry)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is helps to nevigate in the game menu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant