Advertisement
Guest User

Untitled

a guest
May 21st, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. class postac:
  2. ap = 0
  3. ad = 50
  4. hp = 800
  5. name = "null"
  6. wybrana = postac()
  7. wybrana.ad = "Ta postac zostala juz wybrana"
  8. wybrana.ap = "wybierz ponownie"
  9. wybrana.hp = "Dziekuje"
  10. wybrana.name = "wybrana"
  11.  
  12. Amumu = postac()
  13. Amumu.ad = 50
  14. Amumu.ap = 150
  15. Amumu.hp = 2000
  16. Amumu.name = "Amumu"
  17.  
  18. Aatrox = postac()
  19. Aatrox.ad = 100
  20. Aatrox.ap = 0
  21. Aatrox.hp = 2000
  22. Aatrox.name = "Aatrox"
  23.  
  24. Ahri = postac()
  25. Ahri.ad = 80
  26. Ahri.ap = 180
  27. Ahri.hp = 1600
  28. Ahri.name = "Ahri"
  29.  
  30. Akali = postac()
  31. Akali.ad = 100
  32. Akali.ap = 180
  33. Akali.hp = 1700
  34. Akali.name = "Akali"
  35.  
  36. Alistar = postac()
  37. Alistar.ad = 70
  38. Alistar.ap = 70
  39. Alistar.hp = 2700
  40. Alistar.name = "Alistar"
  41.  
  42. Anivia = postac()
  43. Anivia.ad = 60
  44. Anivia.ap = 120
  45. Anivia.hp = 1600
  46. Anivia.name = "Anivia"
  47.  
  48. Annie = postac()
  49. Annie.ad = 80
  50. Annie.ap = 190
  51. Annie.hp = 1450
  52. Annie.name = "Annie"
  53.  
  54. Ashe = postac()
  55. Ashe.ad = 170
  56. Ashe.ap = 20
  57. Ashe.hp = 1300
  58. Ashe.name = "Ashe"
  59.  
  60. Aurelion_Sol = postac()
  61. Aurelion_Sol.ad = 70
  62. Aurelion_Sol.ap = 170
  63. Aurelion_Sol.hp = 2200
  64. Aurelion_Sol.name = "Aurelion_Sol"
  65.  
  66.  
  67. tablica = [Aatrox, Ahri,Akali,Alistar,Amumu,Anivia,Annie,Ashe,Aurelion_Sol]
  68. a = int(input("wybierz "))
  69. postac1 = tablica[a]
  70. print (postac1.name)
  71. print (postac1.ad, "ad")
  72. print (postac1.ap, "ap")
  73. print (postac1.hp, "hp")
  74. print ("to twoj top na tą grę")
  75. tablica.pop(a)
  76. tablica.insert(a, wybrana)
  77.  
  78. b = int(input("wybierz "))
  79. postac2 = tablica[b]
  80. print (postac2.name)
  81. print (postac2.ad, "ad")
  82. print (postac2.ap, "ap")
  83. print (postac2.hp, "hp")
  84. print ("to twoj jungler na tą grę")
  85.  
  86. c = int(input("wybierz "))
  87. postac3 = tablica[c]
  88. print (postac3.name)
  89. print (postac3.ad, "ad")
  90. print (postac3.ap, "ap")
  91. print (postac3.hp, "hp")
  92. print ("to twoj mid na tą grę")
  93.  
  94. d = int(input("wybierz "))
  95. postac4 = tablica[d]
  96. print (postac4.name)
  97. print (postac4.ad, "ad")
  98. print (postac4.ap, "ap")
  99. print (postac4.hp, "hp")
  100. print ("to twoj adc na tą grę")
  101.  
  102. e = int(input("wybierz "))
  103. postac5 = tablica[e]
  104. print (postac5.name)
  105. print (postac5.ad, "ad")
  106. print (postac5.ap, "ap")
  107. print (postac5.hp, "hp")
  108. print ("to twoj supp na tą grę")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement