Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. CrematedCube
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    CrematedCube

    @CrematedCube

    1
    Posts
    761
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    CrematedCube Follow

    Posts made by CrematedCube

    • RE: code help for sorting creeps by energy

      I'd say the problem with including the transferring creep in transferCreeps follows like this: Whenever your digger has the highest energy in the group (which is usually the case) then it will itself be transferCreeps[0] and do nothing. Otherwise, it'll completely ignore any creeps with less energy than it and only transfer to creeps with more energy than itself. Hopefully this explains the weird behavior.

      posted in Help
      CrematedCube