| 207 | } |
| 208 | |
| 209 | void 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 | |
| 232 | void instructions() { |
| 233 | system("cls"); |
no test coverage detected