diff --git a/subjects/ascii-art-reverse.en.md b/subjects/ascii-art-reverse.en.md index 3d22e5b1..d22616bd 100644 --- a/subjects/ascii-art-reverse.en.md +++ b/subjects/ascii-art-reverse.en.md @@ -4,9 +4,9 @@ Ascii-art-reverse consists on reversing the process, converting the graphic representation into a text. -- You will have to create a text file with a graphic representation of a random phrase. +- You will have to create a text file with a graphic representation of a random `string`. - The argument will be a **flags**, `--reverse=`, in which `--reverse` is the flag and `` is the file name. -- The program must print this phrase in **normal text**. +- The program must print this `string` in **normal text**. This project will help you learn about : diff --git a/subjects/ascii-art.en.md b/subjects/ascii-art.en.md index 7214bbe5..c43ea597 100644 --- a/subjects/ascii-art.en.md +++ b/subjects/ascii-art.en.md @@ -21,30 +21,68 @@ This project will help you learn about : - Your project must be written in **Go**. - The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md). - It is recommended that the code should present a **test file**. -- It will be given a `banner` file with a specific graphical template representation of ASCII. +- It will be given some [**banner**](https://github.com/01-edu/public/ascii-banners) files with a specific graphical template representation of ASCII. The files are formatted in a way that it is not necessary to change them. + +### Banner Format + +- Each character as an height of 8 lines. +- Characters are separate by a new line `\n`. +- Here is an example (one dot represents one space) : + +```console + +...... +...... +...... +...... +...... +...... +...... +...... + +._.. +|.|. +|.|. +|.|. +|_|. +(_). +.... +.... + +._._.. +(.|.). +.V.V.. +...... +...... +...... +...... +...... + +etc +``` ### Usage ```console student@ubuntu:~/ascii-art$ go build student@ubuntu:~/ascii-art$ ./ascii-art "hello" - _ _ _ - | | | | | | - | |__ ___ | | | | ___ - | _ \ / _ \ | | | | / _ \ - | | | | | __/ | | | | | (_) | - |_| |_| \___| |_| |_| \___/ - - + _ _ _ + | | | | | | + | |__ ___ | | | | ___ + | _ \ / _ \ | | | | / _ \ + | | | | | __/ | | | | | (_) | + |_| |_| \___| |_| |_| \___/ + + student@ubuntu:~/ascii-art$ ./ascii-art "HeLlO" - _ _ _ _ ____ - | | | | | | | | / __ \ - | |__| | ___ | | | | | | | | - | __ | / _ \ | | | | | | | | - | | | | | __/ | |____ | | | |__| | - |_| |_| \___| |______| |_| \____/ - - + _ _ _ _ ____ + | | | | | | | | / __ \ + | |__| | ___ | | | | | | | | + | __ | / _ \ | | | | | | | | + | | | | | __/ | |____ | | | |__| | + |_| |_| \___| |______| |_| \____/ + + student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" _ _ _ _ _______ _ | | | | | | | | |__ __| | | diff --git a/subjects/ascii-color.en.md b/subjects/ascii-color.en.md index fdc160b6..fc0fecd4 100644 --- a/subjects/ascii-color.en.md +++ b/subjects/ascii-color.en.md @@ -2,11 +2,11 @@ ### Objectives -You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as the first subject but with colors. +You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but with colors. - The output should manipulate colors using **flags**, `--color=`, in which `--color` is the flag and `` is the color of choice. -- You should be able to specify which letter you want to be colored (use your imagination for this one). -- If the letter isn't specified, the whole phrase should be colored. +- You should be able to specify a single or a set of letters you want to be colored (use your imagination for this one). +- If the letter isn't specified, the whole `string` should be colored. This project will help you learn about : @@ -23,4 +23,3 @@ This project will help you learn about : - Your project must be written in **Go**. - The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md). - It is recommended that the code should present a **test file**. -- You may use the same `banner` file. diff --git a/subjects/ascii-fs.en.md b/subjects/ascii-fs.en.md index 9a342c63..ae1e1535 100644 --- a/subjects/ascii-fs.en.md +++ b/subjects/ascii-fs.en.md @@ -2,7 +2,7 @@ ### Objectives -You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as the first subject but the second argument must be the name of the template. +You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but the second argument must be the name of the template. This project will help you learn about : @@ -18,6 +18,7 @@ This project will help you learn about : - Your project must be written in **Go**. - The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md). - It is recommended that the code should present a **test file**. +- You can see all about the **banners** [here](https://github.com/01-edu/public/ascii-art.en.md). ### Usage @@ -32,15 +33,23 @@ student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard |_| |_| \___| |_| |_| \___/ -student@ubuntu:~/ascii-art$ ./ascii-art "hello" shadow - oooo oooo oooo - `888 `888 `888 - 888 .oo. .ooooo. 888 888 .ooooo. - 888P"Y88b d88' `88b 888 888 d88' `88b - 888 888 888ooo888 888 888 888 888 - 888 888 888 .o 888 888 888 888 - o888o o888o `Y8bod8P' o888o o888o `Y8bod8P' - -student@ubuntu:~/ascii-art$ +student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" shadow + +_| _| _| _| _|_|_|_|_| _| _| +_| _| _|_| _| _| _|_| _| _|_|_| _|_| _| _|_| _|_| _| +_|_|_|_| _|_|_|_| _| _| _| _| _| _| _| _|_|_|_| _|_| _|_|_|_| _| +_| _| _| _| _| _| _| _| _| _| _| _| _| +_| _| _|_|_| _| _| _|_| _| _| _| _|_|_| _| _|_|_| _| + + +student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" thinkertoy + +o o o o o-O-o o +| | | | | | o +O--O o-o | | o-o | O--o o-o o-o o-o | +| | |-' | | | | | | | |-' | |-' o +o o o-o o o o-o o o o o-o o o-o + O + student@ubuntu:~/ascii-art$ ``` diff --git a/subjects/ascii-align.en.md b/subjects/ascii-justify.en.md similarity index 68% rename from subjects/ascii-align.en.md rename to subjects/ascii-justify.en.md index 0b78798e..ab5078fe 100644 --- a/subjects/ascii-align.en.md +++ b/subjects/ascii-justify.en.md @@ -1,12 +1,13 @@ -## ascii-art-align +## ascii-art-justify ### Objectives -You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as the first subject but the representation should be formatted using a flag `--align=`, in which `type` can be : +You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but the representation should be formatted using a **flag** `--align=`, in which `type` can be : - center - left - right +- justify This project will help you learn about : @@ -22,7 +23,6 @@ This project will help you learn about : - Your project must be written in **Go**. - The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md). - It is recommended that the code should present a **test file**. -- You should build your one files with the templates you desire. ### Usage @@ -47,13 +47,22 @@ This project will help you learn about : | | | | |student@ubuntu:~/ascii-art$ ./ascii-art "hello" shadow --align=right | -| oooo oooo oooo | -| `888 `888 `888 | -| 888 .oo. .ooooo. 888 888 .ooooo. | -| 888P"Y88b d88' `88b 888 888 d88' `88b | -| 888 888 888ooo888 888 888 888 888 | -| 888 888 888 .o 888 888 888 888 | -| o888o o888o `Y8bod8P' o888o o888o `Y8bod8P' | | | +| _| _| _| | +| _|_|_| _|_| _| _| _|_| | +| _| _| _|_|_|_| _| _| _| _| | +| _| _| _| _| _| _| _| | +| _| _| _|_|_| _| _| _|_| | +| | +| | +|student@ubuntu:~/ascii-art$ ./ascii-art "hello" shadow --align=justify | +| | +|_| | +|_|_|_| _|_| _| _| _| _|_|_| _| _|_| _|_| _| _| _|_| _| _| | +|_| _| _| _| _| _| _| _| _| _|_| _|_|_|_| _| _| _| _| _| _| | +|_| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| | +|_| _| _|_| _| _| _|_|_| _| _|_|_| _|_|_| _|_| _|_|_| | +| _| | +| _|_| | |student@ubuntu:~/ascii-art$ | ``` diff --git a/subjects/ascii-output.en.md b/subjects/ascii-output.en.md index 8765c25d..a4b40d07 100644 --- a/subjects/ascii-output.en.md +++ b/subjects/ascii-output.en.md @@ -2,10 +2,9 @@ ### Objectives -Ascii-art-output consists on receiving two strings. The first argument will be converted into a graphic representation of ASCII and written into a file named by using the second argument. +- You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but writing the result into a file. -- The second argument will be a **flags**, `--output=`, in which `--output` is the flag and `` is the file name. -- In case the second argument is not present it should print the graphic representation. +- The file must be named by using the flag `--output=`, in which `--output` is the flag and `` is the file name. This project will help you learn about : @@ -21,7 +20,6 @@ This project will help you learn about : - Your project must be written in **Go**. - The code must respect the [**good practices**](https://github.com/01-edu/public/good-practices.en.md). - It is recommended that the code should present a **test file**. -- You may use the same `banner` file. ### Usage @@ -29,23 +27,23 @@ This project will help you learn about : student@ubuntu:~/ascii-art$ go build student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard --output=banner.txt student@ubuntu:~/ascii-art$ cat banner.txt - _ _ _ - | | | | | | - | |__ ___ | | | | ___ - | _ \ / _ \ | | | | / _ \ - | | | | | __/ | | | | | (_) | - |_| |_| \___| |_| |_| \___/ - - -student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" standard --output=banner.txt + _ _ _ +| | | | | | +| |__ ___ | | | | ___ +| _ \ / _ \ | | | | / _ \ +| | | | | __/ | | | | | (_) | +|_| |_| \___| |_| |_| \___/ + + +student@ubuntu:~/ascii-art$ ./ascii-art "Hello There!" shadow --output=banner.txt student@ubuntu:~/ascii-art$ cat banner.txt - _ _ _ _ _______ _ - | | | | | | | | |__ __| | | - | |__| | ___ | | | | ___ | | | |__ ___ _ __ ___ - | __ | / _ \ | | | | / _ \ | | | _ \ / _ \ | '__| / _ \ - | | | | | __/ | | | | | (_) | | | | | | | | __/ | | | __/ - |_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| - - + +_| _| _| _| _|_|_|_|_| _| _| +_| _| _|_| _| _| _|_| _| _|_|_| _|_| _| _|_| _|_| _| +_|_|_|_| _|_|_|_| _| _| _| _| _| _| _| _|_|_|_| _|_| _|_|_|_| _| +_| _| _| _| _| _| _| _| _| _| _| _| _| +_| _| _|_|_| _| _| _|_| _| _| _| _|_|_| _| _|_|_| _| + + student@ubuntu:~/ascii-art$ ``` diff --git a/subjects/ascii-reverse-example.md b/subjects/ascii-reverse-example.md index c3ccddce..f4fcb799 100644 --- a/subjects/ascii-reverse-example.md +++ b/subjects/ascii-reverse-example.md @@ -43,3 +43,17 @@ ``` + +### example03 + +```console + __ _ _ _ __ + / / | | | | (_) __ _ ___ ____ _____ _ _ \ \ +| | ___ ___ _ __ | |_ | |__ _ _ __ / _` | ( _ ) |___ \ |___ / | || | | | +| | / __| / _ \ | '_ \ | __| | _ \ | | | '_ \ | (_| | / _ \/\ __) | |_ \ | || |_ | | +| | \__ \ | (_) | | | | | \ |_ | | | | | | | | | | \__, | | (_> < / __/ ___) | |__ _| | | +| | |___/ \___/ |_| |_| \__| |_| |_| |_| |_| |_| __/ | \___/\/ |_____| |____/ |_| | | + \_\ |___/ /_/ + + +```