From e1bdcbb0b884a585a8c5019742708aa739fd4eff Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 13 Dec 2019 15:18:48 +0000 Subject: [PATCH 01/14] fixing and adding examples on ascii-art --- subjects/ascii-align.en.md | 59 +++++++++ subjects/ascii-art-reverse.en.md | 4 +- subjects/ascii-color.en.md | 2 +- subjects/ascii-justify.en.md | 60 ---------- subjects/ascii-output.en.md | 6 +- subjects/ascii-reverse-example00.md | 180 ++++++++++++++++++++++++++++ 6 files changed, 245 insertions(+), 66 deletions(-) create mode 100644 subjects/ascii-align.en.md delete mode 100644 subjects/ascii-justify.en.md create mode 100644 subjects/ascii-reverse-example00.md diff --git a/subjects/ascii-align.en.md b/subjects/ascii-align.en.md new file mode 100644 index 000000000..0b78798ec --- /dev/null +++ b/subjects/ascii-align.en.md @@ -0,0 +1,59 @@ +## ascii-art-align + +### 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 : + +- center +- left +- right + +This project will help you learn about : + +- Client utilities. +- The Go file system(**fs**) API. +- Ways to receive data. +- Ways to output data. +- Manipulation of strings. +- Manipulation of structures. + +### Instructions + +- 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 + +```console +|student@ubuntu:~/ascii-art$ go build | +|student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard --align=center | +| _ _ _ | +| | | | | | | | +| | |__ ___ | | | | ___ | +| | _ \ / _ \ | | | | / _ \ | +| | | | | | __/ | | | | | (_) | | +| |_| |_| \___| |_| |_| \___/ | +| | +| | +|student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" standard --align=left | +| _ _ _ _ _______ _ | +|| | | | | | | | |__ __| | | | +|| |__| | ___ | | | | ___ | | | |__ ___ _ __ ___ | +|| __ | / _ \ | | | | / _ \ | | | _ \ / _ \ | '__| / _ \ | +|| | | | | __/ | | | | | (_) | | | | | | | | __/ | | | __/ | +||_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| | +| | +| | +|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$ | +``` diff --git a/subjects/ascii-art-reverse.en.md b/subjects/ascii-art-reverse.en.md index c9065e706..bfe2ecfb0 100644 --- a/subjects/ascii-art-reverse.en.md +++ b/subjects/ascii-art-reverse.en.md @@ -5,7 +5,7 @@ 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. -- The program will have **one** argument being the name of the file created. +- 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**. This project will help you learn about : @@ -36,7 +36,7 @@ student@ubuntu:~/ascii-art$ cat file.txt |_| |_| \___| |_| |_| \___/ -student@ubuntu:~/ascii-art$ ./ascii-art file.txt +student@ubuntu:~/ascii-art$ ./ascii-art --reverse=file.txt hello student@ubuntu:~/ascii-art$ ``` diff --git a/subjects/ascii-color.en.md b/subjects/ascii-color.en.md index 5c1aedacb..fdc160b65 100644 --- a/subjects/ascii-color.en.md +++ b/subjects/ascii-color.en.md @@ -4,7 +4,7 @@ You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as the first subject but with colors. -- The output should manipulate colors using **flags**, `-c=`, in which `-c` is the flag and `` is the color of choice. +- 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. diff --git a/subjects/ascii-justify.en.md b/subjects/ascii-justify.en.md deleted file mode 100644 index 67c8388da..000000000 --- a/subjects/ascii-justify.en.md +++ /dev/null @@ -1,60 +0,0 @@ -## 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 the second argument, that can be: - -- center -- justify -- align-left -- align-right - -This project will help you learn about : - -- Client utilities. -- The Go file system(**fs**) API. -- Ways to receive data. -- Ways to output data. -- Manipulation of strings. -- Manipulation of structures. - -### Instructions - -- 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 - -```console -student@ubuntu:~/ascii-art$ go build -student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard center - _ _ _ - | | | | | | - | |__ ___ | | | | ___ - | _ \ / _ \ | | | | / _ \ - | | | | | __/ | | | | | (_) | - |_| |_| \___| |_| |_| \___/ - - -student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" standard align-right - _ _ _ _ _______ _ - | | | | | | | | |__ __| | | - | |__| | ___ | | | | ___ | | | |__ ___ _ __ ___ - | __ | / _ \ | | | | / _ \ | | | _ \ / _ \ | '__| / _ \ - | | | | | __/ | | | | | (_) | | | | | | | | __/ | | | __/ - |_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| - - -student@ubuntu:~/ascii-art$ ./ascii-art "hello" shadow center - 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$ -``` diff --git a/subjects/ascii-output.en.md b/subjects/ascii-output.en.md index 6239b7def..acce2602f 100644 --- a/subjects/ascii-output.en.md +++ b/subjects/ascii-output.en.md @@ -4,6 +4,7 @@ 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. +- 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. This project will help you learn about : @@ -14,7 +15,6 @@ This project will help you learn about : - Ways to output data. - Manipulation of strings. - Learning about the choice of outputs. -- Manipulation of structures. ### Instructions @@ -27,7 +27,7 @@ This project will help you learn about : ```console student@ubuntu:~/ascii-art$ go build -student@ubuntu:~/ascii-art$ ./ascii-art "hello" banner.txt +student@ubuntu:~/ascii-art$ ./ascii-art "hello" --output=banner.txt student@ubuntu:~/ascii-art$ cat banner.txt _ _ _ | | | | | | @@ -37,7 +37,7 @@ student@ubuntu:~/ascii-art$ cat banner.txt |_| |_| \___| |_| |_| \___/ -student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" banner.txt +student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" --output=banner.txt student@ubuntu:~/ascii-art$ cat banner.txt _ _ _ _ _______ _ | | | | | | | | |__ __| | | diff --git a/subjects/ascii-reverse-example00.md b/subjects/ascii-reverse-example00.md new file mode 100644 index 000000000..f680ffdd4 --- /dev/null +++ b/subjects/ascii-reverse-example00.md @@ -0,0 +1,180 @@ +## ascii-reverse-examples + +- Create your file and copy the examples into it. + +### example00 + +```console + _ _ + | | | | + | |__| | + | __ | + | | | | + |_| |_| + + + + + + ___ + / _ \ +| __/ + \___| + + + + _ +| | +| | +| | +| | +|_| + + + + _ +| | +| | +| | +| | +|_| + + + + + + ___ + / _ \ +| (_) | + \___/ + + + + + + + + + + + + +__ __ +\ \ / / + \ \ /\ / / + \ \/ \/ / + \ /\ / + \/ \/ + + + + + + ___ + / _ \ +| (_) | + \___/ + + + + + + _ __ +| '__| +| | +|_| + + + + _ +| | +| | +| | +| | +|_| + + + + _ + | | + __| | + / _` | +| (_| | + \__,_| + + + +``` + +### example01 + +```console + + _ +/ | +| | +| | +|_| + + + + + ____ +|___ \ + __) | + / __/ +|_____| + + + + + _____ +|___ / + |_ \ + ___) | +|____/ + + + +``` + +### example02 + +```console + + _ _ + _| || |_ +|_ __ _| + _| || |_ +|_ __ _| + |_||_| + + + + + ______ +|______| + ______ +|______| + + + + +__ +\ \ + \ \ + \ \ + \ \ + \_\ + + + ___ +| _| +| | +| | +| | +| |_ +|___| + + +``` From c3097e166b02516fd7d6bd422883885dbf695b06 Mon Sep 17 00:00:00 2001 From: lee Date: Sat, 14 Dec 2019 00:40:17 +0000 Subject: [PATCH 02/14] fix ascii-reverse readme --- subjects/ascii-art-reverse.en.md | 54 +++++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/subjects/ascii-art-reverse.en.md b/subjects/ascii-art-reverse.en.md index bfe2ecfb0..536b9ebec 100644 --- a/subjects/ascii-art-reverse.en.md +++ b/subjects/ascii-art-reverse.en.md @@ -28,14 +28,52 @@ This project will help you learn about : ```console student@ubuntu:~/ascii-art$ go build student@ubuntu:~/ascii-art$ cat file.txt - _ _ _ - | | | | | | - | |__ ___ | | | | ___ - | _ \ / _ \ | | | | / _ \ - | | | | | __/ | | | | | (_) | - |_| |_| \___| |_| |_| \___/ - - + + _ +| | +| |__ +| _ \ +| | | | +|_| |_| + + + + + + ___ + / _ \ +| __/ + \___| + + + + _ +| | +| | +| | +| | +|_| + + + + _ +| | +| | +| | +| | +|_| + + + + + + ___ + / _ \ +| (_) | + \___/ + + + student@ubuntu:~/ascii-art$ ./ascii-art --reverse=file.txt hello student@ubuntu:~/ascii-art$ From 1b739f03af198092521f3e5ce0593f11466ae470 Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 16 Dec 2019 10:20:49 +0000 Subject: [PATCH 03/14] adding examples on mandatory part --- subjects/ascii-art.en.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/subjects/ascii-art.en.md b/subjects/ascii-art.en.md index db551843a..7214bbe58 100644 --- a/subjects/ascii-art.en.md +++ b/subjects/ascii-art.en.md @@ -4,6 +4,9 @@ Ascii-art consists on receiving a `string` has an argument and outputting the `string` in a graphic representation of ASCII. +- This project should handle numbers, letters, spaces, special characters and `\n`. +- Take a look on the ASCII manual. + This project will help you learn about : - Client utilities. @@ -60,5 +63,14 @@ student@ubuntu:~/ascii-art$ ./ascii-art "1Hello 2There" |_| |_| |_| \___| |_| |_| \___/ |_____| |_| |_| |_| \___| |_| \___| +student@ubuntu:~/ascii-art$ ./ascii-art "{Hello There}" + __ _ _ _ _ _______ _ __ + / / | | | | | | | | |__ __| | | \ \ + | | | |__| | ___ | | | | ___ | | | |__ ___ _ __ ___ | | +/ / | __ | / _ \ | | | | / _ \ | | | _ \ / _ \ | '__| / _ \ \ \ +\ \ | | | | | __/ | | | | | (_) | | | | | | | | __/ | | | __/ / / + | | |_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| | | + \_\ /_/ + student@ubuntu:~/ascii-art$ ``` From 740b9678a1d200a834c4621dec782a91b344defa Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 16 Dec 2019 15:39:10 +0000 Subject: [PATCH 04/14] fix the examples for students --- subjects/ascii-art-reverse.en.md | 53 ++------ subjects/ascii-reverse-example.md | 45 +++++++ subjects/ascii-reverse-example00.md | 180 ---------------------------- 3 files changed, 53 insertions(+), 225 deletions(-) create mode 100644 subjects/ascii-reverse-example.md delete mode 100644 subjects/ascii-reverse-example00.md diff --git a/subjects/ascii-art-reverse.en.md b/subjects/ascii-art-reverse.en.md index 536b9ebec..3d22e5b19 100644 --- a/subjects/ascii-art-reverse.en.md +++ b/subjects/ascii-art-reverse.en.md @@ -28,51 +28,14 @@ This project will help you learn about : ```console student@ubuntu:~/ascii-art$ go build student@ubuntu:~/ascii-art$ cat file.txt - - _ -| | -| |__ -| _ \ -| | | | -|_| |_| - - - - - - ___ - / _ \ -| __/ - \___| - - - - _ -| | -| | -| | -| | -|_| - - - - _ -| | -| | -| | -| | -|_| - - - - - - ___ - / _ \ -| (_) | - \___/ - - + _ _ _ +| | | | | | +| |__ ___ | | | | ___ +| _ \ / _ \ | | | | / _ \ +| | | | | __/ | | | | | (_) | +|_| |_| \___| |_| |_| \___/ + + student@ubuntu:~/ascii-art$ ./ascii-art --reverse=file.txt hello diff --git a/subjects/ascii-reverse-example.md b/subjects/ascii-reverse-example.md new file mode 100644 index 000000000..c3ccddce0 --- /dev/null +++ b/subjects/ascii-reverse-example.md @@ -0,0 +1,45 @@ +## ascii-reverse-examples + +- Create your file and copy the examples into it. + +### example00 + +```console + _ _ _ _ __ __ _ _ + | | | | | | | | \ \ / / | | | | + | |__| | ___ | | | | ___ \ \ /\ / / ___ _ __ | | __| | + | __ | / _ \ | | | | / _ \ \ \/ \/ / / _ \ | '__| | | / _` | + | | | | | __/ | | | | | (_) | \ /\ / | (_) | | | | | | (_| | + |_| |_| \___| |_| |_| \___/ \/ \/ \___/ |_| |_| \__,_| + + + +``` + +### example01 + +```console + + _ ____ _____ +/ | |___ \ |___ / +| | __) | |_ \ +| | / __/ ___) | +|_| |_____| |____/ + + + +``` + +### example02 + +```console + ___ + _ _ __ | _| + _| || |_ ______ \ \ | | +|_ __ _| |______| \ \ | | + _| || |_ ______ \ \ | | +|_ __ _| |______| \ \ | |_ + |_||_| \_\ |___| + + +``` diff --git a/subjects/ascii-reverse-example00.md b/subjects/ascii-reverse-example00.md deleted file mode 100644 index f680ffdd4..000000000 --- a/subjects/ascii-reverse-example00.md +++ /dev/null @@ -1,180 +0,0 @@ -## ascii-reverse-examples - -- Create your file and copy the examples into it. - -### example00 - -```console - _ _ - | | | | - | |__| | - | __ | - | | | | - |_| |_| - - - - - - ___ - / _ \ -| __/ - \___| - - - - _ -| | -| | -| | -| | -|_| - - - - _ -| | -| | -| | -| | -|_| - - - - - - ___ - / _ \ -| (_) | - \___/ - - - - - - - - - - - - -__ __ -\ \ / / - \ \ /\ / / - \ \/ \/ / - \ /\ / - \/ \/ - - - - - - ___ - / _ \ -| (_) | - \___/ - - - - - - _ __ -| '__| -| | -|_| - - - - _ -| | -| | -| | -| | -|_| - - - - _ - | | - __| | - / _` | -| (_| | - \__,_| - - - -``` - -### example01 - -```console - - _ -/ | -| | -| | -|_| - - - - - ____ -|___ \ - __) | - / __/ -|_____| - - - - - _____ -|___ / - |_ \ - ___) | -|____/ - - - -``` - -### example02 - -```console - - _ _ - _| || |_ -|_ __ _| - _| || |_ -|_ __ _| - |_||_| - - - - - ______ -|______| - ______ -|______| - - - - -__ -\ \ - \ \ - \ \ - \ \ - \_\ - - - ___ -| _| -| | -| | -| | -| |_ -|___| - - -``` From f119ec4a3258417a4bf6ecae160ff640ac02037f Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 16 Dec 2019 16:36:28 +0000 Subject: [PATCH 05/14] fix ascii-output subject --- subjects/ascii-output.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/ascii-output.en.md b/subjects/ascii-output.en.md index acce2602f..8765c25d7 100644 --- a/subjects/ascii-output.en.md +++ b/subjects/ascii-output.en.md @@ -27,7 +27,7 @@ This project will help you learn about : ```console student@ubuntu:~/ascii-art$ go build -student@ubuntu:~/ascii-art$ ./ascii-art "hello" --output=banner.txt +student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard --output=banner.txt student@ubuntu:~/ascii-art$ cat banner.txt _ _ _ | | | | | | @@ -37,7 +37,7 @@ student@ubuntu:~/ascii-art$ cat banner.txt |_| |_| \___| |_| |_| \___/ -student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" --output=banner.txt +student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" standard --output=banner.txt student@ubuntu:~/ascii-art$ cat banner.txt _ _ _ _ _______ _ | | | | | | | | |__ __| | | From d24b3b7ea20af45a69da7f2864252fae34d9411c Mon Sep 17 00:00:00 2001 From: lee Date: Thu, 19 Dec 2019 17:32:52 +0000 Subject: [PATCH 06/14] final fixes on the ascii-art projects --- subjects/ascii-art-reverse.en.md | 4 +- subjects/ascii-art.en.md | 72 ++++++++++++++----- subjects/ascii-color.en.md | 7 +- subjects/ascii-fs.en.md | 31 +++++--- ...{ascii-align.en.md => ascii-justify.en.md} | 29 +++++--- subjects/ascii-output.en.md | 40 +++++------ subjects/ascii-reverse-example.md | 14 ++++ 7 files changed, 132 insertions(+), 65 deletions(-) rename subjects/{ascii-align.en.md => ascii-justify.en.md} (68%) diff --git a/subjects/ascii-art-reverse.en.md b/subjects/ascii-art-reverse.en.md index 3d22e5b19..d22616bd4 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 7214bbe58..c43ea5970 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 fdc160b65..fc0fecd47 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 9a342c63d..ae1e15352 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 0b78798ec..ab5078fee 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 8765c25d7..a4b40d07c 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 c3ccddce0..f4fcb799b 100644 --- a/subjects/ascii-reverse-example.md +++ b/subjects/ascii-reverse-example.md @@ -43,3 +43,17 @@ ``` + +### example03 + +```console + __ _ _ _ __ + / / | | | | (_) __ _ ___ ____ _____ _ _ \ \ +| | ___ ___ _ __ | |_ | |__ _ _ __ / _` | ( _ ) |___ \ |___ / | || | | | +| | / __| / _ \ | '_ \ | __| | _ \ | | | '_ \ | (_| | / _ \/\ __) | |_ \ | || |_ | | +| | \__ \ | (_) | | | | | \ |_ | | | | | | | | | | \__, | | (_> < / __/ ___) | |__ _| | | +| | |___/ \___/ |_| |_| \__| |_| |_| |_| |_| |_| __/ | \___/\/ |_____| |____/ |_| | | + \_\ |___/ /_/ + + +``` From 632361d993ac88a26e3ef3fae4f6a2fb0d194ae6 Mon Sep 17 00:00:00 2001 From: lee Date: Thu, 19 Dec 2019 17:56:09 +0000 Subject: [PATCH 07/14] moving into a file --- subjects/{ => ascii-art}/ascii-art.en.md | 0 subjects/{ => ascii-art}/ascii-color.en.md | 0 subjects/{ => ascii-art}/ascii-fs.en.md | 0 subjects/{ => ascii-art}/ascii-justify.en.md | 0 subjects/{ => ascii-art}/ascii-output.en.md | 0 .../{ => ascii-art}/ascii-reverse-example.md | 0 .../ascii-reverse.en.md} | 4 +- subjects/ascii-art/shadow.txt | 855 +++++++++++++++++ subjects/ascii-art/standard.txt | 856 ++++++++++++++++++ subjects/ascii-art/thinkertoy.txt | 855 +++++++++++++++++ 10 files changed, 2568 insertions(+), 2 deletions(-) rename subjects/{ => ascii-art}/ascii-art.en.md (100%) rename subjects/{ => ascii-art}/ascii-color.en.md (100%) rename subjects/{ => ascii-art}/ascii-fs.en.md (100%) rename subjects/{ => ascii-art}/ascii-justify.en.md (100%) rename subjects/{ => ascii-art}/ascii-output.en.md (100%) rename subjects/{ => ascii-art}/ascii-reverse-example.md (100%) rename subjects/{ascii-art-reverse.en.md => ascii-art/ascii-reverse.en.md} (90%) create mode 100644 subjects/ascii-art/shadow.txt create mode 100644 subjects/ascii-art/standard.txt create mode 100644 subjects/ascii-art/thinkertoy.txt diff --git a/subjects/ascii-art.en.md b/subjects/ascii-art/ascii-art.en.md similarity index 100% rename from subjects/ascii-art.en.md rename to subjects/ascii-art/ascii-art.en.md diff --git a/subjects/ascii-color.en.md b/subjects/ascii-art/ascii-color.en.md similarity index 100% rename from subjects/ascii-color.en.md rename to subjects/ascii-art/ascii-color.en.md diff --git a/subjects/ascii-fs.en.md b/subjects/ascii-art/ascii-fs.en.md similarity index 100% rename from subjects/ascii-fs.en.md rename to subjects/ascii-art/ascii-fs.en.md diff --git a/subjects/ascii-justify.en.md b/subjects/ascii-art/ascii-justify.en.md similarity index 100% rename from subjects/ascii-justify.en.md rename to subjects/ascii-art/ascii-justify.en.md diff --git a/subjects/ascii-output.en.md b/subjects/ascii-art/ascii-output.en.md similarity index 100% rename from subjects/ascii-output.en.md rename to subjects/ascii-art/ascii-output.en.md diff --git a/subjects/ascii-reverse-example.md b/subjects/ascii-art/ascii-reverse-example.md similarity index 100% rename from subjects/ascii-reverse-example.md rename to subjects/ascii-art/ascii-reverse-example.md diff --git a/subjects/ascii-art-reverse.en.md b/subjects/ascii-art/ascii-reverse.en.md similarity index 90% rename from subjects/ascii-art-reverse.en.md rename to subjects/ascii-art/ascii-reverse.en.md index d22616bd4..5026d171d 100644 --- a/subjects/ascii-art-reverse.en.md +++ b/subjects/ascii-art/ascii-reverse.en.md @@ -1,8 +1,8 @@ -## ascii-art-reverse +## ascii-reverse ### Objectives -Ascii-art-reverse consists on reversing the process, converting the graphic representation into a text. +Ascii-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 `string`. - The argument will be a **flags**, `--reverse=`, in which `--reverse` is the flag and `` is the file name. diff --git a/subjects/ascii-art/shadow.txt b/subjects/ascii-art/shadow.txt new file mode 100644 index 000000000..b6efd7ea7 --- /dev/null +++ b/subjects/ascii-art/shadow.txt @@ -0,0 +1,855 @@ + + + + + + + + + + + +_| +_| +_| + +_| + + + +_| _| +_| _| + + + + + + + + + _| _| +_|_|_|_|_| + _| _| +_|_|_|_|_| + _| _| + + + + + _| +_|_|_| +_|_| + _|_| +_|_|_| + _| + + + +_|_| _| +_|_| _| + _| + _| _|_| +_| _|_| + + + + + _| +_| _| + _|_| _| +_| _| + _|_| _| + + + + _| +_| + + + + + + + + _| +_| +_| +_| +_| +_| + _| + + +_| + _| + _| + _| + _| + _| +_| + + + +_| _| _| + _|_|_| +_|_|_|_|_| + _|_|_| +_| _| _| + + + + + _| + _| +_|_|_|_|_| + _| + _| + + + + + + + + + _| +_| + + + + + +_|_|_|_|_| + + + + + + + + + + +_| + + + + + _| + _| + _| + _| +_| + + + + + _| +_| _| +_| _| +_| _| + _| + + + + + _| +_|_| + _| + _| + _| + + + + + _|_| +_| _| + _| + _| +_|_|_|_| + + + + +_|_|_| + _| + _|_| + _| +_|_|_| + + + + +_| _| +_| _| +_|_|_|_| + _| + _| + + + + +_|_|_|_| +_| +_|_|_| + _| +_|_|_| + + + + + _|_|_| +_| +_|_|_| +_| _| + _|_| + + + + +_|_|_|_|_| + _| + _| + _| + _| + + + + + _|_| +_| _| + _|_| +_| _| + _|_| + + + + + _|_| +_| _| + _|_|_| + _| +_|_|_| + + + + + +_| + + +_| + + + + + + _| + + + _| +_| + + + + _| + _| +_| + _| + _| + + + + + +_|_|_|_|_| + +_|_|_|_|_| + + + + + +_| + _| + _| + _| +_| + + + + +_|_| + _| +_|_| + +_| + + + + + _|_|_|_|_| + _| _| +_| _|_|_| _| +_| _| _| _| +_| _|_|_|_| + _| + _|_|_|_|_|_| + + + _|_| +_| _| +_|_|_|_| +_| _| +_| _| + + + + +_|_|_| +_| _| +_|_|_| +_| _| +_|_|_| + + + + + _|_|_| +_| +_| +_| + _|_|_| + + + + +_|_|_| +_| _| +_| _| +_| _| +_|_|_| + + + + +_|_|_|_| +_| +_|_|_| +_| +_|_|_|_| + + + + +_|_|_|_| +_| +_|_|_| +_| +_| + + + + + _|_|_| +_| +_| _|_| +_| _| + _|_|_| + + + + +_| _| +_| _| +_|_|_|_| +_| _| +_| _| + + + + +_|_|_| + _| + _| + _| +_|_|_| + + + + + _| + _| + _| +_| _| + _|_| + + + + +_| _| +_| _| +_|_| +_| _| +_| _| + + + + +_| +_| +_| +_| +_|_|_|_| + + + + +_| _| +_|_| _|_| +_| _| _| +_| _| +_| _| + + + + +_| _| +_|_| _| +_| _| _| +_| _|_| +_| _| + + + + + _|_| +_| _| +_| _| +_| _| + _|_| + + + + +_|_|_| +_| _| +_|_|_| +_| +_| + + + + + _|_| +_| _| +_| _|_| +_| _| + _|_| _| + + + + +_|_|_| +_| _| +_|_|_| +_| _| +_| _| + + + + + _|_|_| +_| + _|_| + _| +_|_|_| + + + + +_|_|_|_|_| + _| + _| + _| + _| + + + + +_| _| +_| _| +_| _| +_| _| + _|_| + + + + +_| _| +_| _| +_| _| + _| _| + _| + + + + +_| _| +_| _| +_| _| _| + _| _| _| + _| _| + + + + +_| _| + _| _| + _| + _| _| +_| _| + + + + +_| _| + _| _| + _| + _| + _| + + + + +_|_|_|_|_| + _| + _| + _| +_|_|_|_|_| + + + +_|_| +_| +_| +_| +_| +_| +_|_| + + + +_| + _| + _| + _| + _| + + + +_|_| + _| + _| + _| + _| + _| +_|_| + + + _| +_| _| + + + + + + + + + + + + + + +_|_|_|_|_| + +_| + _| + + + + + + + + + + _|_|_| +_| _| +_| _| + _|_|_| + + + + +_| +_|_|_| +_| _| +_| _| +_|_|_| + + + + + + _|_|_| +_| +_| + _|_|_| + + + + + _| + _|_|_| +_| _| +_| _| + _|_|_| + + + + + + _|_| +_|_|_|_| +_| + _|_|_| + + + + + _|_| + _| +_|_|_|_| + _| + _| + + + + + + _|_|_| +_| _| +_| _| + _|_|_| + _| + _|_| + + +_| +_|_|_| +_| _| +_| _| +_| _| + + + + +_| + +_| +_| +_| + + + + + _| + + _| + _| + _| + _| +_| + + +_| +_| _| +_|_| +_| _| +_| _| + + + + +_| +_| +_| +_| +_| + + + + + +_|_|_| _|_| +_| _| _| +_| _| _| +_| _| _| + + + + + +_|_|_| +_| _| +_| _| +_| _| + + + + + + _|_| +_| _| +_| _| + _|_| + + + + + +_|_|_| +_| _| +_| _| +_|_|_| +_| +_| + + + + _|_|_| +_| _| +_| _| + _|_|_| + _| + _| + + + +_| _|_| +_|_| +_| +_| + + + + + + _|_|_| +_|_| + _|_| +_|_|_| + + + + + _| +_|_|_|_| + _| + _| + _|_| + + + + + +_| _| +_| _| +_| _| + _|_|_| + + + + + +_| _| +_| _| + _| _| + _| + + + + + +_| _| _| +_| _| _| + _| _| _| _| + _| _| + + + + + +_| _| + _|_| +_| _| +_| _| + + + + + +_| _| +_| _| +_| _| + _|_|_| + _| + _|_| + + + +_|_|_|_| + _| + _| +_|_|_|_| + + + + _| + _| + _| +_| + _| + _| + _| + + +_| +_| +_| +_| +_| +_| +_| +_| + +_| + _| + _| + _| + _| + _| +_| + + + _| _| +_| _| + + + + + + diff --git a/subjects/ascii-art/standard.txt b/subjects/ascii-art/standard.txt new file mode 100644 index 000000000..fbe2802b0 --- /dev/null +++ b/subjects/ascii-art/standard.txt @@ -0,0 +1,856 @@ + + + + + + + + + + + _ +| | +| | +| | +|_| +(_) + + + + _ _ +( | ) + V V + + + + + + + _ _ + _| || |_ +|_ __ _| + _| || |_ +|_ __ _| + |_||_| + + + + _ + | | +/ __) +\__ \ +( / + |_| + + + + _ __ + (_) / / + / / + / / + / / _ + /_/ (_) + + + + + ___ + ( _ ) + / _ \/\ +| (_> < + \___/\/ + + + + _ +( ) +|/ + + + + + + + __ + / / +| | +| | +| | +| | + \_\ + + +__ +\ \ + | | + | | + | | + | | +/_/ + + + _ + /\| |/\ + \ ` ' / +|_ _| + / , . \ + \/|_|\/ + + + + + _ + _| |_ +|_ _| + |_| + + + + + + + + + _ +( ) +|/ + + + + + ______ +|______| + + + + + + + + + + _ +(_) + + + + __ + / / + / / + / / + / / + /_/ + + + + + ___ + / _ \ +| | | | +| |_| | + \___/ + + + + + _ +/ | +| | +| | +|_| + + + + + ____ +|___ \ + __) | + / __/ +|_____| + + + + + _____ +|___ / + |_ \ + ___) | +|____/ + + + + + _ _ +| || | +| || |_ +|__ _| + |_| + + + + + ____ +| ___| +|___ \ + __) | +|____/ + + + + + __ + / / +| '_ \ +| (_) | + \___/ + + + + + _____ +|___ | + / / + / / + /_/ + + + + + ___ + ( _ ) + / _ \ +| (_) | + \___/ + + + + + ___ + / _ \ +| (_) | + \__, | + / / + /_/ + + + + _ +(_) + + _ +(_) + + + + + _ +(_) + + _ +( ) +|/ + + + __ + / / + / / +< < + \ \ + \_\ + + + + + ______ +|______| + ______ +|______| + + + + +__ +\ \ + \ \ + > > + / / +/_/ + + + + ___ +|__ \ + ) | + / / + |_| + (_) + + + + + ____ + / __ \ + / / _` | +| | (_| | + \ \__,_| + \____/ + + + + /\ + / \ + / /\ \ + / ____ \ +/_/ \_\ + + + + ____ +| _ \ +| |_) | +| _ < +| |_) | +|____/ + + + + _____ + / ____| +| | +| | +| |____ + \_____| + + + + _____ +| __ \ +| | | | +| | | | +| |__| | +|_____/ + + + + ______ +| ____| +| |__ +| __| +| |____ +|______| + + + + ______ +| ____| +| |__ +| __| +| | +|_| + + + + _____ + / ____| +| | __ +| | |_ | +| |__| | + \_____| + + + + _ _ +| | | | +| |__| | +| __ | +| | | | +|_| |_| + + + + + _____ +|_ _| + | | + | | + _| |_ +|_____| + + + _ + | | + | | + _ | | +| |__| | + \____/ + + + + _ __ +| |/ / +| ' / +| < +| . \ +|_|\_\ + + + + _ +| | +| | +| | +| |____ +|______| + + + + __ __ +| \/ | +| \ / | +| |\/| | +| | | | +|_| |_| + + + + _ _ +| \ | | +| \| | +| . ` | +| |\ | +|_| \_| + + + + ____ + / __ \ +| | | | +| | | | +| |__| | + \____/ + + + + _____ +| __ \ +| |__) | +| ___/ +| | +|_| + + + + ____ + / __ \ +| | | | +| | | | +| |__| | + \___\_\ + + + + _____ +| __ \ +| |__) | +| _ / +| | \ \ +|_| \_\ + + + + _____ + / ____| +| (___ + \___ \ + ____) | +|_____/ + + + + _______ +|__ __| + | | + | | + | | + |_| + + + + _ _ +| | | | +| | | | +| | | | +| |__| | + \____/ + + + +__ __ +\ \ / / + \ \ / / + \ \/ / + \ / + \/ + + + +__ __ +\ \ / / + \ \ /\ / / + \ \/ \/ / + \ /\ / + \/ \/ + + + +__ __ +\ \ / / + \ V / + > < + / . \ +/_/ \_\ + + + +__ __ +\ \ / / + \ \_/ / + \ / + | | + |_| + + + + ______ +|___ / + / / + / / + / /__ +/_____| + + + + ___ +| _| +| | +| | +| | +| |_ +|___| + + +__ +\ \ + \ \ + \ \ + \ \ + \_\ + + + + ___ +|_ | + | | + | | + | | + _| | +|___| + + + /\ +|/\| + + + + + + + + + + + + + + ______ +|______| + + _ +( ) + \| + + + + + + + + + __ _ + / _` | +| (_| | + \__,_| + + + + _ +| | +| |__ +| '_ \ +| |_) | +|_.__/ + + + + + + ___ + / __| +| (__ + \___| + + + + _ + | | + __| | + / _` | +| (_| | + \__,_| + + + + + + ___ + / _ \ +| __/ + \___| + + + + __ + / _| +| |_ +| _| +| | +|_| + + + + + __ _ + / _` | +| (_| | + \__, | + __/ | + |___/ + + + _ +| | +| |__ +| _ \ +| | | | +|_| |_| + + + + _ +(_) + _ +| | +| | +|_| + + + + _ + (_) + _ + | | + | | + | | + _/ | +|__/ + + + _ +| | _ +| |/ / +| < +|_|\_\ + + + + _ +| | +| | +| | +| | +|_| + + + + + + _ __ ___ +| '_ ` _ \ +| | | | | | +|_| |_| |_| + + + + + + _ __ +| '_ \ +| | | | +|_| |_| + + + + + + ___ + / _ \ +| (_) | + \___/ + + + + + + _ __ +| '_ \ +| |_) | +| .__/ +| | +|_| + + + + __ _ + / _` | +| (_| | + \__, | + | | + |_| + + + + _ __ +| '__| +| | +|_| + + + + + + ___ +/ __| +\__ \ +|___/ + + + + _ +| | +| |_ +| __| +\ |_ + \__| + + + + + + _ _ +| | | | +| |_| | + \__,_| + + + + + +__ __ +\ \ / / + \ V / + \_/ + + + + + +__ __ +\ \ /\ / / + \ V V / + \_/\_/ + + + + + +__ __ +\ \/ / + > < +/_/\_\ + + + + + + _ _ +| | | | +| |_| | + \__, | + __/ / +|___/ + + + + ____ +|_ / + / / +/___| + + + + + __ + / / + | | +/ / +\ \ + | | + \_\ + + + _ +| | +| | +| | +| | +| | +| | +|_| + +__ +\ \ + | | + \ \ + / / + | | +/_/ + + + /\/| +|/\/ + + + + + + diff --git a/subjects/ascii-art/thinkertoy.txt b/subjects/ascii-art/thinkertoy.txt new file mode 100644 index 000000000..f2ffc08cc --- /dev/null +++ b/subjects/ascii-art/thinkertoy.txt @@ -0,0 +1,855 @@ + + + + + + + + + + + + +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 + / +o + + + + + o-o +o /o +| / | +o/ o + o-o + + + + + 0 + /| +o | + | +o-o-o + + + + + -- +o o + / + / +o--o + + + + +o-o + | + oo + | +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 + \ + 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--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 +| / +OO +| \ +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-Oo +| \ +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---o + + + + +O-o +| +| +| +O-o + + + + +o + \ + o + \ + o + + + + +o-O + | + | + | +o-O + + + + + o +/ \ + + + + + + + + + + + +o---o + + + + +0 +| + + + + + + + + + + oo +| | +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-o + + +o +| / +OO +| \ +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--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 + + + + + + \ No newline at end of file From edc67d049c9bb5000754091beed90eea7f739a9e Mon Sep 17 00:00:00 2001 From: lee Date: Thu, 19 Dec 2019 18:00:11 +0000 Subject: [PATCH 08/14] fix on the path --- subjects/ascii-art/ascii-art.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/ascii-art/ascii-art.en.md b/subjects/ascii-art/ascii-art.en.md index c43ea5970..cde1f4114 100644 --- a/subjects/ascii-art/ascii-art.en.md +++ b/subjects/ascii-art/ascii-art.en.md @@ -21,7 +21,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**. -- 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. +- It will be given some [**banner**](https://github.com/01-edu/public/ascii-art) 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 From c18b8d0430589f4c37ea1203df7fb56eb6dda65c Mon Sep 17 00:00:00 2001 From: OGordoo <39002518+OGordoo@users.noreply.github.com> Date: Thu, 19 Dec 2019 18:03:08 +0000 Subject: [PATCH 09/14] Update ascii-art.en.md --- subjects/ascii-art/ascii-art.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/ascii-art/ascii-art.en.md b/subjects/ascii-art/ascii-art.en.md index cde1f4114..a89167788 100644 --- a/subjects/ascii-art/ascii-art.en.md +++ b/subjects/ascii-art/ascii-art.en.md @@ -25,7 +25,7 @@ This project will help you learn about : ### Banner Format -- Each character as an height of 8 lines. +- Each character has an height of 8 lines. - Characters are separate by a new line `\n`. - Here is an example (one dot represents one space) : From 34e792d3d9e370a614d9c4209e179b05460fa9d0 Mon Sep 17 00:00:00 2001 From: OGordoo <39002518+OGordoo@users.noreply.github.com> Date: Thu, 19 Dec 2019 18:05:15 +0000 Subject: [PATCH 10/14] Update ascii-art.en.md --- subjects/ascii-art/ascii-art.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/ascii-art/ascii-art.en.md b/subjects/ascii-art/ascii-art.en.md index a89167788..2ea99b83e 100644 --- a/subjects/ascii-art/ascii-art.en.md +++ b/subjects/ascii-art/ascii-art.en.md @@ -27,7 +27,7 @@ This project will help you learn about : - Each character has an height of 8 lines. - Characters are separate by a new line `\n`. -- Here is an example (one dot represents one space) : +- Here is an example of ' ', '!' and '"'(one dot represents one space) : ```console From 922bf324b7e572c1f878b431fbaf3e9abe91b32e Mon Sep 17 00:00:00 2001 From: OGordoo <39002518+OGordoo@users.noreply.github.com> Date: Thu, 19 Dec 2019 18:06:43 +0000 Subject: [PATCH 11/14] Update ascii-color.en.md --- subjects/ascii-art/ascii-color.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/ascii-art/ascii-color.en.md b/subjects/ascii-art/ascii-color.en.md index fc0fecd47..b3c7606b1 100644 --- a/subjects/ascii-art/ascii-color.en.md +++ b/subjects/ascii-art/ascii-color.en.md @@ -4,7 +4,7 @@ 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. +- The output should manipulate colors using the **flag** `--color=`, in which `--color` is the flag and `` is the color of choice. - 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. From b90dd67f8b1cec1bb6f56c07aee7564f49e27f18 Mon Sep 17 00:00:00 2001 From: OGordoo <39002518+OGordoo@users.noreply.github.com> Date: Thu, 19 Dec 2019 18:10:19 +0000 Subject: [PATCH 12/14] Update ascii-reverse.en.md --- subjects/ascii-art/ascii-reverse.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/ascii-art/ascii-reverse.en.md b/subjects/ascii-art/ascii-reverse.en.md index 5026d171d..b99880c29 100644 --- a/subjects/ascii-art/ascii-reverse.en.md +++ b/subjects/ascii-art/ascii-reverse.en.md @@ -4,7 +4,7 @@ Ascii-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 `string`. +- You will have to create a text file containing 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 `string` in **normal text**. From 07c1c266ff95acd9536e35e260c281d69778a2d2 Mon Sep 17 00:00:00 2001 From: OGordoo <39002518+OGordoo@users.noreply.github.com> Date: Thu, 19 Dec 2019 18:11:02 +0000 Subject: [PATCH 13/14] Update ascii-reverse.en.md --- subjects/ascii-art/ascii-reverse.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/ascii-art/ascii-reverse.en.md b/subjects/ascii-art/ascii-reverse.en.md index b99880c29..104705a42 100644 --- a/subjects/ascii-art/ascii-reverse.en.md +++ b/subjects/ascii-art/ascii-reverse.en.md @@ -5,7 +5,7 @@ Ascii-reverse consists on reversing the process, converting the graphic representation into a text. - You will have to create a text file containing 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 argument will be a **flag**, `--reverse=`, in which `--reverse` is the flag and `` is the file name. - The program must print this `string` in **normal text**. This project will help you learn about : From 7e638ee059891123a7427006d5d86791a03435de Mon Sep 17 00:00:00 2001 From: lee Date: Thu, 19 Dec 2019 18:14:01 +0000 Subject: [PATCH 14/14] fixx on reverse --- subjects/ascii-art/ascii-reverse.en.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subjects/ascii-art/ascii-reverse.en.md b/subjects/ascii-art/ascii-reverse.en.md index 104705a42..df76e7b99 100644 --- a/subjects/ascii-art/ascii-reverse.en.md +++ b/subjects/ascii-art/ascii-reverse.en.md @@ -2,8 +2,9 @@ ### Objectives -Ascii-reverse consists on reversing the process, converting the graphic representation into a text. +You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject. +- Ascii-reverse consists on reversing the process, converting the graphic representation into a text. - You will have to create a text file containing a graphic representation of a random `string`. - The argument will be a **flag**, `--reverse=`, in which `--reverse` is the flag and `` is the file name. - The program must print this `string` in **normal text**.