MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / welcome

Function welcome

Project_Snake_Game/snake-game.cpp:209–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void welcome() {
210 system("cls");
211 cout << endl << endl << endl << endl << endl << endl << endl;
212 cout << " ";
213 cout << "Welcome to the snake game!" << endl;
214 cout << " " << "1. If you want to start game press 1" << endl;
215 cout << " " << "2. To see instruction press 2" << endl;
216 cout << " " << "3. To see record press 3" << endl;
217 char choice;
218 cin >> choice;
219 switch (choice) {
220 case '1':
221 system("cls");
222 startGame();
223 case '2':
224 instructions();
225 case '3':
226 record();
227 default:
228 incorrectChoice();
229 }
230}
231
232void instructions() {
233 system("cls");

Callers 7

InputFunction · 0.85
winFunction · 0.85
instructionsFunction · 0.85
recordFunction · 0.85
incorrectChoiceFunction · 0.85
lostgameFunction · 0.85
mainFunction · 0.85

Calls 4

startGameFunction · 0.85
instructionsFunction · 0.85
recordFunction · 0.85
incorrectChoiceFunction · 0.85

Tested by

no test coverage detected