5
\$\begingroup\$

The Challenge: Make the shortest program to confirm that 12 is the answer.

(The puzzle is from Ian Stewart's "Cabinet of Mathematical Curiosities". This is my first code golf question. I hope this type of thing is allowed)

In Scrabble the following are the letter scores:
AEIOULNRST score 1 each
DG score 2 each
BCMP score 3 each
FHVWY score 4 each
K scores 5
JX score 8 each
QX score 10 each.

\$\endgroup\$

closed as unclear what you're asking by Martin Ender, Geobits, Optimizer, Level River St, hmatt1 Sep 15 '14 at 15:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    \$\begingroup\$ I would remove the answer from the description and add some rules. Like hard coding is not allowed etc. Also might be fun if people can find other things. Perhaps its possible that the score and the number(digits) are palindrome (and numbers consist of more than 2 digits. \$\endgroup\$ – Teun Pronk Sep 15 '14 at 14:25
  • 1
    \$\begingroup\$ @TeunPronk My point is that (as it stands now), you could just use input "twelve" to those answers and compare it to 12 to "confirm that 12 is the answer". This one is unclearly written, but I'd retract if it's given a good spec that better distinguishes it from the other. \$\endgroup\$ – Geobits Sep 15 '14 at 14:29
  • 4
    \$\begingroup\$ @TeunPronk My close vote was for unclear, not duplicate. I mentioned the other one in comments so that any editor wouldn't unknowingly make it an exact duplicate. \$\endgroup\$ – Geobits Sep 15 '14 at 14:34
  • 1
    \$\begingroup\$ @TeunPronk Thanks for helpful comments. I included the answer because I thought as a programming challenge it is way below the capacity of any programmer worth his salt.I am working on a way to refine the question. \$\endgroup\$ – Donagh McCarthy Sep 15 '14 at 14:56
  • 1
    \$\begingroup\$ Either try and solve the problem here, or delete and repost in the sandbox (then when it's fixed you can delete and post back here). Don't do both. I think sandbox is the best place because there are quite big issues with this question. Even allowing for some flexibility, the number of hits is going to be small, which makes the question vulnerable to hardcoded answers. Throwing an idea out: I suggest the user might enter a number (in figures)between 0 and 999 (or 999999) and the program would output the scrabble score for that number. Use of a and & one with 100 would need clarification. \$\endgroup\$ – Level River St Sep 15 '14 at 19:06

Browse other questions tagged or ask your own question.