Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Test2lightsabers
- {
- class Program
- {
- static void Main(string[] args)
- {
- bool choice = true;
- while (choice == true)
- {
- Console.WriteLine("GREETINGS JEDI \nWELCOME TO THE JEDI CLASS\n lets see what lightsaber you will get");
- Console.WriteLine(" Tell me... Whats your name ");
- String name = Console.ReadLine();
- Console.WriteLine(" greetings " + name);
- Console.WriteLine(" you will have to choose one of the 4 questions");
- Console.WriteLine(" Prefer negotiation and meditation, strong force abilities "); //green
- Console.WriteLine(" Always angry and wants to destroy EVERYTHING "); // RED
- Console.WriteLine(" Jedi Guardians fighting for the light side and are skillful swordsmen "); // blue
- Console.WriteLine(" Using Light and Dark side force, doing everything in order to keep the balance "); // (Purple) (Chaotic Good)
- int x = int.Parse(Console.ReadLine());
- if (x == 1)
- {
- Console.WriteLine("congratulations Jedi you have been chosen by the council.... ");
- Console.BackgroundColor = ConsoleColor.Green;
- Console.WriteLine(" GREEN LIGHTSABER!!");
- }
- else if (x == 2)
- {
- Console.WriteLine("congratulations Jedi you have been chosen by the council.... ");
- Console.BackgroundColor = ConsoleColor.Red;
- Console.WriteLine(" RED LIGHTSABER!!");
- }
- else if (x == 3)
- {
- Console.WriteLine("congratulations Jedi you have been chosen by the council.... ");
- Console.BackgroundColor = ConsoleColor.Blue;
- Console.WriteLine(" BLUE LIGHTSABER!!");
- }
- else if (x == 4)
- {
- Console.WriteLine("congratulations Jedi you have been chosen by the council.... ");
- Console.BackgroundColor = ConsoleColor.DarkMagenta;
- Console.WriteLine(" purple LIGHTSABER!! ");
- }
- else
- {
- Console.WriteLine(" away be gay");
- }
- Console.ResetColor();
- Console.WriteLine("o you want to run the program again Y/N?");
- string ch;
- ch = Console.ReadLine();
- if (ch == "Y")
- {
- choice = true;
- }
- else
- {
- choice = false;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement