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

Function record

Project_Snake_Game/snake-game.cpp:251–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void record() {
252 system("cls");
253 cout << endl << endl << endl << endl << endl << endl << endl;
254 cout << " ";
255 cout << "Welcome to the snake game!" << endl;
256 cout << endl;
257 cout << " " << "Current record is 100" << endl;
258 cout << endl;
259 cout << " " << "If you reach 100 you will win the game" << endl;
260 char back;
261 cout << endl;
262 cout << " " << "To go back press any key" << endl;
263 cin >> back;
264 if (back) welcome();
265}
266
267void incorrectChoice() {
268 cout << "Please try again next time" << endl;

Callers 1

welcomeFunction · 0.85

Calls 1

welcomeFunction · 0.85

Tested by

no test coverage detected