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

Function instructions

Project_Snake_Game/snake-game.cpp:232–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void instructions() {
233 system("cls");
234 cout << endl << endl << endl << endl << endl << endl << endl;
235 cout << " ";
236 cout << "Welcome to the snake game!" << endl;
237 cout << endl;
238 cout << " " << "Here are instructions" << endl;
239 cout << " " << "1. If you reach current record you won the game" << endl;
240 cout << endl;
241 cout << " " << "2. When you grow up in size you cannot touch yourself, " << endl << " " << "if you touch you will lose the game" << endl;
242 cout << endl;
243 cout << " " << "3. When you grow up in size you cannot touch yourself," << endl << " " << "if you move backwards when you body is backward" << endl << " " << "you automatically lose the game" << endl;
244 cout << endl;
245 char back;
246 cout << " " << "To go back press any key" << endl;
247 cin >> back;
248 if (back) welcome();
249}
250
251void record() {
252 system("cls");

Callers 1

welcomeFunction · 0.85

Calls 1

welcomeFunction · 0.85

Tested by

no test coverage detected