Slashdot Mirror


545-Person Programming War Declares a Winner

An anonymous reader writes: A while back we discussed Code Combat, a multiplayer game that lets players program their way to victory. They recently launched a tournament called Greed, where coders had to write algorithms for competitively collecting coins. 545 programmers participated, submitting over 126,000 lines of code, which resulted in 390 billion statements being executed on a 673-core supercomputer. The winner, going by the name of "Wizard Dude," won 363 matches, tied 14, and lost none! He explains his strategy: "My coin-collecting algorithm uses a novel forces-based mechanism to control movement. Each coin on the map applies an attractive force on collectors (peasants/peons) proportional to its value over distance squared. Allied collectors and the arena edges apply a repulsive force, pushing other collectors away. The sum of these forces produces a vector indicating the direction in which the collector should move this turn. The result is that: 1) collectors naturally move towards clusters of coins that give the greatest overall payoff, 2) collectors spread out evenly to cover territory. Additionally, the value of each coin is scaled depending on its distance from the nearest enemy collector, weighting in favor of coins with an almost even distance. This encourages collectors not to chase lost coins, but to deprive the enemy of contested coins first and leave safer coins for later."

18 of 57 comments (clear)

  1. Change coin to insurgent by Anonymous Coward · · Score: 4, Funny

    and upload this to the drone control network.

    1. Re:Change coin to insurgent by ZombieBraintrust · · Score: 2

      That would only make sense if there were two competing drone networks trying to kill the same people.

    2. Re:Change coin to insurgent by barfy · · Score: 2

      ...It's a moral imperative!

  2. Re:Uhm, trademark problem.... by SQLGuru · · Score: 4, Funny

    I thought Greed was getting kickbacks from the lobbying groups to buy your support for questionable bills.

  3. $5.74 == Wow hardware resources have become cheap! by origin2k · · Score: 3

    The final ranking was performed with a 673-core computer cluster, which simulated 153,439 games in under one hour for just $5.74

  4. Interdisciplinary crossover by upontheturtlesback · · Score: 5, Insightful

    This is really interesting and exciting work. In 2010, we showed that nearly this exact algorithm is used by neonates (newborns) to govern their visual attention and eye movements, and it explains much of what we know about newborn visual attention. It's exciting to see that when you essentially parallelize the algorithm with multiple agents that are aware of each other, it becomes an extremely efficient algorithm for resource collection in a completely different field/task. http://www.ncbi.nlm.nih.gov/pu...

    1. Re:Interdisciplinary crossover by macklin01 · · Score: 4, Interesting

      We also use very similar force algorithms in our cancer models. :-) e.g., http://www.sciencedirect.com/s...

      The description of the agents and forces in this summary was actually very well done.

      --
      OpenSource.MathCancer.org: open source comp bio
    2. Re:Interdisciplinary crossover by John+Bokma · · Score: 5, Informative

      "Free full text" but no link to download the PDF (at least, I don't see it). PDF: http://psych.mcmaster.ca/maure...

    3. Re:Interdisciplinary crossover by upontheturtlesback · · Score: 2

      That's really cool! I find it really interesting and elegant to see the same simple model describe the behavior of such disparate systems that, on the surface, look complicated, but can be described by the sum of simple mechanisms.

      I agree, the summary was really well written.

      That's a good question, about using similar techniques for image processing and object segmentation from a scene. From a cognitive standpoint, neonates rapidly build on this simple model over their first few months of life as they begin to represent things in world-centered rather than retina-centered coordinates, and begin to learn the basic visual features in the environment (sort of like an alphabet of shapes) that objects tend to be constructed out of. I'm not familiar with most of the image segmentation literature, but I think they're working on doing things that are conceptually similar -- having a hierarchy of feature detectors built from low-level features that eventually contain enough features to recognize entire objects.

    4. Re:Interdisciplinary crossover by gringer · · Score: 2

      You need to click on the "Elsevier Open Access" link from NCBI, which is a direct link to the article on the publisher's website (this location is where you click for all PubMed articles, as long as the publisher has provided access in that way). PubMed never displays complete articles.

      After clicking through, there's a "Download PDF" link at the top left of the article, just under the green Science Direct header.

      --
      Ask me about repetitive DNA
    5. Re:Interdisciplinary crossover by cbhacking · · Score: 2

      The goal is that the attraction to the coins is greater when you're close (so you don't wander past one, pulled by that large cluster off to the side) and the repulsion is lesser when you're further away (so two allies can turn directly towards each other to pick up coins that lie between both, even though they repel each other).

      --
      There's no place I could be, since I've found Serenity...
  5. $5.74 == Wow hardware resources have become cheap! by schmatz · · Score: 3, Interesting

    They sure have! We just spun up 20 c3.8xlarge spot instances on Amazon, AWS is pretty magical.

  6. Re:Uhm, trademark problem.... by mu51c10rd · · Score: 5, Funny

    I thought Greed was getting kickbacks from the lobbying groups to buy your support for questionable bills.

    No, that's called Politics.

  7. neat! by Charliemopps · · Score: 2

    This is a very fun game! I've been looking for stuff like this. Normally I have fun writing stuff like this in games until they ban me for "Hacking" when really the hacking was the only fun part of me. Now the hacking bit IS the game.

    Maybe I can ditch my EVE mining bots now ;-)

  8. Re: $5.74 == Wow hardware resources have become ch by guruevi · · Score: 2

    I can get 8 core systems sub $1k. It depends on the type of hardware really which it doesn't specify; 20+ cores in a single machine has been available since at least the turn of the century they always cost an arm and a leg though because of the complexities of integrating that many CPUs in a single machine. A combination of boxes amounting to the same amount of CPU, RAM etc has always been cheaper but also larger and harder to use.

    --
    Custom electronics and digital signage for your business: www.evcircuits.com
  9. Freakin' coders. by Kazoo+the+Clown · · Score: 3, Interesting

    You can tell these guys are all lamer coders, they can't document worth squat. In the forum some guy asks for clear docs and they repond in essense with "just run our simulator, it's too complicated to explain." What a bunch of hosers. A competition like this ought to have clearly deliniated parameters. From reading their page I can't tell a darn thing about what the "Greed" environment is, what the problem to be solved is, and the summary of the winning solution on the Slashdot article here presumes you already know exactly what the conditions and goal with which the warring program must run. I see references on the linked contest site to coins that "randomly appear" and not much more. There's no way he could submit his solution to a journal except the "Journal for Irreproducible Results." Lazy bastards. There may be an interesting solution to something here, but there's seems no way to tell exactly what without reverse engineering their simulator.

  10. Re: $5.74 == Wow hardware resources have become ch by guruevi · · Score: 3, Informative

    It really depends on your calculations (yes, I work in academic research). You can get very large, very parallel problems and have enough with 56k modems in between nodes and there are those where 12x Infiniband is not enough. It also depends on the person implementing the system, how well versed they are in the subject matter and cluster programming, the languages they use and whether or not what they write is aware of what is happening where.

    The fabric can be relatively cheap actually, 24 port 10Gbps and QDR Infiniband switches can be had sub-5k these days (unless you go Cisco off course) especially in blade systems. All-in-all the hardware for clusters has gotten very, very cheap. Amazon wouldn't be selling it at $5/h if it weren't profitable.

    Large research clusters BTW (such as the ones at Fermilab, CERN or your average University) are usually large sets of 2/4/8 core systems, sometimes with a few very large nodes thrown in or these days a set of GPU nodes. 20-core nodes are rare in actual clusters a la Blue Gene/Q

    --
    Custom electronics and digital signage for your business: www.evcircuits.com