Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CSharpCycles07
- {
- class Program
- {
- static void Main(string[] args)
- {
- // буквы на Парселтанге https://pm1.narvii.com/6966/8b1b1a44dad878c32161ed98b654d1d2fd850bf3r1-480-331v2_hq.jpg
- string password = "сая-эф-хи-аш-сая-са-саш-шла";
- string checkPassword;
- int guess = 3;
- Random rand = new Random();
- int reaction;
- for (int i = 0; i < guess; i++)
- {
- Console.Write("Чтобы попасть в тайную комнату напишите что-нибудь на Парселтанге: ");
- checkPassword = Console.ReadLine();
- if (password == checkPassword)
- {
- Console.WriteLine("В Ваших жилах течет кровь Салазара");
- break;
- }
- else
- {
- reaction = rand.Next(0, 5);
- switch (reaction)
- {
- case 0:
- Console.WriteLine("Мерлиновы штаны, как твой язык повернулся такое сказать");
- break;
- case 1:
- Console.WriteLine("эф-се-си-са-хе-хас");
- break;
- case 3:
- Console.WriteLine("странный акцент, Вы не из корнуэльских пикси будете?");
- break;
- case 4:
- Console.WriteLine("Бладжер тебя тресни");
- break;
- }
- }
- }
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment