Skip to content

Commit aaf2922

Browse files
committed
Explain cowsay
We no longer have people do the referenced exercise
1 parent b972e3e commit aaf2922

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

challenges/challenge-cowsay-two/readme.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
# Cowsay
22

3-
Do you remember [Cowsay](https://github.com/CodeYourFuture/JavaScript-Core-1-Challenges)? We learned about node packages and made a cow say stuff. Now, we know more about programming, let's figure out how to make a cow say things in Node by ourselves.
3+
Cowsay is a fun script that prints an [ASCII](https://simple.wikipedia.org/wiki/ASCII) cow with your words in a speech bubble. It works like this: there is a library of pictures of cows made out of ASCII characters. You call the script in your terminal and you pass in arguments. There are lots of options, but one argument is required: a text string for the cow to say.
4+
5+
```
6+
 ________
7+
< Mooooo >
8+
 --------
9+
        \   ^__^
10+
         \  (oo)\_______
11+
            (__)\       )\/\
12+
                ||----w |
13+
                ||     ||
14+
15+
```
16+
17+
Cowsay was originally written in [Perl](https://simple.wikipedia.org/wiki/Perl), but has been written in many other programming languages too. In this coursework, we will write it in JavaScript.
418

519
## Project
620

7-
For this project we don't need a package, a library or lots of options. Let's just get our own cow printing out and saying whatever we write in the command line. What would be helpful? I think we need to:
21+
Let's get one cow printing out and saying whatever we write in the command line. What would be helpful? I think we need to:
822

923
- [Accept an argument](https://nodejs.dev/learn/nodejs-accept-arguments-from-the-command-line) from the command line.
1024
- Output to the command line. You've already done this with console.log.

0 commit comments

Comments
 (0)