Add turtle 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:20:30 -06:00
parent f90956da82
commit aa68630d06
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 51 additions and 0 deletions

View file

@ -49,5 +49,6 @@ Cowsay.moose
Cowsay.sheep Cowsay.sheep
Cowsay.stegosaurus Cowsay.stegosaurus
Cowsay.turkey Cowsay.turkey
Cowsay.turtle
Cowsay.vader_koala Cowsay.vader_koala
``` ```

View file

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

49
src/cows/turtle.cow.jl Normal file
View file

@ -0,0 +1,49 @@
"""
function turtle()
A mysterious turtle...
# Example
```jldoctest
julia> cowsay("Where is that pesky rabbit?", cow=Cowsay.turtle)
_____________________________
< Where is that pesky rabbit? >
-----------------------------
\\ ___-------___
\\ _-~~ ~~-_
\\ _-~ /~-_
/^\\__/^\\ /~ \\ / \\
/| O|| O| / \\_______________/ \\
| |___||__| / / \\ \\
| \\ / / \\ \\
| (_______) /______/ \\_________ \\
| / / \\ / \\
\\ \\^\\\\ \\ / \\ /
\\ || \\______________/ _-_ //\\__//
\\ ||------_-~~-_ ------------- \\ --/~ ~\\ || __/
~-----||====/~ |==================| |/~~~~~
(_(__/ ./ / \\_\\ \\.
(_(___/ \\_____)_)
```
"""
function turtle(;eyes="oo", tongue=" ", thoughts="\\")
the_cow =
"""
$thoughts ___-------___
$thoughts _-~~ ~~-_
$thoughts _-~ /~-_
/^\\__/^\\ /~ \\ / \\
/| O|| O| / \\_______________/ \\
| |___||__| / / \\ \\
| \\ / / \\ \\
| (_______) /______/ \\_________ \\
| / / \\ / \\
\\ \\^\\\\ \\ / \\ /
\\ || \\______________/ _-_ //\\__//
\\ ||------_-~~-_ ------------- \\ --/~ ~\\ || __/
~-----||====/~ |==================| |/~~~~~
(_(__/ ./ / \\_\\ \\.
(_(___/ \\_____)_)
"""
return the_cow
end