diff --git a/subjects/ascii-art-reverse.en.md b/subjects/ascii-art-reverse.en.md deleted file mode 100644 index c9065e706..000000000 --- a/subjects/ascii-art-reverse.en.md +++ /dev/null @@ -1,42 +0,0 @@ -## ascii-art-reverse - -### Objectives - -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 program must print this phrase in **normal text**. - -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**. - -### Usage - -```console -student@ubuntu:~/ascii-art$ go build -student@ubuntu:~/ascii-art$ cat file.txt - _ _ _ - | | | | | | - | |__ ___ | | | | ___ - | _ \ / _ \ | | | | / _ \ - | | | | | __/ | | | | | (_) | - |_| |_| \___| |_| |_| \___/ - - -student@ubuntu:~/ascii-art$ ./ascii-art file.txt -hello -student@ubuntu:~/ascii-art$ -``` diff --git a/subjects/ascii-art.en.md b/subjects/ascii-art/ascii-art.en.md similarity index 52% rename from subjects/ascii-art.en.md rename to subjects/ascii-art/ascii-art.en.md index db551843a..2ea99b83e 100644 --- a/subjects/ascii-art.en.md +++ b/subjects/ascii-art/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. @@ -18,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-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 + +- Each character has an height of 8 lines. +- Characters are separate by a new line `\n`. +- Here is an example of ' ', '!' and '"'(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" _ _ _ _ _______ _ | | | | | | | | |__ __| | | @@ -60,5 +101,14 @@ student@ubuntu:~/ascii-art$ ./ascii-art "1Hello 2There" |_| |_| |_| \___| |_| |_| \___/ |_____| |_| |_| |_| \___| |_| \___| +student@ubuntu:~/ascii-art$ ./ascii-art "{Hello There}" + __ _ _ _ _ _______ _ __ + / / | | | | | | | | |__ __| | | \ \ + | | | |__| | ___ | | | | ___ | | | |__ ___ _ __ ___ | | +/ / | __ | / _ \ | | | | / _ \ | | | _ \ / _ \ | '__| / _ \ \ \ +\ \ | | | | | __/ | | | | | (_) | | | | | | | | __/ | | | __/ / / + | | |_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| | | + \_\ /_/ + student@ubuntu:~/ascii-art$ ``` diff --git a/subjects/ascii-color.en.md b/subjects/ascii-art/ascii-color.en.md similarity index 58% rename from subjects/ascii-color.en.md rename to subjects/ascii-art/ascii-color.en.md index 5c1aedacb..b3c7606b1 100644 --- a/subjects/ascii-color.en.md +++ b/subjects/ascii-art/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**, `-c=`, in which `-c` 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. +- 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. 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-art/ascii-fs.en.md b/subjects/ascii-art/ascii-fs.en.md new file mode 100644 index 000000000..ae1e15352 --- /dev/null +++ b/subjects/ascii-art/ascii-fs.en.md @@ -0,0 +1,55 @@ +## ascii-art-fs + +### Objectives + +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 : + +- 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 can see all about the **banners** [here](https://github.com/01-edu/public/ascii-art.en.md). + +### Usage + +```console +student@ubuntu:~/ascii-art$ go build +student@ubuntu:~/ascii-art$ ./ascii-art "hello" standard + _ _ _ + | | | | | | + | |__ ___ | | | | ___ + | _ \ / _ \ | | | | / _ \ + | | | | | __/ | | | | | (_) | + |_| |_| \___| |_| |_| \___/ + + +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-art/ascii-justify.en.md b/subjects/ascii-art/ascii-justify.en.md new file mode 100644 index 000000000..ab5078fee --- /dev/null +++ b/subjects/ascii-art/ascii-justify.en.md @@ -0,0 +1,68 @@ +## ascii-art-justify + +### Objectives + +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 : + +- 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**. + +### 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 | +| | +| _| _| _| | +| _|_|_| _|_| _| _| _|_| | +| _| _| _|_|_|_| _| _| _| _| | +| _| _| _| _| _| _| _| | +| _| _| _|_|_| _| _| _|_| | +| | +| | +|student@ubuntu:~/ascii-art$ ./ascii-art "hello" shadow --align=justify | +| | +|_| | +|_|_|_| _|_| _| _| _| _|_|_| _| _|_| _|_| _| _| _|_| _| _| | +|_| _| _| _| _| _| _| _| _| _|_| _|_|_|_| _| _| _| _| _| _| | +|_| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| _| | +|_| _| _|_| _| _| _|_|_| _| _|_|_| _|_|_| _|_| _|_|_| | +| _| | +| _|_| | +|student@ubuntu:~/ascii-art$ | +``` diff --git a/subjects/ascii-art/ascii-output.en.md b/subjects/ascii-art/ascii-output.en.md new file mode 100644 index 000000000..a4b40d07c --- /dev/null +++ b/subjects/ascii-art/ascii-output.en.md @@ -0,0 +1,49 @@ +## ascii-art-output + +### Objectives + +- 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 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 : + +- Client utilities. +- The Go file system(**fs**) API. +- Ways to receive data. +- Ways to output data. +- Manipulation of strings. +- Learning about the choice of outputs. + +### 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**. + +### Usage + +```console +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!" shadow --output=banner.txt +student@ubuntu:~/ascii-art$ cat banner.txt + +_| _| _| _| _|_|_|_|_| _| _| +_| _| _|_| _| _| _|_| _| _|_|_| _|_| _| _|_| _|_| _| +_|_|_|_| _|_|_|_| _| _| _| _| _| _| _| _|_|_|_| _|_| _|_|_|_| _| +_| _| _| _| _| _| _| _| _| _| _| _| _| +_| _| _|_|_| _| _| _|_| _| _| _| _|_|_| _| _|_|_| _| + + +student@ubuntu:~/ascii-art$ +``` diff --git a/subjects/ascii-art/ascii-reverse-example.md b/subjects/ascii-art/ascii-reverse-example.md new file mode 100644 index 000000000..f4fcb799b --- /dev/null +++ b/subjects/ascii-art/ascii-reverse-example.md @@ -0,0 +1,59 @@ +## ascii-reverse-examples + +- Create your file and copy the examples into it. + +### example00 + +```console + _ _ _ _ __ __ _ _ + | | | | | | | | \ \ / / | | | | + | |__| | ___ | | | | ___ \ \ /\ / / ___ _ __ | | __| | + | __ | / _ \ | | | | / _ \ \ \/ \/ / / _ \ | '__| | | / _` | + | | | | | __/ | | | | | (_) | \ /\ / | (_) | | | | | | (_| | + |_| |_| \___| |_| |_| \___/ \/ \/ \___/ |_| |_| \__,_| + + + +``` + +### example01 + +```console + + _ ____ _____ +/ | |___ \ |___ / +| | __) | |_ \ +| | / __/ ___) | +|_| |_____| |____/ + + + +``` + +### example02 + +```console + ___ + _ _ __ | _| + _| || |_ ______ \ \ | | +|_ __ _| |______| \ \ | | + _| || |_ ______ \ \ | | +|_ __ _| |______| \ \ | |_ + |_||_| \_\ |___| + + +``` + +### example03 + +```console + __ _ _ _ __ + / / | | | | (_) __ _ ___ ____ _____ _ _ \ \ +| | ___ ___ _ __ | |_ | |__ _ _ __ / _` | ( _ ) |___ \ |___ / | || | | | +| | / __| / _ \ | '_ \ | __| | _ \ | | | '_ \ | (_| | / _ \/\ __) | |_ \ | || |_ | | +| | \__ \ | (_) | | | | | \ |_ | | | | | | | | | | \__, | | (_> < / __/ ___) | |__ _| | | +| | |___/ \___/ |_| |_| \__| |_| |_| |_| |_| |_| __/ | \___/\/ |_____| |____/ |_| | | + \_\ |___/ /_/ + + +``` diff --git a/subjects/ascii-art/ascii-reverse.en.md b/subjects/ascii-art/ascii-reverse.en.md new file mode 100644 index 000000000..df76e7b99 --- /dev/null +++ b/subjects/ascii-art/ascii-reverse.en.md @@ -0,0 +1,44 @@ +## ascii-reverse + +### Objectives + +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**. + +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**. + +### Usage + +```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$ +``` 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 diff --git a/subjects/ascii-fs.en.md b/subjects/ascii-fs.en.md deleted file mode 100644 index 9a342c63d..000000000 --- a/subjects/ascii-fs.en.md +++ /dev/null @@ -1,46 +0,0 @@ -## ascii-art-fs - -### 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. - -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**. - -### Usage - -```console -student@ubuntu:~/ascii-art$ go build -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$ -``` 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 deleted file mode 100644 index 6239b7def..000000000 --- a/subjects/ascii-output.en.md +++ /dev/null @@ -1,51 +0,0 @@ -## ascii-art-output - -### 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. - -- In case the second argument is not present it should print the graphic representation. - -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. -- Learning about the choice of outputs. -- 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 may use the same `banner` file. - -### Usage - -```console -student@ubuntu:~/ascii-art$ go build -student@ubuntu:~/ascii-art$ ./ascii-art "hello" banner.txt -student@ubuntu:~/ascii-art$ cat banner.txt - _ _ _ - | | | | | | - | |__ ___ | | | | ___ - | _ \ / _ \ | | | | / _ \ - | | | | | __/ | | | | | (_) | - |_| |_| \___| |_| |_| \___/ - - -student@ubuntu:~/ascii-art$ ./ascii-art "Hello There" banner.txt -student@ubuntu:~/ascii-art$ cat banner.txt - _ _ _ _ _______ _ - | | | | | | | | |__ __| | | - | |__| | ___ | | | | ___ | | | |__ ___ _ __ ___ - | __ | / _ \ | | | | / _ \ | | | _ \ / _ \ | '__| / _ \ - | | | | | __/ | | | | | (_) | | | | | | | | __/ | | | __/ - |_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| - - -student@ubuntu:~/ascii-art$ -```