| 230 | } |
| 231 | |
| 232 | void 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 | |
| 251 | void record() { |
| 252 | system("cls"); |