• 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 - pustynia Sarven - dust - kurz - Python

Szczegóły
14 styczeń 2021
3347

# Use a while to loop until you have counted 10 attacks.

attacks = 0
while attacks < 10:
    # Attack the nearest enemy!
    nearest = hero.findNearestEnemy()

Więcej…

Codecombat - pustynia Sarven - sarven rescue - Python

Szczegóły
14 styczeń 2021
3411

# Rescue the peasant from the bandits and return her to the village.
# Choose the path that suits you, avoiding patrols or facing them head on.
# Potions will grant random effects–some good, some bad.
# Feeling brave? Bonus if you can loot the ogre treasure chest.
item = self.findItems()
enemies = self.findEnemies()
flag = hero.findFlag("green")
while True:
    enemy = self.findNearest(self.findEnemies())
    item = self.findNearest(self.findItems())

Więcej…

Codecombat - pustynia Sarven - no pain no gain - bez bólu nie ma zysku - Python

Szczegóły
14 styczeń 2021
3281

# Zmień warunek while
# Biegnij dopóki życie bohatera będzie większe niż 200:
while hero.health > 200: # Δ Zmień tą linię !
    hero.moveXY(48, 24)
    hero.moveXY(16, 24)

Więcej…

Codecombat - pustynia Sarven - canyon of storms - Pustynia burz - Python

Szczegóły
14 styczeń 2021
3386

#return  #Commented out to stop infinite loop.
#return  #Commented out to stop infinite loop.
# Burza piaskowa nadchodzi !
# Yak może wykryć kiedy nadejdzie burza.

# Ta zmienna będzie użyta jako warunek.
yak = hero.findNearestEnemy()

Więcej…

Codecombat - pustynia Sarven - desert combat - Pustynna walka - Python

Szczegóły
14 styczeń 2021
3367

# pętle while powtarzają kod tak długo, aż warunek nie stanie się fałszywy

ordersGiven = 0
while ordersGiven < 5:
    # Przesuń się w dół o 10 m i wydaj każdemu ze sprzymierzeńców rozkaz dołączenia do bitwy ("Attack!"). Oni usłyszą Cię tylko jeśli stoisz bezpośrenio przed nimi.
    hero.moveXY(hero.pos.x, hero.pos.y-10)
    # Order your ally to "Attack!" with hero.say
    # They can only hear you if you are on the X.
    hero.say("Attack!")

Więcej…

Codecombat - forest shadow - leśny cień - Python

Szczegóły
18 grudzień 2020
3474

# Duże ogry nie zobaczą cie w lesie.
# Atakuj tylko male ogry w lesie.
# Zbierz tylko monety i klejnoty.
# Nie opuszczaj lasu i nie jedz,pij niczego.

while True:
    # Znajdź najbliższego wroga.
    enemy = hero.findNearestEnemy()
    # Atakuj tylo wtedy gdy typ to "thrower" albo "munchkin" .
    if enemy.type== "thrower" or enemy.type == "munchkin":
        hero.attack(enemy)

Więcej…

Codecombat - spring-thunder - wiosenny grzmot - Python

Szczegóły
18 grudzień 2020
3403

# Certain coins and gems attract lightning.
# The hero should only grab silver coins and blue gems.

while True:
    item = hero.findNearestItem()
    # A silver coin has a value of 2.
    # Collect if item.type is equal to "coin"
    # AND item.value is equal to 2.

Więcej…

Codecombat - teleport lasso - Python

Szczegóły
18 grudzień 2020
3530

# Our wizards teleport ogres from their camp here.
# They appear for a short period and they are stunned.
# Attack only weak and near ogres.

while True:

Więcej…

Strona 1 z 27

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Strony internetowe Lublin
  • Strony internetowe Puławy
  • Strony www Puławy
  • Strony www Lublin
  • Strony responsywne Lublin
wykonanie: kasai1.com