Advertisement
saluxx

Main 11

Nov 11th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication12
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. Class1 egenskaper = new Class1();
  14.  
  15.  
  16. string answer = String.Empty;
  17. while (true)
  18. {
  19.  
  20.  
  21. do
  22. {
  23. Console.SetCursorPosition(0, 0);
  24. Console.WriteLine("What do you want to do?");
  25. Console.WriteLine("1. Eat");
  26. Console.WriteLine("2. Drink");
  27. Console.WriteLine("3. Play");
  28. answer = Console.ReadLine();
  29.  
  30.  
  31. Console.Clear();
  32. egenskaper.Levels();
  33. } while (answer != "1" && answer != "2" && answer != "3");
  34.  
  35.  
  36. if (answer == "1")
  37. {
  38. egenskaper.Food();
  39. }
  40. else if (answer == "2")
  41. {
  42. egenskaper.Drink();
  43. }
  44. else if (answer == "3")
  45. {
  46. egenskaper.Play();
  47. }
  48. egenskaper.Levels();
  49.  
  50.  
  51. }
  52.  
  53.  
  54. }
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement