• Start
      • Back
      • Blog
      • Joomla 3 - administracja
      • Joomla 4 - administracja
      • Wordpress - administracja
      • Code Combat
      • Joomla czy Wordpress
      • Polityka prywatności
  • Portfolio
  • Strony internetowe
      • Back
      • Aktualizacje i szkolenia
      • Strony Responsywne
      • Jak pracuję
      • CMS Joomla
      • Pozycjonowanie strony
      • Hosting

Codecombat - the wizards haunt - Python

Szczegóły
11 lipiec 2020
1917

# Move to 'Zsofia' and get the secret number from her.
hero.moveXY(18, 20)
zso = hero.findNearestFriend().getSecret()

# Divide 'Zsofia's number by 4 to get 'Mihaly's number.
# Move to 'Mihaly' and say his magic number.
mih = zso / 4
hero.moveXY(30, 15)

Więcej…

Codecombat - coincrumbs - okruchy monet - Python

Szczegóły
11 lipiec 2020
1795

# Idź za śladem monet do czerwonego X przy wyjściu.

while True:
    # Ta funkcja znajduje najbliższy przedmiot.
    item = hero.findNearestItem()
    if item:
        # To przechowuje  item.pos lub pozycję w zmiennych.
        itemPosition = item.pos

Więcej…

Codecombat - the wizards plane - Python

Szczegóły
11 lipiec 2020
1779

# Move to 'Eszter' and get the secret number from her.
hero.moveXY(16, 32)
esz = hero.findNearestFriend().getSecret()

# Multiply by 3 and subtract 2 to get 'Tamas's number.
# Remember to use parentheses to do calculations in the right order.
# Move to 'Tamas' and say his magic number.
tam = (esz * 3) - 2
hero.moveXY(24, 28)
hero.say(tam)

Więcej…

Codecombat - white-rabbit - Biały królik - Python

Szczegóły
11 lipiec 2020
1937

# Follow the lightstone to navigate the traps.

while True:
    item = hero.findNearestItem()
    if item:
        # Store the item's position in a new variable using item.pos:
        item.pos

Więcej…

Codecombat - endangered burl - zagrożony Burl - Python

Szczegóły
11 lipiec 2020
1780

# Atakuj tylko wrogów typu "munchkin" i "thrower".
# Nie atakuj typu "burl". Uciekaj od typu "ogre"!
while True:
    enemy = hero.findNearestEnemy()
    
    # Pamiętaj: nie atakuj typu "burl"!
    if enemy.type == "burl":
        hero.say("Nie zatakuję tego Burla!")
    

Więcej…

Codecombat - chameleons - kameleony - Python

Szczegóły
11 lipiec 2020
1775

# Ogry przebrały się za -monety i klejnoty !

while True:
    enemy = hero.findNearestEnemy()
    # Jesli widzisz wroga -zaatakuj go.
    if enemy:
        hero.attack(enemy)

Więcej…

Codecombat - arrowproof wolf - strzałoodporny wilk - Python

Szczegóły
11 lipiec 2020
1835

# Collect mushrooms.

# Najpierw podejdź do zwierzaka wilka a następnie  obudź go (powiedz).
hero.moveXY(12, 34)
hero.say("mówie coś")

Więcej…

Codecombat - blind distance- strzał na ślepo - Python

Szczegóły
11 lipiec 2020
1773

# Twoim zadaniem jest powiedzieć im jaka jest odległość do ogrów.

# Ta funkcja znajduje najbliższego przeciwnika i zwraca odległość do niego.
# Jeśli nie ma wrogów, funkcja zwraca 0
def nearestEnemyDistance():
    enemy = hero.findNearestEnemy()
    result = 0
    if enemy:

Więcej…

Strona 18 z 27

  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • Strony internetowe Lublin
  • Strony internetowe Puławy
  • Strony www Puławy
  • Strony www Lublin
  • Strony responsywne Lublin
wykonanie: kasai1.com