Add three-eyes 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:15:22 -06:00
parent 37ee7beb81
commit b2f81bd664
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 34 additions and 0 deletions

View file

@ -12,6 +12,7 @@ Cowsay.mutilated
Cowsay.skeleton Cowsay.skeleton
Cowsay.small Cowsay.small
Cowsay.supermilker Cowsay.supermilker
Cowsay.three_eyes
Cowsay.udder Cowsay.udder
Cowsay.vader Cowsay.vader
Cowsay.www Cowsay.www

View file

@ -26,6 +26,7 @@ include("cows/small.cow.jl")
include("cows/stegosaurus.cow.jl") include("cows/stegosaurus.cow.jl")
include("cows/supermilker.cow.jl") include("cows/supermilker.cow.jl")
include("cows/surgery.cow.jl") include("cows/surgery.cow.jl")
include("cows/three-eyes.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")

View file

@ -0,0 +1,32 @@
"""
function three_eyes()
A cow with three eyes, brought to you by dpetrou@csua.berkeley.edu
# Example
```jldoctest
julia> cowsay("The better to see you with...", cow=Cowsay.three_eyes)
_______________________________
< The better to see you with... >
-------------------------------
\\ ^___^
\\ (ooo)\\_______
(___)\\ )\\/\\
||----w |
|| ||
```
"""
function three_eyes(;eyes="oo", tongue=" ", thoughts="\\")
eye = first(eyes)
eyes = repeat(eye, 3)
the_cow =
"""
$thoughts ^___^
$thoughts ($eyes)\\_______
(___)\\ )\\/\\
$tongue ||----w |
|| ||
"""
return the_cow
end