16
2
Challenge
Code an ASCII cookie of a kind according to the input.
Input
- The cookie kind. This is one of the three strings: "Plain", "Chocolate", or "Nuts". May be function arguments, stdin (or closest equivalent), or file arguments.
Output
- An ASCII cookie. See below.
Must be
___
/ \
| |
\___/
for Plain input,
___
/. .\
| . |
\___/
for Chocolate input, and finally
___
/^ \
|^ ^|
\___/
for Nut input.
Other information
- This is my first challenge, it's as simple as can be. Constructive feedback is greatly appreciated.
- Use any means to do so.
- Trailing spaces are fine.
- This is a code golf challenge, so shortest entry at the end of 9 days (Wednesday, the 12th of August 2015) wins.
Thank you!
The winner is Jakube using Pyth with 41 bytes. Thank you to all who participated. I will now task myself with coming up with more complicated challenges.


7
This is nice, but rather simple as it is. It could be massively improved by requiring user input for the diameter or quantity of cookies of each type. Do the chocolate chips and and nuts have to be in the location per the examples? (with variable diameter, they could perhaps be random.) That said, it's bad form to change the challenge after posting. I suggest you either 1. leave it as it is, or 2. delete it, think a bit more about it and/or post it in http://meta.codegolf.stackexchange.com/q/2140/15599 then repost later.
– Level River St – 2015-08-03T23:07:18.113@steveverrill Alright, thank you for the feedback. – The_Basset_Hound – 2015-08-03T23:14:32.367
1Allowing multiple toppings could have been another way to make this more interesting. Then again, simple looking challenges often get a lot of participation. BTW, two of the cookies have leading white space in the sample output. That's probably not intentional? – Reto Koradi – 2015-08-03T23:14:39.960
1I made a minor edit to cancel the indent, so all the cookies have the same leading whitespace. I assume the four leading spaces are a formatting issue and are not required? You should specify whether leading/trailing newlines are allowed. I would suggest disallowing unnecessary whitespace, with the exception of allowing an optional trailing newline. – Level River St – 2015-08-03T23:21:09.957
1Will functions be permitted? – MayorMonty – 2015-08-04T01:39:38.267
@SpeedyNinja Yes, "Use any means to do so." – The_Basset_Hound – 2015-08-04T01:56:00.740
1
After @steveverrill opened my eyes, this seems to be just a simplified version of Do you want to code a snowman?. Some further requirements, like the mentioned variable diameter, would really improve it.
– manatwork – 2015-08-04T10:36:38.093Can the chips/nuts be positioned anywhere inside the cookie? Or only in the positions you put in the example – Beta Decay – 2015-08-04T10:40:10.743
@BetaDecay Sorry for a late reply, the chips and nuts should be in the same positions they are in the examples. – The_Basset_Hound – 2015-08-04T21:22:33.513
@BassetHound Ah okay, thanks :) – Beta Decay – 2015-08-04T21:30:46.057