Advertisement
Guest User

PUCANICA FINISHED

a guest
Oct 7th, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 27.54 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net.Mime;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Threading;
  8.  
  9. public struct Cursor
  10. {
  11.     public int x;
  12.     public int y;
  13.     public char c;
  14. }
  15.  
  16. public struct Words
  17. {
  18.     public int x;
  19.     public int y;
  20.  
  21. }
  22.  
  23. namespace Pucanica
  24. {
  25.     class Pucanica
  26.     {
  27.         #region CURSOR
  28.         private static void PrintOnPosition(int x, int y, char c)
  29.         {
  30.  
  31.             Console.SetCursorPosition(x, y);
  32.             Console.Write(c);
  33.  
  34.         }
  35.  
  36.         private static void PrintOnPositionString(int x, int y, string str, int index)
  37.         {
  38.  
  39.             Console.SetCursorPosition(x, y);
  40.             Console.Write("{0}. {1}", index, str);
  41.  
  42.         }
  43.         #endregion CURSOR
  44.  
  45.         static void Main()
  46.         {
  47.  
  48.             int currentPosition = 0;
  49.             Console.BufferHeight = Console.WindowHeight = 31;
  50.             Console.BufferWidth = Console.WindowWidth = 80;
  51.  
  52.             Cursor newCursor = new Cursor();
  53.             newCursor.x = 32;
  54.             newCursor.y = 16;
  55.             newCursor.c = '>';
  56.  
  57.             Thread thread = new Thread(() => PlayMusic());
  58.             thread.Start();
  59.  
  60.             int lives = 3;
  61.             string Animation = "";
  62.             #region WordsAndDescriptions
  63.             List<string> Description = new List<string> { "animal", "fly", "suck", "kids", "drive", "animal" , "animal", "IDE","Movie Franchise by LucasArts",
  64.                 "Apple`s mobile pnone","A bird`s body part","You Watch Movies On It","You Code On It","Something Without a Price","a Pain Medication Of The opitate Type",
  65.                 "Famous TV Series From HBO","Forwards Data Packets Between Networks", "Game franchise by Blizzard", "World’s most famous business street", " A game which involves kicking a ball",
  66.                 "The other name of Football", "Electronic Book", "A type of warrior, who operated in feudal Japan", "The first president of the USA", "A work of Homer about the Troy Wars", "One of the continents",
  67.                 "Ball game, very popular in the US", "Famous Game franchise by Blizzard", "Japanese Car Brand", "You make music with it","Soft drink, made from coca cola" ,"A very big cat",
  68.             "You make wine from them","You sit on it in the park","If you get stabed, this will come out","The most famous anti-semit","Male reproductive organ","Feeds babies and its useless in men","The unability to sleep",
  69.             "You get it from a wild animal bite","Our master","Somebody important enough to be mentioned twice","Somebody importnat enough to be mentioned three times","A dead person who is eating brains","A drug you most likely smoked",
  70.             "You inject it and become a better programmer","When a wound goes bad","A curse word meaning sex"," Thats how you make babies","The word comming after Knock in the joke"};
  71.  
  72.  
  73.             List<string> Words = new List<string> { "dog", "plane" , "lollipop", "kite", "car", "elephant" ,"cat", "visual studio","star wars","iphone","wing",
  74.                 "television","computer","invaluable","Morphine","Game Of Thrones","Router","warcraft", "Wall Street" , "Football","Soccer" , "eBook" , "Ninja" ,
  75.                 "Washington" , "Iliad" , "Europe" , "Basketball" , "StarCraft", "Mitsubishi", "Guitar", "Lift","Tiger","Grape","Bench","Blood","Hitler","Penis",
  76.                 "Nipple","Insomnia","Rabies","Nakov","Nakov","Nakov","Zombie","Marijuana","Steroids","Infection","Fuck","Sex","Knock"};
  77.             #endregion WordsAndDescriptions
  78.             Menu:
  79.             List<int> usedWords = new List<int>();
  80.  
  81.             while (true)
  82.             {
  83.                 if (Console.KeyAvailable)
  84.                 {
  85.                     ConsoleKeyInfo pressedKey = Console.ReadKey(true);
  86.  
  87.                     while (Console.KeyAvailable) Console.ReadKey();
  88.  
  89.  
  90.                     if (pressedKey.Key == ConsoleKey.UpArrow)
  91.                     {
  92.                         if (newCursor.y - 1 >= 16)
  93.                         {
  94.                             newCursor.y = newCursor.y - 2;
  95.                         }
  96.                     }
  97.                     else if (pressedKey.Key == ConsoleKey.DownArrow)
  98.                     {
  99.                         if (newCursor.y + 1 < 23)
  100.                         {
  101.                             newCursor.y = newCursor.y + 2;
  102.                         }
  103.                     }
  104.  
  105.                     else if (pressedKey.Key == ConsoleKey.Enter)
  106.                     {
  107.                         currentPosition = newCursor.y;
  108.  
  109.                         break;
  110.                     }
  111.  
  112.                 }
  113.  
  114.                 Console.WriteLine("\r\n\r\n\r\n\r\n{0," + (Console.WindowWidth / 2 + 11) + "}", "Welcome to PUCANICA !");
  115.  
  116.                 Console.WriteLine(MenuAnimation(Animation));
  117.  
  118.                 Console.WriteLine("\r\n{0," + (Console.WindowWidth / 2 + 2) + "}\r\n", "1.Start");
  119.                 Console.WriteLine("{0," + (Console.WindowWidth / 2 + 5) + "}\r\n", "2.Add Word");
  120.                 Console.WriteLine("{0," + (Console.WindowWidth / 2 + 8) + "}\r\n", "3.Delete Word");
  121.                 Console.WriteLine("{0," + (Console.WindowWidth / 2 + 1) + "}\r\n\r\n\r\n", "4.Exit");
  122.  
  123.                 PrintOnPosition(newCursor.x, newCursor.y, newCursor.c);
  124.  
  125.                 Thread.Sleep(100);
  126.                 Console.Clear();
  127.                 lives = 3;
  128.  
  129.             }
  130.  
  131.             if (currentPosition == 16 || currentPosition == 18 || currentPosition == 20 || currentPosition == 22)
  132.             {
  133.  
  134.                 switch (currentPosition)
  135.                 {
  136.                     case 16:
  137.                         #region Game
  138.                         Console.Clear();
  139.                         int CheckUsedWords = 0;
  140.                         Random random = new Random();
  141.                         int randomNumber = random.Next(0, Words.Count());
  142.                         CheckUsedWords = usedWords.IndexOf(randomNumber);
  143.  
  144.                         if (CheckUsedWords != -1)
  145.                         {
  146.                             goto case 16;
  147.                         }
  148.  
  149.                         List<char> WrongLetters = new List<char>();
  150.  
  151.  
  152.                         string OriginalWord = Words[randomNumber].ToUpper();
  153.                         char[] OriginalWordArr = OriginalWord.ToCharArray();
  154.                         char[] FirstAndLastLetter = { OriginalWord[0], OriginalWord[OriginalWord.Length - 1] };
  155.                         char[] CenzuratedWordArr = OriginalWord.ToCharArray();
  156.                         for (int i = 1; i < CenzuratedWordArr.Length - 1; i++)
  157.                         {
  158.                             if (CenzuratedWordArr[i] == FirstAndLastLetter[0] || CenzuratedWordArr[i] == FirstAndLastLetter[1])
  159.                             {
  160.                                 continue;
  161.                             }
  162.                             else if (CenzuratedWordArr[i] == ' ')
  163.                             {
  164.                                 CenzuratedWordArr[i] = ' ';
  165.                             }
  166.                             else
  167.                             {
  168.                                 CenzuratedWordArr[i] = '_';
  169.                             }
  170.  
  171.                         }
  172.                         Start:
  173.                         Console.WriteLine("\r\n\r\n\r\n\r\n{0," + ((Console.WindowWidth / 2) + 4) + "}", "PUCANICA");
  174.                         Console.WriteLine("\r\n{0," + ((Console.WindowWidth / 2 + 3)) + "}{1}", "Lives: ", lives);
  175.                         Console.WriteLine(StartAnimation(Animation, lives));
  176.  
  177.                         if (lives == 0)
  178.                         {
  179.                             Console.ReadKey();
  180.                             Console.Clear();
  181.                             goto Menu;
  182.                         }
  183.                         Console.WriteLine("\r\n{0," + ((Console.WindowWidth / 2) + Description[randomNumber].Length / 2) + "}", Description[randomNumber].ToUpper());
  184.  
  185.  
  186.                         Console.WriteLine("\r\n{0," + ((Console.WindowWidth / 2) +
  187.                              (CenzuratedWordArr.Length / 2 + ((CenzuratedWordArr.Length - 1) / 2))) + "}", string.Join(" ", CenzuratedWordArr).ToUpper());
  188.  
  189.  
  190.                         Console.Write("\r\nWrong letters: ");
  191.                         Console.WriteLine(string.Join(" | ", WrongLetters));
  192.                         Console.Write("\r\n\r\n\r\n{0," + ((Console.WindowWidth / 2) + 4) + "}", "Letter: ");
  193.                         try
  194.                         {
  195.                             char Letter = char.Parse(Console.ReadLine().ToUpper());
  196.                             int CheckLetter = OriginalWord.ToUpper().IndexOf(Letter);
  197.  
  198.                             Console.Clear();
  199.  
  200.  
  201.  
  202.                             if (CheckLetter == -1 || Letter == OriginalWordArr[0] || Letter == OriginalWordArr[OriginalWordArr.Length - 1])
  203.                             {
  204.                                 WrongLetters.Add(Letter);
  205.                                 lives--;
  206.                             }
  207.                             else
  208.                             {
  209.  
  210.                                 List<int> IndexOfLetter = new List<int>();
  211.                                 for (int i = 0; i < OriginalWord.Length; i++)
  212.                                 {
  213.                                     if (OriginalWordArr[i] == Letter)
  214.                                     {
  215.                                         IndexOfLetter.Add(i);
  216.                                     }
  217.                                 }
  218.                                 for (int i = 0; i < IndexOfLetter.Count(); i++)
  219.                                 {
  220.                                     int Index = IndexOfLetter[i];
  221.                                     CenzuratedWordArr[Index] = Letter;
  222.                                 }
  223.  
  224.                                 bool Check = true;
  225.                                 for (int i = 0; i < CenzuratedWordArr.Length; i++)
  226.                                 {
  227.                                     Check = OriginalWordArr[i] == CenzuratedWordArr[i];
  228.                                     if (Check == false) break;
  229.                                 }
  230.                                 if (Check == true)
  231.                                 {
  232.                                     Console.WriteLine(AnimationWin(Animation));
  233.                                     Console.WriteLine("\r\n\r\n\r\n\r\n{0," + (Console.WindowWidth / 2 + 6) + "}{1}", "The word was: ", OriginalWord.ToUpper());
  234.                                     Console.ReadKey();
  235.                                     usedWords.Add(randomNumber);
  236.  
  237.                                     Console.Clear();
  238.                                     if (usedWords.Count() == Words.Count())
  239.                                     {
  240.                                         Console.WriteLine("\r\n\r\n" + WinGameAnimation(Animation));
  241.                                         Console.WriteLine("\r\n\r\n{0," + (Console.WindowWidth / 2 + 12) + "}", "NO MORE WORDS !!!");
  242.                                         Console.ReadKey();
  243.                                         Console.Clear();
  244.                                         goto Menu;
  245.                                     }
  246.                                     else
  247.                                         goto case 16;
  248.  
  249.  
  250.  
  251.                                 }
  252.                             }
  253.                         }
  254.                         catch (FormatException)
  255.                         {
  256.                             Console.Clear();
  257.                             goto Start;
  258.                         }
  259.                         goto Start;
  260.                     #endregion Game
  261.  
  262.                     case 18:
  263.                         #region AddWord
  264.                         try
  265.                         {
  266.                             Console.Clear();
  267.                             AddWord(Words);
  268.                             AddDescription(Description);
  269.                             Console.WriteLine("\r\n\r\n{0," + (Console.WindowWidth / 2 + 9) + "}", "WORD WAS ADDED !");
  270.                             Console.ReadKey();
  271.                             Console.Clear();
  272.                             goto Menu;
  273.                         }
  274.                         catch (FormatException)
  275.                         {
  276.                             Console.Clear();
  277.                             goto case 18;
  278.                         }
  279.                     #endregion AddWord
  280.  
  281.                     case 20:
  282.                         #region DeleteWord
  283.                         try
  284.                         {
  285.                             PrintWords(Words);
  286.                             int Delete = int.Parse(Console.ReadLine());
  287.                             if (Delete < 0 || Delete > Words.Count - 1) goto case 20;
  288.                             DeleteWord(Words, Delete);
  289.                             DeleteDescription(Description, Delete);
  290.                             Console.Clear();
  291.                             Console.WriteLine("\r\n\r\n{0," + (Console.WindowWidth / 2 + 9) + "}", "WORD WAS DELETED !");
  292.                             Console.ReadKey();
  293.                             Console.Clear();
  294.                             goto Menu;
  295.                         }
  296.                         catch (FormatException)
  297.                         {
  298.                             Console.Clear();
  299.                             goto case 20;
  300.                         }
  301.                     #endregion DeleteWord
  302.  
  303.                     case 22:
  304.                         #region Exit
  305.                         Console.WriteLine("\n\n\n");
  306.                         Console.WriteLine("\n\n                          Thank You For Playing Our Game!");
  307.                         Console.WriteLine("\n                     The pleasure has been brought to you by:  ");
  308.                         Console.WriteLine("\n\n\n                                  Jani Fandi");
  309.                         Console.WriteLine("\n                                  Valentin Minkov");
  310.                         Console.WriteLine("\n                                  Karim Hlaif");
  311.                         Console.WriteLine("\n                                  Philip Pepegov");
  312.                         Console.WriteLine();
  313.                         Console.WriteLine();
  314.  
  315.                         Console.SetCursorPosition(23, 22);
  316.                         Environment.Exit(0);
  317.  
  318.  
  319.                         break;
  320.                         #endregion Exit
  321.                 }
  322.  
  323.             }
  324.             else
  325.             {
  326.                 Console.WriteLine("Invalid input !");
  327.                 Console.ReadKey();
  328.                 Console.Clear();
  329.                 goto Menu;
  330.             }
  331.         }
  332.         public static void PrintWords(List<string> Words)
  333.         {
  334.             Console.Clear();
  335.             for (int i = 0; i < 3; i++) { Console.WriteLine("\r\n"); }
  336.             int index = 0;
  337.             Words wordsToDelete = new Words();
  338.             wordsToDelete.x = 2;
  339.             wordsToDelete.y = 1;
  340.             int rounds = 0;
  341.             foreach (var Word in Words)
  342.             {
  343.  
  344.  
  345.                 PrintOnPositionString(wordsToDelete.x, wordsToDelete.y, Word, index);
  346.  
  347.  
  348.                 wordsToDelete.y++;
  349.                 index++;
  350.                 rounds++;
  351.                 if (rounds == 26)
  352.                 {
  353.                     wordsToDelete.x = wordsToDelete.x + 20;
  354.                     wordsToDelete.y = 1;
  355.  
  356.                 }
  357.  
  358.             }
  359.  
  360.             Console.SetCursorPosition(30, 27);
  361.             Console.Write("\r\n\r\n Type the number of the word you want to delete: ");
  362.         }
  363.  
  364.         public static void DeleteWord(List<string> Words, int Delete)
  365.         {
  366.             Words.RemoveAt(Delete);
  367.  
  368.         }
  369.  
  370.         public static void DeleteDescription(List<string> Description, int Delete)
  371.         {
  372.             Description.RemoveAt(Delete);
  373.  
  374.         }
  375.  
  376.         public static List<string> AddWord(List<string> Words)
  377.         {
  378.             for (int i = 0; i < 6; i++) { Console.WriteLine("\r\n"); }
  379.             Console.Write("{0," + (Console.WindowWidth / 2 + 5) + "}", "Add a Word: ");
  380.             string Word = Console.ReadLine().ToUpper();
  381.             Words.Add(Word);
  382.             return Words;
  383.  
  384.         }
  385.  
  386.         public static List<string> AddDescription(List<string> Description)
  387.         {
  388.             Console.Write("\r\n{0," + (Console.WindowWidth / 2 + 5) + "}", "Add a description: ");
  389.             string description = Console.ReadLine().ToLower(); ;
  390.             Description.Add(description);
  391.             return Description;
  392.  
  393.         }
  394.  
  395.  
  396.         #region Animations
  397.         public static string MenuAnimation(string Animation)
  398.         {
  399.             Animation = @"
  400.                             _____________________
  401.                             |                    |
  402.                             |  HI ! Let's play ! |
  403.                        ___  |_ __________________|
  404.                       /o o\  |/
  405.                       \_V_/
  406.                       __|__
  407.                         |              
  408.                        / \           ";
  409.             return Animation;
  410.         }
  411.  
  412.         public static string StartAnimation(string Animation, int Lives)
  413.         {
  414.             if (Lives == 3)
  415.             {
  416.                 Animation = @"
  417.  
  418.                                                 ___  
  419.                                                /o o\
  420.                                                \_V_/   /
  421.                                                __|__  <========== YOU !
  422.                                                  |     \        
  423.                                                 / \           ";
  424.             }
  425.             else if (Lives == 2)
  426.             {
  427.                 Animation = @"        
  428.                                                      _________  
  429.                                                      |        |
  430.                                                      |  HI !  |
  431.                     ___                         ___  |__  ____|
  432.                    /o o\                       /o o\   |/
  433.               \    \_-_/                       \_V_/  
  434. NAKOV ! ========>   __|__                       __|__  
  435.               /      |                           |  
  436.                     / \                         / \           ";
  437.             }
  438.             else if (Lives == 1)
  439.             {
  440.                 Animation = @"
  441.                          __________________
  442.                          |                 |
  443.                          | Last chance !!! |
  444.                     ___  |_ _______________|    ___
  445.                    /o o\  |/                   /O O\
  446.                    \_-_/ _ _____               \_^_/  
  447.                    __|__(X|=====>              __|__  
  448.                      |  |_|                      |
  449.                     / \                         / \           ";
  450.             }
  451.             else if (Lives == 0)
  452.             {
  453.                 Animation = @"
  454.                         ______________
  455.                         |             |
  456.                         | GAME OVER ! |
  457.                     ___ |__ __________|                  
  458.                    /o o\  |/                    
  459.                    \_V_/ _ _____                 ___
  460.                    __|__(X|=====>               |  X|
  461.                      |  |_|                \__|_||  |
  462.                     / \                    /  | |__X|       ";
  463.  
  464.             }
  465.             return Animation;
  466.         }
  467.  
  468.         public static string AnimationWin(string Animation)
  469.         {
  470.             Animation = "\r\n\r\n\r\n\r\n\r\n" + @"        
  471.                                 ________________  
  472.                                 |               |
  473.                                 |  YOU WIN !!!  |
  474.                            ___  |__  ___________|
  475.                           /o o\   |/
  476.                           \_V_/  
  477.                          \__|__/  
  478.                             |  
  479.                            / \         ";
  480.             return Animation;
  481.         }
  482.  
  483.         public static string WinGameAnimation(string Animation)
  484.         {
  485.             Animation = "\r\n\r\n\r\n\r\n\r\n" + @"        
  486.                                 __________________________  
  487.                                 |                        |
  488.                                 |  YOU WIN THE GAME !!!  |
  489.                            ___  |__  ____________________|
  490.                           /o o\   |/
  491.                           \_V_/  
  492.                          \__|__/  
  493.                             |  
  494.                            / \         ";
  495.  
  496.             return Animation;
  497.         }
  498.         #endregion Animations
  499.  
  500.         #region Music
  501.         static void PlayMusic()
  502.         {
  503.             while (true)
  504.             {
  505.                 Console.Beep(659, 125);
  506.                 Console.Beep(659, 125);
  507.                 Thread.Sleep(125);
  508.                 Console.Beep(659, 125);
  509.                 Thread.Sleep(167);
  510.                 Console.Beep(523, 125);
  511.                 Console.Beep(659, 125);
  512.                 Thread.Sleep(125);
  513.                 Console.Beep(784, 125);
  514.                 Thread.Sleep(375);
  515.                 Console.Beep(392, 125);
  516.                 Thread.Sleep(375);
  517.                 Console.Beep(523, 125);
  518.                 Thread.Sleep(250);
  519.                 Console.Beep(392, 125);
  520.                 Thread.Sleep(250);
  521.                 Console.Beep(330, 125);
  522.                 Thread.Sleep(250);
  523.                 Console.Beep(440, 125);
  524.                 Thread.Sleep(125);
  525.                 Console.Beep(494, 125);
  526.                 Thread.Sleep(125);
  527.                 Console.Beep(466, 125);
  528.                 Thread.Sleep(42);
  529.                 Console.Beep(440, 125);
  530.                 Thread.Sleep(125);
  531.                 Console.Beep(392, 125);
  532.                 Thread.Sleep(125);
  533.                 Console.Beep(659, 125);
  534.                 Thread.Sleep(125);
  535.                 Console.Beep(784, 125);
  536.                 Thread.Sleep(125);
  537.                 Console.Beep(880, 125);
  538.                 Thread.Sleep(125);
  539.                 Console.Beep(698, 125);
  540.                 Console.Beep(784, 125);
  541.                 Thread.Sleep(125);
  542.                 Console.Beep(659, 125);
  543.                 Thread.Sleep(125);
  544.                 Console.Beep(523, 125);
  545.                 Thread.Sleep(125);
  546.                 Console.Beep(587, 125);
  547.                 Console.Beep(494, 125);
  548.                 Thread.Sleep(125);
  549.                 Console.Beep(523, 125);
  550.                 Thread.Sleep(250);
  551.                 Console.Beep(392, 125);
  552.                 Thread.Sleep(250);
  553.                 Console.Beep(330, 125);
  554.                 Thread.Sleep(250);
  555.                 Console.Beep(440, 125);
  556.                 Thread.Sleep(125);
  557.                 Console.Beep(494, 125);
  558.                 Thread.Sleep(125);
  559.                 Console.Beep(466, 125);
  560.                 Thread.Sleep(42);
  561.                 Console.Beep(440, 125);
  562.                 Thread.Sleep(125);
  563.                 Console.Beep(392, 125);
  564.                 Thread.Sleep(125);
  565.                 Console.Beep(659, 125);
  566.                 Thread.Sleep(125);
  567.                 Console.Beep(784, 125);
  568.                 Thread.Sleep(125);
  569.                 Console.Beep(880, 125);
  570.                 Thread.Sleep(125);
  571.                 Console.Beep(698, 125);
  572.                 Console.Beep(784, 125);
  573.                 Thread.Sleep(125);
  574.                 Console.Beep(659, 125);
  575.                 Thread.Sleep(125);
  576.                 Console.Beep(523, 125);
  577.                 Thread.Sleep(125);
  578.                 Console.Beep(587, 125);
  579.                 Console.Beep(494, 125);
  580.                 Thread.Sleep(375);
  581.                 Console.Beep(784, 125);
  582.                 Console.Beep(740, 125);
  583.                 Console.Beep(698, 125);
  584.                 Thread.Sleep(42);
  585.                 Console.Beep(622, 125);
  586.                 Thread.Sleep(125);
  587.                 Console.Beep(659, 125);
  588.                 Thread.Sleep(167);
  589.                 Console.Beep(415, 125);
  590.                 Console.Beep(440, 125);
  591.                 Console.Beep(523, 125);
  592.                 Thread.Sleep(125);
  593.                 Console.Beep(440, 125);
  594.                 Console.Beep(523, 125);
  595.                 Console.Beep(587, 125);
  596.                 Thread.Sleep(250);
  597.                 Console.Beep(784, 125);
  598.                 Console.Beep(740, 125);
  599.                 Console.Beep(698, 125);
  600.                 Thread.Sleep(42);
  601.                 Console.Beep(622, 125);
  602.                 Thread.Sleep(125);
  603.                 Console.Beep(659, 125);
  604.                 Thread.Sleep(167);
  605.                 Console.Beep(698, 125);
  606.                 Thread.Sleep(125);
  607.                 Console.Beep(698, 125);
  608.                 Console.Beep(698, 125);
  609.                 Thread.Sleep(625);
  610.                 Console.Beep(784, 125);
  611.                 Console.Beep(740, 125);
  612.                 Console.Beep(698, 125);
  613.                 Thread.Sleep(42);
  614.                 Console.Beep(622, 125);
  615.                 Thread.Sleep(125);
  616.                 Console.Beep(659, 125);
  617.                 Thread.Sleep(167);
  618.                 Console.Beep(415, 125);
  619.                 Console.Beep(440, 125);
  620.                 Console.Beep(523, 125);
  621.                 Thread.Sleep(125);
  622.                 Console.Beep(440, 125);
  623.                 Console.Beep(523, 125);
  624.                 Console.Beep(587, 125);
  625.                 Thread.Sleep(250);
  626.                 Console.Beep(622, 125);
  627.                 Thread.Sleep(250);
  628.                 Console.Beep(587, 125);
  629.                 Thread.Sleep(250);
  630.                 Console.Beep(523, 125);
  631.                 Thread.Sleep(1125);
  632.                 Console.Beep(784, 125);
  633.                 Console.Beep(740, 125);
  634.                 Console.Beep(698, 125);
  635.                 Thread.Sleep(42);
  636.                 Console.Beep(622, 125);
  637.                 Thread.Sleep(125);
  638.                 Console.Beep(659, 125);
  639.                 Thread.Sleep(167);
  640.                 Console.Beep(415, 125);
  641.                 Console.Beep(440, 125);
  642.                 Console.Beep(523, 125);
  643.                 Thread.Sleep(125);
  644.                 Console.Beep(440, 125);
  645.                 Console.Beep(523, 125);
  646.                 Console.Beep(587, 125);
  647.                 Thread.Sleep(250);
  648.                 Console.Beep(784, 125);
  649.                 Console.Beep(740, 125);
  650.                 Console.Beep(698, 125);
  651.                 Thread.Sleep(42);
  652.                 Console.Beep(622, 125);
  653.                 Thread.Sleep(125);
  654.                 Console.Beep(659, 125);
  655.                 Thread.Sleep(167);
  656.                 Console.Beep(698, 125);
  657.                 Thread.Sleep(125);
  658.                 Console.Beep(698, 125);
  659.                 Console.Beep(698, 125);
  660.                 Thread.Sleep(625);
  661.                 Console.Beep(784, 125);
  662.                 Console.Beep(740, 125);
  663.                 Console.Beep(698, 125);
  664.                 Thread.Sleep(42);
  665.                 Console.Beep(622, 125);
  666.                 Thread.Sleep(125);
  667.                 Console.Beep(659, 125);
  668.                 Thread.Sleep(167);
  669.                 Console.Beep(415, 125);
  670.                 Console.Beep(440, 125);
  671.                 Console.Beep(523, 125);
  672.                 Thread.Sleep(125);
  673.                 Console.Beep(440, 125);
  674.                 Console.Beep(523, 125);
  675.                 Console.Beep(587, 125);
  676.                 Thread.Sleep(250);
  677.                 Console.Beep(622, 125);
  678.                 Thread.Sleep(250);
  679.                 Console.Beep(587, 125);
  680.                 Thread.Sleep(250);
  681.                 Console.Beep(523, 125);
  682.                 Thread.Sleep(625);
  683.             }
  684.  
  685.  
  686.  
  687.         }
  688.         #endregion Music
  689.     }
  690. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement