I've had a couple challenges in mind that are somewhat along the lines of:

Do x in as many ways as possible, with as little code as possible.

However, I'm having a hard time settling on how to score this. I'd like a way that gives fair weight to the "many ways" factor while still very much encouraging a mentality.

I've already seen tags or suggestions for "code chess", "code bowling", "atomic code golf", etc - most of which seem to not have gone over well. Is this a similarly bad idea? Or is there already another name for it, and a standard means of scoring?

  • \$\begingroup\$ Can you objectively define whether two programs are solving the task in the same way? \$\endgroup\$ Commented Nov 26, 2013 at 12:06
  • \$\begingroup\$ @PeterTaylor Yes. Wouldn't be a really fair challenge if you couldn't. \$\endgroup\$
    – Iszi
    Commented Nov 26, 2013 at 13:57

1 Answer 1

  number of ways
-----------------   ?
 character count

Of course, it will need to be complicated enough that there are no 1-3 character solutions.

  • \$\begingroup\$ If I'm reading this right, the higher score should win? My first thought was actually the inverse - characters/ways - and low score wins. Any thoughts on problems I might encounter, or should avoid, other than the 1-3 character thing? \$\endgroup\$
    – Iszi
    Commented Nov 25, 2013 at 19:48
  • \$\begingroup\$ yeah, that's a high score wins metric. The inverse is just as good \$\endgroup\$ Commented Nov 25, 2013 at 21:00
  • \$\begingroup\$ Define "number of ways". If it's ambiguous, people will stretch it. Also, beware of cases where linear growth of code length causes superlinear growth of the number of ways. \$\endgroup\$ Commented Dec 29, 2013 at 5:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .