About 601,000 results
Open links in new tab
  1. Zero Sum Coding Tips - Ambassador - CodeCombat Discourse

    Mar 4, 2021 · Do you guys have any tips or code for Zero Sum? My code so far is: enemies = hero.findEnemies() nearestEnemy = hero.findNearest(enemies) enemy = hero.findNearestEnemy() # Your hero can collect coins and summon troops. if hero.gold > hero.costOf("artillery"): hero.summon("artillery") elif hero.gold > hero.costOf("griffin-rider"):

  2. Zero Sum item identification - Level Help - discourse.codecombat

    May 29, 2021 · here is my code: return item.value / hd(item) friend.distanceTo(x) hero.distanceTo(x) hero.command(friend, "move", x) hero.command(friend, "attack", x) a = 0. x = 0. while x < len(corpses): corpse = corpses[x] if corpse and hd(corpse) <= 20: a += 1. x += 1. if a >= 4: return True. break. a = 0. x = 0. for enemy in enemies: enemy = enemies[x]

  3. {SOLVED} Help with zero sum - Level Help - CodeCombat Discourse

    Mar 14, 2017 · enemies = hero.findEnemies() nearestEnemy = hero.findNearest(enemies) # Your hero can collect coins and summon troops. if hero.gold > hero.costOf("griffin-rider"): hero.summon("griffin-rider") if hero.gold > hero.costOf("paladin"): hero.summon("paladin") # She also commands your allies in battle. friends = hero.findFriends() for friend in friends:

  4. Some useful tips for CodeCombat players https://git.io/cocotips

    Apr 14, 2020 · In mirror matches (Zero Sum, Ace of Coders) it's easier to just do. In Python: In JavaScript: as both players have the same hero type (or Tharin if their game session is bugged out). If you have good enough glasses to use findByType() method, which allows you to find a unit by type, then for "archer" type in Python it will be:

  5. CodeCombat-Python-levels/fair-battle Answer at master - GitHub

    The attached codes are solutions to Code Combat levels and are written in Python. Most answers are not optimized or even the best answer but they meet all of the objectives for their respective level.

  6. CodeCombat/ (Zero Sum) Pender Code (Team Red) at master - GitHub

    My Codecombat Codes (Do not plagiarize). Contribute to GalaxyOwl4/CodeCombat development by creating an account on GitHub.

  7. CodeCombat-Python-Solutions-Vadim/Multiplayer/ZeroSum.py at ... - GitHub

    Codecombat. Contribute to a1ip/CodeCombat-Python-Solutions-Vadim development by creating an account on GitHub. Skip to content. Toggle navigation. Sign in Product Actions. Automate any workflow Packages. Host and manage packages Security. Find and fix vulnerabilities ...

  8. My CodeCombat Zero Sum tournament entry source code

    Check out https://gist.github.com/MHeasell/bb9f7253da45b5140a83 for the compiled version and http://michaelheasell.com/blog/2015/04/08/zero-sum-my-winning-strategy/ for a full write-up about my strategy. // Paths to the best coin via the "gravity" approach. // and is therefore proportional to distance. // so it should steer us away.

  9. Zero Sum — My Winning Strategy - Michael Heasell

    Apr 8, 2015 · The best way to find out about Zero Sum is to head over to CodeCombat and start playing! If that doesn’t take your fancy, I’ll explain the basics here so that you can understand a bit more about what I’m talking about. Zero Sum is, quite deliberately, a chaotic game.

  10. Zero Sum: Collecting Coins - Level Help - CodeCombat Discourse

    Aug 26, 2023 · Here is my code: if (hero.gold >= 50) { hero.summon("griffin-rider"); let friends = hero.findFriends(); for (let friend of friends) { let item = hero.findNearestItem(); let enemy = friend.findNearestEnemy(); if (enemy && friend && friend.type == "griffin-rider") { hero.command(friend, "attack", enemy); if(hero.isReady("fear")) {

Refresh