Add mutilated 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 16:46:22 -06:00
parent ad5f481222
commit 2af2318128
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 30 additions and 0 deletions

View file

@ -10,6 +10,7 @@ Cowsay.cower
Cowsay.dragon_and_cow Cowsay.dragon_and_cow
Cowsay.mech_and_cow Cowsay.mech_and_cow
Cowsay.moofasa Cowsay.moofasa
Cowsay.mutilated
Cowsay.udder Cowsay.udder
Cowsay.vader Cowsay.vader
Cowsay.www Cowsay.www

View file

@ -19,6 +19,7 @@ include("cows/mech-and-cow.cow.jl")
include("cows/meow.cow.jl") include("cows/meow.cow.jl")
include("cows/moofasa.cow.jl") include("cows/moofasa.cow.jl")
include("cows/moose.cow.jl") include("cows/moose.cow.jl")
include("cows/mutilated.cow.jl")
include("cows/udder.cow.jl") include("cows/udder.cow.jl")
include("cows/vader-koala.cow.jl") include("cows/vader-koala.cow.jl")
include("cows/vader.cow.jl") include("cows/vader.cow.jl")

28
src/cows/mutilated.cow.jl Normal file
View file

@ -0,0 +1,28 @@
"""
function mutilated()
A mutilated cow, from aspolito@csua.berkeley.edu
# Example
```jldoctest
julia> cowsay("I wouldn't have been so eager to make head cheese...", cow=Cowsay.mutilated)
______________________________________________________
< I wouldn't have been so eager to make head cheese... >
------------------------------------------------------
\\ \\_______
v__v \\ \\ O )
(oo) ||----w |
(__) || || \\/\\
```
"""
function mutilated(;eyes="oo", tongue=" ", thoughts="\\")
the_cow =
"""
$thoughts \\_______
v__v $thoughts \\ O )
($eyes) ||----w |
(__) || || \\/\\
$tongue
"""
return the_cow
end