• <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>

    極客戰記-保衛要塞

    若是你卡在這里了,那么看看這個攻略吧

    思緒1,簡單粗暴,不要慫,就是懟,裝備好就是可覺得所欲為

    1. 1

      選擇英雄和編程說話

    2. 2

      選擇裝備

    3. 3

      寫代碼

      while True:

          enemy = hero.findNearestEnemy()

          if enemy:

              hero.attack(enemy)

    4. 4

      運行

    思緒2,團隊合作,沉著闡發

    1. 1

      選擇英雄和編程說話

    2. 2

      選擇裝備

    3. 3

      寫代碼

      # 殺失落所有進攻的食人魔

      # 利用旗子遠離那些危險的食人魔

      def xx():

          while True:

              enemy = hero.findNearestEnemy()

              if enemy:

                  while True:

                      hero.attack(enemy)

                      if enemy.health<0:

                          break

              else:

                  break

      while True:

          enemy = hero.findNearestEnemy()

          if enemy:

              #if enemy.type!="munchkin" and enemy.type!="ogre" and enemy.type!="scout" and enemy.type!="shaman":

                  #hero.say(enemy.type)

              if hero.time>30 and (enemy.type=="shaman" or enemy.type=="thrower"):

                  hero.say("我得跑曩昔打長途了")

                  xx()

              elif hero.pos.x<48:

                  hero.moveXY(48,26)

              hero.shield()

    4. 4

      運行

    • 發表于 2018-05-21 00:00
    • 閱讀 ( 783 )
    • 分類:其他類型

    你可能感興趣的文章

    相關問題

    0 條評論

    請先 登錄 后評論
    admin
    admin

    0 篇文章

    作家榜 ?

    1. xiaonan123 189 文章
    2. 湯依妹兒 97 文章
    3. luogf229 46 文章
    4. jy02406749 45 文章
    5. 小凡 34 文章
    6. Daisy萌 32 文章
    7. 我的QQ3117863681 24 文章
    8. 華志健 23 文章

    聯系我們:uytrv@hotmail.com 問答工具
  • <noscript id="ecgc0"><kbd id="ecgc0"></kbd></noscript>
    <menu id="ecgc0"></menu>
  • <tt id="ecgc0"></tt>
    久久久久精品国产麻豆