Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Generate a jack-o-lantern with the specified parameters.
The parenthesis indicate the correct character to plot for the specified attribute.
The valid parameters are:
eye: flat(-) triangle(^) inverted-triangle(V) circle(O) wavy(~) tiny(.) narrow(|) star(*) x(x),left/right
nose: flat(-) triangle(^) inverted-triangle(V) circle(O) wavy(~) tiny(.) narrow(!) star(*) x(x)
mouth: flat(---) triangle(^) inverted-triangle(V) circle(O) wavy(/\/) tiny(.) star(*) x(X)
stem: long short none,straight/tilted/curved
The eye parameter sets the eye shape. left/right selects the left or right eye the default is both eyes.
Options after the "," are optional. Parameters for stem are order independent with either or both accepted.
"eye" requires the first parameter.
nose and mouth select the respective shapes.
go! finishes the pumpkin and prints it separated by ------- and a newline.
Most parameters are carried from pumpkin to pumpkin if not explicitly set.
I have included extensive test cases to reduce the amount of practical embedded solutions.
Parsing the input data is not trivial. Good luck
exec is denied
now post-mortem time, all source codes will be revealed
eye: x nose: x mouth: x go! eye: star nose: star mouth: star stem: short go! eye: flat,left eye: wavy,right nose: triangle mouth: wavy go! eye: inverted-triangle nose: circle mouth: flat go! eye: narrow nose: star mouth: tiny stem: long go! eye: narrow,right eye: triangle,left nose: narrow mouth: x stem: short,curved eye: circle nose: x mouth: inverted-triangle stem: curved,long go! eye: triangle,left eye: inverted-triangle,right nose: flat mouth: tiny go! eye: wavy nose: tiny mouth: wavy stem: straight go! eye: tiny mouth: wavy nose: triangle stem: long,straight go! eye: circle mouth: wavy nose: narrow stem: none go! eye: narrow nose: inverted-triangle mouth: flat stem: long,tilted go! eye: circle,left eye: flat,right nose: triangle mouth: wavy go! eye: tiny,right eye: circle,left nose: flat mouth: flat stem: short go! eye: inverted-triangle nose: star mouth: wavy go! eye: flat,right eye: flat,left nose: inverted-triangle mouth: flat go! eye: tiny nose: tiny mouth: flat go! eye: circle nose: tiny mouth: inverted-triangle stem: long,curved go! eye: circle nose: triangle mouth: wavy stem: straight,short go!
__\__ / x x \ | x | \ X / ------- __\__ / * * \ | * | \ * / ------- __\__ / - ~ \ | ^ | \ \/\ / ------- __\__ / V V \ | O | \ --- / ------- \ __\__ / | | \ | * | \ . / ------- ( __)__ / O O \ | x | \ V / ------- ( __)__ / ^ V \ | - | \ . / ------- | __|__ / ~ ~ \ | . | \ \/\ / ------- | __|__ / . . \ | ^ | \ \/\ / ------- __ __ / O O \ | ! | \ \/\ / ------- \ __\__ / | | \ | V | \ --- / ------- \ __\__ / O - \ | ^ | \ \/\ / ------- __\__ / O . \ | - | \ --- / ------- __\__ / V V \ | * | \ \/\ / ------- __\__ / - - \ | V | \ --- / ------- __\__ / . . \ | . | \ --- / ------- ( __)__ / O O \ | . | \ V / ------- __|__ / O O \ | ^ | \ \/\ / -------
mouth: flat nose: triangle eye: circle go!
__\__ / O O \ | ^ | \ --- / -------
Rank | User | Size | Time | Date | Statistics |
---|---|---|---|---|---|
1 | macik | 297 | 0.0267 | 2012/11/05 02:47:57 | 0B / ?B / ?B |
2 | ninjalj | 470 | 0.0277 | 2012/11/03 02:07:56 | 0B / 109B / 324B |
Rank | User | Size | Time | Date | Statistics |
---|---|---|---|---|---|
1 | hallvabo | 237 | 0.0347 | 2012/11/01 18:00:31 | 139B / 64B / 32B |
Rank | User | Size | Time | Date | Statistics |
---|---|---|---|---|---|
1 | I., S.(embed) | 304 | 0.0659 | 2012/11/07 13:05:57 | 0B / 67B / 168B |
2 | I., S.(embed.bin) | 250 | 0.0745 | 2012/11/08 06:50:09 | 61B / 70B / 105B |
3 | I., S.(embed) | 296 | 0.1065 | 2012/11/08 06:48:09 | 0B / 69B / 167B |
Rank | User | Size | Time | Date | Statistics |
---|---|---|---|---|---|
1 | smkt | 1799 | 0.0214 | 2012/10/31 16:51:05 | 0B / 821B / 847B |
2 | smkt (uncompressed) | 3459 | 0.0272 | 2012/10/31 14:37:42 | 154B / 1821B / 993B |
3 | smkt | 1720 | 0.0244 | 2012/11/08 12:23:00 | 0B / 835B / 754B |
Rank | Lang | User | Size | Score |
---|---|---|---|---|
1 | Python | hallvabo | 237 | 10000 |
2 | J | I., S.(embed.bin) | 250 | 9480 |
3 | Perl | macik | 297 | 7979 |
4 | C | smkt | 1720 | 1377 |