I'd like to know if codegolf does allow other kinds of challenges, like memory-size related ones (Given a structure, try to use the least amount of bits to store the same information) and so on. I don't know if this kind of challenge fits codegolfing or not.
3 Answers
There are two different usages of "code golf" here:
The tag code-golf is applied to challenges which involve competing to produce the shortest valid source code. More details and a list of challenges can be found by clicking on the tag name.
This website, "codegolf.stackexchange.com", has the full name Programming Puzzles & Code Golf. This site has several different challenge types, code golf being just one of them.
For example:
Sometimes people post challenges that have their own scoring method that does not fit exactly into one of these categories. These are tagged code-challenge, and the challenge post contains a detailed description of how submissions will be scored.
We also have non-challenge questions, asking for advice on solving such challenges. These are tagged tips.
From the code-golf tag wiki:
Code-golf is a competition to solve a particular problem in the fewest bytes of source code. If you want to score by characters instead of bytes, state this explicitly in the challenge. If source code length is not the primary scoring criterion, consider using another tag instead.
So, no, code golf is solely about code length.
-
\$\begingroup\$ I don't think OP meant code-golf instead of CodeGolf.SE \$\endgroup\$ Sep 12, 2016 at 4:55
No
code-golf is only about the shortest code in any language. Other challenges are tagged code-challenge.
-
\$\begingroup\$ I see, thanks. Do challenges like the one i described already exists? inside or outside of stackexchange, i don't see a tag related to my interest. \$\endgroup\$– AggggSep 7, 2016 at 10:56
-
\$\begingroup\$ @Agggg There is fastest-code for the fastest code possible, but for 'memory golf', tag your challenge as code-challenge and describe the winning criteria (here, the least memory used by a program) \$\endgroup\$ Sep 7, 2016 at 11:19
-
\$\begingroup\$ @Agggg The craziest of all: code-bowling is about the longest code possible. \$\endgroup\$ Sep 12, 2016 at 4:56