Add stegosaurus cowfile

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2021-11-23 17:02:07 -06:00
parent 0223384197
commit c5820d1ddb
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 52 additions and 0 deletions

View file

@ -39,5 +39,6 @@ Cowsay.koala
Cowsay.meow
Cowsay.moose
Cowsay.sheep
Cowsay.stegosaurus
Cowsay.vader_koala
```

View file

@ -23,6 +23,7 @@ include("cows/mutilated.cow.jl")
include("cows/sheep.cow.jl")
include("cows/skeleton.cow.jl")
include("cows/small.cow.jl")
include("cows/stegosaurus.cow.jl")
include("cows/udder.cow.jl")
include("cows/vader-koala.cow.jl")
include("cows/vader.cow.jl")

View file

@ -0,0 +1,50 @@
##
## A stegosaur with a top hat?
##
"""
function stegosaurus()
A stegosaur with a top hat?
# Example
```jldoctest
julia> cowsay("How do you do?", cow=Cowsay.stegosaurus)
________________
< How do you do? >
----------------
\\ . .
\\ / `. .' "
\\ .---. < > < > .---.
\\ | \\ \\ - ~ ~ - / / |
_____ ..-~ ~-..-~
| | \\~~~\\.' `./~~~/
--------- \\__/ \\__/
.' O \\ / / \\ "
(_____, `._.' | } \\/~~~/
`----. / } | / \\__/
`-. | / | / `. ,~~|
~-.__| /_ - ~ ^| /- _ `..-'
| / | / ~-. `-. _ _ _
|_____| |_____| ~ - . _ _ _ _ _>
```
"""
function stegosaurus(;eyes="oo", tongue=" ", thoughts="\\")
the_cow =
"""
$thoughts . .
$thoughts / `. .' "
$thoughts .---. < > < > .---.
$thoughts | \\ \\ - ~ ~ - / / |
_____ ..-~ ~-..-~
| | \\~~~\\.' `./~~~/
--------- \\__/ \\__/
.' O \\ / / \\ "
(_____, `._.' | } \\/~~~/
`----. / } | / \\__/
`-. | / | / `. ,~~|
~-.__| /_ - ~ ^| /- _ `..-'
| / | / ~-. `-. _ _ _
|_____| |_____| ~ - . _ _ _ _ _>
"""
return the_cow
end