Advertisement
Nickzouk

jedi

Nov 8th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.86 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Test2lightsabers
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             bool choice = true;
  10.             while (choice == true)
  11.             {
  12.                 Console.WriteLine("GREETINGS JEDI \nWELCOME TO THE JEDI CLASS\n lets see what lightsaber you will get");
  13.                 Console.WriteLine(" Tell me... Whats your name ");
  14.                 String name = Console.ReadLine();
  15.                 Console.WriteLine(" greetings " + name);
  16.  
  17.                 Console.WriteLine(" you will have to choose one of the 4 questions");
  18.  
  19.  
  20.                 Console.WriteLine(" Prefer negotiation and meditation, strong force abilities "); //green
  21.                 Console.WriteLine(" Always angry and wants to destroy EVERYTHING "); // RED
  22.                 Console.WriteLine(" Jedi Guardians fighting for the light side and are skillful swordsmen "); // blue
  23.                 Console.WriteLine(" Using Light and Dark side force, doing everything in order to keep the balance  "); // (Purple) (Chaotic Good)
  24.  
  25.                 int x = int.Parse(Console.ReadLine());
  26.  
  27.                 if (x == 1)
  28.                 {
  29.                     Console.WriteLine("congratulations Jedi you have been chosen by the council.... ");
  30.                     Console.BackgroundColor = ConsoleColor.Green;
  31.                     Console.WriteLine(" GREEN LIGHTSABER!!");
  32.                 }
  33.                 else if (x == 2)
  34.                 {
  35.  
  36.                     Console.WriteLine("congratulations Jedi you have been chosen by the council.... ");
  37.                     Console.BackgroundColor = ConsoleColor.Red;
  38.                     Console.WriteLine(" RED LIGHTSABER!!");
  39.                 }
  40.                 else if (x == 3)
  41.                 {
  42.                     Console.WriteLine("congratulations Jedi you have been chosen by the council.... ");
  43.                     Console.BackgroundColor = ConsoleColor.Blue;
  44.                     Console.WriteLine(" BLUE LIGHTSABER!!");
  45.  
  46.                 }
  47.                 else if (x == 4)
  48.  
  49.                 {
  50.                     Console.WriteLine("congratulations Jedi you have been chosen by the council.... ");
  51.                     Console.BackgroundColor = ConsoleColor.DarkMagenta;
  52.                     Console.WriteLine(" purple LIGHTSABER!! ");
  53.  
  54.                 }
  55.                 else
  56.                 {
  57.  
  58.                     Console.WriteLine(" away be gay");
  59.                 }
  60.                 Console.ResetColor();
  61.  
  62.                 Console.WriteLine("o you want to run the program again Y/N?");
  63.                 string ch;
  64.                 ch = Console.ReadLine();
  65.                 if  (ch == "Y")
  66.                 {
  67.                     choice = true;
  68.                 }
  69.                 else
  70.                 {
  71.                     choice = false;
  72.                 }
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.             }
  81.  
  82.         }
  83.     }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement