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

Function lostgame

Project_Snake_Game/snake-game.cpp:275–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273 if (back) welcome();
274}
275void lostgame() {
276 game = false;
277 system("cls");
278 cout << endl << endl << endl << endl << endl << endl << endl;
279 cout << " ";
280 cout << "Sorry you lost the game " << endl;
281 cout << " " << "Your score was " << score << endl;
282 cout << " ";
283 cout << "To to back press any button" << endl;
284 char back;
285 cin >> back;
286 if (back) {
287 game = false;
288 welcome();
289 }
290
291}
292
293int main() {
294 SetConsoleTextAttribute(hConsole, 116);

Callers 1

LogicFunction · 0.85

Calls 1

welcomeFunction · 0.85

Tested by

no test coverage detected