From 8e18fd7e40e856cfa0bf71446e1c7378383928b4 Mon Sep 17 00:00:00 2001 From: lee Date: Thu, 28 Nov 2019 21:34:33 +0000 Subject: [PATCH 01/10] correcting listat subject --- subjects/listat.en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/listat.en.md b/subjects/listat.en.md index 0e1268ed0..7cf103d72 100644 --- a/subjects/listat.en.md +++ b/subjects/listat.en.md @@ -51,8 +51,8 @@ And its output : ```console student@ubuntu:~/piscine-go/test$ go build student@ubuntu:~/piscine-go/test$ ./test -1 -how are +you +hello student@ubuntu:~/piscine-go/test$ ``` From 82c871f397c38d0453342d5357e8bc0bba703e03 Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 29 Nov 2019 10:27:34 +0000 Subject: [PATCH 02/10] correction of listforeachif replacing < for > --- subjects/listforeachif.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/listforeachif.en.md b/subjects/listforeachif.en.md index 09d5b1250..3075af54d 100644 --- a/subjects/listforeachif.en.md +++ b/subjects/listforeachif.en.md @@ -38,7 +38,7 @@ func IsPositive_node(node *NodeL) bool { func IsNegative_node(node *NodeL) bool { switch node.Data.(type) { case int, float32, float64, byte: - return node.Data.(int) > 0 + return node.Data.(int) < 0 case string, rune: return false } From d9a615b2197ccd319435fcae372b2c87d3573052 Mon Sep 17 00:00:00 2001 From: OGordoo Date: Thu, 5 Dec 2019 12:59:10 +0000 Subject: [PATCH 03/10] printchessboard,robotorigin --- subjects/printchessboard.en.md | 4 ++-- subjects/robottoorigin.en.md | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/subjects/printchessboard.en.md b/subjects/printchessboard.en.md index 8356bba2f..c4ac06440 100644 --- a/subjects/printchessboard.en.md +++ b/subjects/printchessboard.en.md @@ -2,9 +2,9 @@ ### Instructions -Write a program that takes a two integer as argument and displays the chess desk, where white cells `' '` and black cells `'#'`. +Write a program that takes two integers as arguments and displays the chess desk, in which white cells are represented by `' '` and black cells by `'#'`. -- If the number of arguments is different from 2, or if the argument is not a positive number, the program displays `Error` followed by a newline (`'\n'`). +- If the number of arguments is different from 2, or if the argument is not a positive number, the program displays `Error` followed by a newline (`'\n'`). ### Usage diff --git a/subjects/robottoorigin.en.md b/subjects/robottoorigin.en.md index fb8bda6e9..2758776ed 100644 --- a/subjects/robottoorigin.en.md +++ b/subjects/robottoorigin.en.md @@ -7,7 +7,8 @@ There is a robot at position (0, 0) at 2D map. Write a program, that outputs `true` if robot ends up at the origin (0, 0) after a sequence of moves, otherwise `false`. `\n` should be in the end of line. Sequence of moves is a string, which characters state for movement direction: -- U - up + +- U - up - D - down - R - right - L - left @@ -17,13 +18,13 @@ If the number of arguments is not 1, output `\n`. ### Usage ```console -$> go build -$> ./main "UD" +student@ubuntu:~/[[ROOT]]/test$ go build +student@ubuntu:~/[[ROOT]]/test$ ./main "UD" true -$> ./main "LL" +student@ubuntu:~/[[ROOT]]/test$ ./main "LL" false ``` In first case, the robot moves up and the down. So, it returned back to its origin position. -In second example, the robot moves twice to the left. It is 2 positons left from its origin. So, program should output false. +In second example, the robot moves twice to the left. It is 2 positions left from its origin, so the program outputs false. From 3dbb22056fb490d2f482fc39185ee0392117457f Mon Sep 17 00:00:00 2001 From: OGordoo Date: Thu, 5 Dec 2019 13:09:37 +0000 Subject: [PATCH 04/10] twosumfix --- subjects/twosum.en.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/subjects/twosum.en.md b/subjects/twosum.en.md index 43a08534e..f9279e7ce 100644 --- a/subjects/twosum.en.md +++ b/subjects/twosum.en.md @@ -1,17 +1,22 @@ ## twosum -### Instructions: -Given an array of integers, return indices of the two numbers such that they add up to a specific target. +### Instructions + +Given an array of integers, return indexes of the two numbers such that they add up to a specific target. + If there are more than one solution, return the first one. + If there are no solutions, return nil. Expected function: + ```go func TwoSum(nums []int, target int) []int { } ``` Here is a possible [program](TODO-LINK) to test your function : + ```go package main From 009649f1d7e98f225b25e819e81b08b78f9cd730 Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 13 Dec 2019 12:01:17 +0000 Subject: [PATCH 05/10] files for questions regarding tetrisoptimazer --- subjects/badexample00.md | 7 +++++ subjects/badexample01.md | 7 +++++ subjects/badexample02.md | 7 +++++ subjects/badexample03.md | 7 +++++ subjects/badexample04.md | 7 +++++ subjects/badformat.md | 22 ++++++++++++++ subjects/goodexample00.md | 7 +++++ subjects/goodexample01.md | 22 ++++++++++++++ subjects/goodexample02.md | 42 ++++++++++++++++++++++++++ subjects/goodexample03.md | 57 +++++++++++++++++++++++++++++++++++ subjects/hardexam.md | 62 +++++++++++++++++++++++++++++++++++++++ 11 files changed, 247 insertions(+) create mode 100644 subjects/badexample00.md create mode 100644 subjects/badexample01.md create mode 100644 subjects/badexample02.md create mode 100644 subjects/badexample03.md create mode 100644 subjects/badexample04.md create mode 100644 subjects/badformat.md create mode 100644 subjects/goodexample00.md create mode 100644 subjects/goodexample01.md create mode 100644 subjects/goodexample02.md create mode 100644 subjects/goodexample03.md create mode 100644 subjects/hardexam.md diff --git a/subjects/badexample00.md b/subjects/badexample00.md new file mode 100644 index 000000000..ecdacda6c --- /dev/null +++ b/subjects/badexample00.md @@ -0,0 +1,7 @@ +``` +#### +...# +.... +.... + +``` diff --git a/subjects/badexample01.md b/subjects/badexample01.md new file mode 100644 index 000000000..6b4dab175 --- /dev/null +++ b/subjects/badexample01.md @@ -0,0 +1,7 @@ +``` +...# +..#. +.#.. +#... + +``` diff --git a/subjects/badexample02.md b/subjects/badexample02.md new file mode 100644 index 000000000..6b4dab175 --- /dev/null +++ b/subjects/badexample02.md @@ -0,0 +1,7 @@ +``` +...# +..#. +.#.. +#... + +``` diff --git a/subjects/badexample03.md b/subjects/badexample03.md new file mode 100644 index 000000000..f251e4a06 --- /dev/null +++ b/subjects/badexample03.md @@ -0,0 +1,7 @@ +``` +.... +.... +.... +.... + +``` diff --git a/subjects/badexample04.md b/subjects/badexample04.md new file mode 100644 index 000000000..422ea3646 --- /dev/null +++ b/subjects/badexample04.md @@ -0,0 +1,7 @@ +``` +..## +.... +.... +##.. + +``` diff --git a/subjects/badformat.md b/subjects/badformat.md new file mode 100644 index 000000000..42dd7e167 --- /dev/null +++ b/subjects/badformat.md @@ -0,0 +1,22 @@ +``` +...# +...# +...# +...# +.... +.... +.... +#### + + +.### +...# +.... +.... + +.... +..## +.##. +.... + +``` diff --git a/subjects/goodexample00.md b/subjects/goodexample00.md new file mode 100644 index 000000000..0c79a0576 --- /dev/null +++ b/subjects/goodexample00.md @@ -0,0 +1,7 @@ +``` +.... +.##. +.##. +.... + +``` diff --git a/subjects/goodexample01.md b/subjects/goodexample01.md new file mode 100644 index 000000000..cabaf9603 --- /dev/null +++ b/subjects/goodexample01.md @@ -0,0 +1,22 @@ +``` +...# +...# +...# +...# + +.... +.... +.... +#### + +.### +...# +.... +.... + +.... +..## +.##. +.... + +``` diff --git a/subjects/goodexample02.md b/subjects/goodexample02.md new file mode 100644 index 000000000..324fc2e52 --- /dev/null +++ b/subjects/goodexample02.md @@ -0,0 +1,42 @@ +``` +...# +...# +...# +...# + +.... +.... +.... +#### + +.### +...# +.... +.... + +.... +..## +.##. +.... + +.... +.##. +.##. +.... + +.... +.... +##.. +.##. + +##.. +.#.. +.#.. +.... + +.... +###. +.#.. +.... + +``` diff --git a/subjects/goodexample03.md b/subjects/goodexample03.md new file mode 100644 index 000000000..9c7002735 --- /dev/null +++ b/subjects/goodexample03.md @@ -0,0 +1,57 @@ +``` +.... +.##. +.##. +.... + +...# +...# +...# +...# + +.... +..## +.##. +.... + +.... +.##. +.##. +.... + +.... +..#. +.##. +.#.. + +.### +...# +.... +.... + +##.. +.#.. +.#.. +.... + +.... +..## +.##. +.... + +##.. +.#.. +.#.. +.... + +.#.. +.##. +..#. +.... + +.... +###. +.#.. +.... + +``` diff --git a/subjects/hardexam.md b/subjects/hardexam.md new file mode 100644 index 000000000..9178f570f --- /dev/null +++ b/subjects/hardexam.md @@ -0,0 +1,62 @@ +``` +.... +.##. +.##. +.... + +.#.. +.##. +.#.. +.... + +.... +..## +.##. +.... + +.... +.##. +.##. +.... + +.... +..#. +.##. +.#.. + +.### +...# +.... +.... + +##.. +.#.. +.#.. +.... + +.... +.##. +.##. +.... + +.... +..## +.##. +.... + +##.. +.#.. +.#.. +.... + +.#.. +.##. +..#. +.... + +.... +###. +.#.. +.... + +``` \ No newline at end of file From fb906018a897c2cd2255378eff535b670652c975 Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 13 Dec 2019 14:00:53 +0000 Subject: [PATCH 06/10] formating example files --- subjects/badexample00.md | 4 ++++ subjects/badexample01.md | 4 ++++ subjects/badexample02.md | 4 ++++ subjects/badexample03.md | 4 ++++ subjects/badexample04.md | 4 ++++ subjects/badformat.md | 4 ++++ subjects/goodexample00.md | 6 +++++- subjects/goodexample01.md | 4 ++++ subjects/goodexample02.md | 4 ++++ subjects/goodexample03.md | 4 ++++ subjects/hardexam.md | 4 ++++ 11 files changed, 45 insertions(+), 1 deletion(-) diff --git a/subjects/badexample00.md b/subjects/badexample00.md index ecdacda6c..ad5a09d12 100644 --- a/subjects/badexample00.md +++ b/subjects/badexample00.md @@ -1,3 +1,7 @@ +## bad example + +- Create your file and copy the example into it. + ``` #### ...# diff --git a/subjects/badexample01.md b/subjects/badexample01.md index 6b4dab175..5a242f764 100644 --- a/subjects/badexample01.md +++ b/subjects/badexample01.md @@ -1,3 +1,7 @@ +## bad example + +- Create your file and copy the example into it. + ``` ...# ..#. diff --git a/subjects/badexample02.md b/subjects/badexample02.md index 6b4dab175..5a242f764 100644 --- a/subjects/badexample02.md +++ b/subjects/badexample02.md @@ -1,3 +1,7 @@ +## bad example + +- Create your file and copy the example into it. + ``` ...# ..#. diff --git a/subjects/badexample03.md b/subjects/badexample03.md index f251e4a06..5ba3cfb12 100644 --- a/subjects/badexample03.md +++ b/subjects/badexample03.md @@ -1,3 +1,7 @@ +## bad example + +- Create your file and copy the example into it. + ``` .... .... diff --git a/subjects/badexample04.md b/subjects/badexample04.md index 422ea3646..49c19cd92 100644 --- a/subjects/badexample04.md +++ b/subjects/badexample04.md @@ -1,3 +1,7 @@ +## bad example + +- Create your file and copy the example into it. + ``` ..## .... diff --git a/subjects/badformat.md b/subjects/badformat.md index 42dd7e167..79d55e8c5 100644 --- a/subjects/badformat.md +++ b/subjects/badformat.md @@ -1,3 +1,7 @@ +## bad example + +- Create your file and copy the example into it. + ``` ...# ...# diff --git a/subjects/goodexample00.md b/subjects/goodexample00.md index 0c79a0576..14de94602 100644 --- a/subjects/goodexample00.md +++ b/subjects/goodexample00.md @@ -1,4 +1,8 @@ -``` +## good example + +- Create your file and copy the example into it. + +```console .... .##. .##. diff --git a/subjects/goodexample01.md b/subjects/goodexample01.md index cabaf9603..6febbae1d 100644 --- a/subjects/goodexample01.md +++ b/subjects/goodexample01.md @@ -1,3 +1,7 @@ +## good example + +- Create your file and copy the example into it. + ``` ...# ...# diff --git a/subjects/goodexample02.md b/subjects/goodexample02.md index 324fc2e52..4b8d7784a 100644 --- a/subjects/goodexample02.md +++ b/subjects/goodexample02.md @@ -1,3 +1,7 @@ +## good example + +- Create your file and copy the example into it. + ``` ...# ...# diff --git a/subjects/goodexample03.md b/subjects/goodexample03.md index 9c7002735..48b6ea0d8 100644 --- a/subjects/goodexample03.md +++ b/subjects/goodexample03.md @@ -1,3 +1,7 @@ +## good example + +- Create your file and copy the example into it. + ``` .... .##. diff --git a/subjects/hardexam.md b/subjects/hardexam.md index 9178f570f..9c07f07cf 100644 --- a/subjects/hardexam.md +++ b/subjects/hardexam.md @@ -1,3 +1,7 @@ +## hard example + +- Create your file and copy the example into it. + ``` .... .##. From 6b3211e55435cea677b69173b3fc577117735af3 Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 23 Dec 2019 17:48:18 +0000 Subject: [PATCH 07/10] questions for ascii-art reverse and mandatory --- subjects/ascii-art/ascii-art.audit.en.md | 234 +++++++++++++++++++ subjects/ascii-art/ascii-art.en.md | 4 +- subjects/ascii-art/ascii-color.en.md | 6 +- subjects/ascii-art/ascii-fs.en.md | 6 +- subjects/ascii-art/ascii-justify.en.md | 4 +- subjects/ascii-art/ascii-output.en.md | 4 +- subjects/ascii-art/ascii-reverse-example.md | 72 +++++- subjects/ascii-art/ascii-reverse.audit.en.md | 57 +++++ subjects/ascii-art/ascii-reverse.en.md | 4 +- subjects/ascii-art/standard.txt | 3 +- 10 files changed, 371 insertions(+), 23 deletions(-) create mode 100644 subjects/ascii-art/ascii-art.audit.en.md create mode 100644 subjects/ascii-art/ascii-reverse.audit.en.md diff --git a/subjects/ascii-art/ascii-art.audit.en.md b/subjects/ascii-art/ascii-art.audit.en.md new file mode 100644 index 000000000..a01a1d5ac --- /dev/null +++ b/subjects/ascii-art/ascii-art.audit.en.md @@ -0,0 +1,234 @@ +#### Functional Project Questions + +##### Try passing as argument "hello". +``` + _ _ _ +| | | | | | +| |__ ___ | | | | ___ +| _ \ / _ \ | | | | / _ \ +| | | | | __/ | | | | | (_) | +|_| |_| \___| |_| |_| \___/ + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing as argument "HELLO". +``` + _ _ ______ _ _ ____ +| | | | | ____| | | | | / __ \ +| |__| | | |__ | | | | | | | | +| __ | | __| | | | | | | | | +| | | | | |____ | |____ | |____ | |__| | +|_| |_| |______| |______| |______| \____/ + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing as argument "HeLlo HuMaN". +``` + _ _ _ _ _ _ __ __ _ _ +| | | | | | | | | | | | | \/ | | \ | | +| |__| | ___ | | | | ___ | |__| | _ _ | \ / | __ _ | \| | +| __ | / _ \ | | | | / _ \ | __ | | | | | | |\/| | / _` | | . ` | +| | | | | __/ | |____ | | | (_) | | | | | | |_| | | | | | | (_| | | |\ | +|_| |_| \___| |______| |_| \___/ |_| |_| \__,_| |_| |_| \__,_| |_| \_| + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing as argument "1Hello 2There". +``` + _ _ _ _ _______ _ + _ | | | | | | | | ____ |__ __| | | +/ | | |__| | ___ | | | | ___ |___ \ | | | |__ ___ _ __ ___ +| | | __ | / _ \ | | | | / _ \ __) | | | | _ \ / _ \ | '__| / _ \ +| | | | | | | __/ | | | | | (_) | / __/ | | | | | | | __/ | | | __/ +|_| |_| |_| \___| |_| |_| \___/ |_____| |_| |_| |_| \___| |_| \___| + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing as argument "Hello\nThere". +``` + _ _ _ _ +| | | | | | | | +| |__| | ___ | | | | ___ +| __ | / _ \ | | | | / _ \ +| | | | | __/ | | | | | (_) | +|_| |_| \___| |_| |_| \___/ + + + _______ _ +|__ __| | | + | | | |__ ___ _ __ ___ + | | | _ \ / _ \ | '__| / _ \ + | | | | | | | __/ | | | __/ + |_| |_| |_| \___| |_| \___| + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "{Hello & There #}" as argument. +``` + __ _ _ _ _ _______ _ _ _ __ + / / | | | | | | | | ___ |__ __| | | _| || |_ \ \ + | | | |__| | ___ | | | | ___ ( _ ) | | | |__ ___ _ __ ___ |_ __ _| | | +/ / | __ | / _ \ | | | | / _ \ / _ \/\ | | | _ \ / _ \ | '__| / _ \ _| || |_ \ \ +\ \ | | | | | __/ | | | | | (_) | | (_> < | | | | | | | __/ | | | __/ |_ __ _| / / + | | |_| |_| \___| |_| |_| \___/ \___/\/ |_| |_| |_| \___| |_| \___| |_||_| | | + \_\ /_/ + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "hello There 1 to 2!" as argument. +``` + _ _ _ _______ _ _ _ +| | | | | | |__ __| | | _ | | ____ | | +| |__ ___ | | | | ___ | | | |__ ___ _ __ ___ / | | |_ ___ |___ \ | | +| _ \ / _ \ | | | | / _ \ | | | _ \ / _ \ | '__| / _ \ | | | __| / _ \ __) | | | +| | | | | __/ | | | | | (_) | | | | | | | | __/ | | | __/ | | \ |_ | (_) | / __/ |_| +|_| |_| \___| |_| |_| \___/ |_| |_| |_| \___| |_| \___| |_| \__| \___/ |_____| (_) + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "MaD3IrA&LiSboN" as argument. +``` + __ __ _____ _____ _ _ _____ _ _ _ +| \/ | | __ \ _____ |_ _| /\ ___ | | (_) / ____| | | | \ | | +| \ / | __ _ | | | | |___ / | | _ __ / \ ( _ ) | | _ | (___ | |__ ___ | \| | +| |\/| | / _` | | | | | |_ \ | | | '__| / /\ \ / _ \/\ | | | | \___ \ | '_ \ / _ \ | . ` | +| | | | | (_| | | |__| | ___) | _| |_ | | / ____ \ | (_> < | |____ | | ____) | | |_) | | (_) | | |\ | +|_| |_| \__,_| |_____/ |____/ |_____| |_| /_/ \_\ \___/\/ |______| |_| |_____/ |_.__/ \___/ |_| \_| + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "1a\"#FdwHywR&/()=" as argument. +``` + _ _ _ _ ______ _ _ _ _____ __ __ __ + _ ( | ) _| || |_ | ____| | | | | | | | __ \ ___ / / / / \ \ ______ +/ | __ _ V V |_ __ _| | |__ __| | __ __ | |__| | _ _ __ __ | |__) | ( _ ) / / | | | | |______| +| | / _` | _| || |_ | __| / _` | \ \ /\ / / | __ | | | | | \ \ /\ / / | _ / / _ \/\ / / | | | | ______ +| | | (_| | |_ __ _| | | | (_| | \ V V / | | | | | |_| | \ V V / | | \ \ | (_> < / / | | | | |______| +|_| \__,_| |_||_| |_| \__,_| \_/\_/ |_| |_| \__, | \_/\_/ |_| \_\ \___/\/ /_/ | | | | + __/ / \_\ /_/ + |___/ +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "{|}~" as argument. +``` + __ _ __ /\/| + / / | | \ \ |/\/ + | | | | | | +/ / | | \ \ +\ \ | | / / + | | | | | | + \_\ | | /_/ + |_| +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "[\]^_ \`a" as argument. +``` + ___ __ ___ /\ _ +| _| \ \ |_ | |/\| ( ) +| | \ \ | | \| __ _ +| | \ \ | | / _` | +| | \ \ | | | (_| | +| |_ \_\ _| | \__,_| +|___| |___| ______ + |______| +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "RGB" as argument. +``` + _____ _____ ____ +| __ \ / ____| | _ \ +| |__) | | | __ | |_) | +| _ / | | |_ | | _ < +| | \ \ | |__| | | |_) | +|_| \_\ \_____| |____/ + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing ":;<=>?@" as argument. +``` + __ __ ___ + _ _ / / ______ \ \ |__ \ ____ +(_) (_) / / |______| \ \ ) | / __ \ + < < ______ > > / / / / _` | + _ _ \ \ |______| / / |_| | | (_| | +(_) ( ) \_\ /_/ (_) \ \__,_| + |/ \____/ + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "\!\" #$%&'()*+,-./" as argument. +``` +__ _ _ _ _ _ _ _ __ _ __ __ _ __ +\ \ | | ( | ) _| || |_ | | (_) / / ___ ( ) / / \ \ /\| |/\ _ / / + \ \ | | V V |_ __ _| / __) / / ( _ ) |/ | | | | \ ` ' / _| |_ ______ / / + \ \ | | _| || |_ \__ \ / / / _ \/\ | | | | |_ _| |_ _| |______| / / + \ \ |_| |_ __ _| ( / / / _ | (_> < | | | | / , . \ |_| _ _ / / + \_\ (_) |_||_| |_| /_/ (_) \___/\/ | | | | \/|_|\/ ( ) (_) /_/ + \_\ /_/ |/ + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "ABCDEFGHIJKLMNOQPRSTUVWXYZ" as argument. +``` + ____ _____ _____ ______ ______ _____ _ _ _____ _ _ __ _ __ __ _ _ ____ _____ ____ _____ _____ _______ _ _ __ __ __ __ __ __ __ __ ______ + /\ | _ \ / ____| | __ \ | ____| | ____| / ____| | | | | |_ _| | | | |/ / | | | \/ | | \ | | / __ \ | __ \ / __ \ | __ \ / ____| |__ __| | | | | \ \ / / \ \ / / \ \ / / \ \ / / |___ / + / \ | |_) | | | | | | | | |__ | |__ | | __ | |__| | | | | | | ' / | | | \ / | | \| | | | | | | |__) | | | | | | |__) | | (___ | | | | | | \ \ / / \ \ /\ / / \ V / \ \_/ / / / + / /\ \ | _ < | | | | | | | __| | __| | | |_ | | __ | | | _ | | | < | | | |\/| | | . ` | | | | | | ___/ | | | | | _ / \___ \ | | | | | | \ \/ / \ \/ \/ / > < \ / / / + / ____ \ | |_) | | |____ | |__| | | |____ | | | |__| | | | | | _| |_ | |__| | | . \ | |____ | | | | | |\ | | |__| | | | | |__| | | | \ \ ____) | | | | |__| | \ / \ /\ / / . \ | | / /__ +/_/ \_\ |____/ \_____| |_____/ |______| |_| \_____| |_| |_| |_____| \____/ |_|\_\ |______| |_| |_| |_| \_| \____/ |_| \___\_\ |_| \_\ |_____/ |_| \____/ \/ \/ \/ /_/ \_\ |_| /_____| + + + +``` +###### Does it display the right graphical representation in ASCII as above? +##### Try passing "abcdefghijklmnopqrstuvwxyz" as argument. +``` + _ _ __ _ _ _ _ _ + | | | | / _| __ _ | | (_) (_) _ | | | | + __ _ | |__ ___ __| | ___ | |_ / _` | | |__ _ _ | | _ | | _ __ ___ _ __ ___ _ __ __ _ _ __ ___ | |_ _ _ __ __ __ __ __ __ _ _ ____ + / _` | | '_ \ / __| / _` | / _ \ | _| | (_| | | _ \ | | | | | |/ / | | | '_ ` _ \ | '_ \ / _ \ | '_ \ / _` | | '__| / __| | __| | | | | \ \ / / \ \ /\ / / \ \/ / | | | | |_ / +| (_| | | |_) | | (__ | (_| | | __/ | | \__, | | | | | | | | | | < | | | | | | | | | | | | | (_) | | |_) | | (_| | | | \__ \ \ |_ | |_| | \ V / \ V V / > < | |_| | / / + \__,_| |_.__/ \___| \__,_| \___| |_| __/ | |_| |_| |_| | | |_|\_\ |_| |_| |_| |_| |_| |_| \___/ | .__/ \__, | |_| |___/ \__| \__,_| \_/ \_/\_/ /_/\_\ \__, | /___| + |___/ _/ | | | | | __/ / + |__/ |_| |_| |___/ +``` +###### Does it display the right graphical representation in ASCII as above? + +#### Basic + +###### *Has the code passed the formatting? (gofmt, goimports) +###### *Does the project runs quickly and effectively? (Favoring recursive, no unnecessary data requests, etc) + +###### *Does the code present commenting? (https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md) +###### *Does the code present documentation? +###### *Does it present consistent indentation? +###### *Does the code avoid obvious comments? (no over information) +###### *Does the code avoid code grouping? +###### *Does the code have a consistent naming scheme (camelCase, under_scores)? +###### *Does the code obey the principles "DRY" (Don't Repeat Yourself) or "DIE" (Duplication is Evil)? +###### *Does the code obey the principal "KISS" (keep it simple, stupid)? +###### *Does the code obey the principle "YAGNI" (You Are not Gonna Need It)? +###### *Does the code obey the principle "SOC" (Separation of Concerns)? +###### *Does the code avoid deep nesting (if in ifs, forest of ifs)? +###### *Does the code present a good file and folder organization? +###### *Does it present a good separation of Code and Data? +###### *Does the go code follow the go recommendation? (https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md) + +###### *Is the error handled, is it error free? +###### *Is there a test file for this code? +###### *Are the tests checking each possible case? +###### *Is the output of the program well structured? Does any letter seems to be out of line? + +#### Social + +###### *Did you learn anything from this project? +###### *Can it be open-sourced / be used for other sources? +###### *Would you recommend/nominate this program as an example for the rest of the school? diff --git a/subjects/ascii-art/ascii-art.en.md b/subjects/ascii-art/ascii-art.en.md index 2ea99b83e..5a77732bc 100644 --- a/subjects/ascii-art/ascii-art.en.md +++ b/subjects/ascii-art/ascii-art.en.md @@ -19,9 +19,9 @@ This project will help you learn about : ### 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). +- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/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-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. +- It will be given some [**banner**](https://github.com/01-edu/public/tree/master/subjects/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 diff --git a/subjects/ascii-art/ascii-color.en.md b/subjects/ascii-art/ascii-color.en.md index b3c7606b1..f18907038 100644 --- a/subjects/ascii-art/ascii-color.en.md +++ b/subjects/ascii-art/ascii-color.en.md @@ -2,9 +2,10 @@ ### Objectives -You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject but with colors. +You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/ascii-art.en.md) as in the first subject but with colors. - The output should manipulate colors using the **flag** `--color=`, in which `--color` is the flag and `` is the color of choice. +- The colors must respect the [RGB](https://en.wikipedia.org/wiki/RGB_color_model) concept. - 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. @@ -12,6 +13,7 @@ This project will help you learn about : - Client utilities. - The Go file system(**fs**) API. +- RGB color model. - Ways to receive data. - Ways to output data. - Manipulation of strings. @@ -21,5 +23,5 @@ This project will help you learn about : ### 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). +- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md). - It is recommended that the code should present a **test file**. diff --git a/subjects/ascii-art/ascii-fs.en.md b/subjects/ascii-art/ascii-fs.en.md index ae1e15352..6b5a12f6d 100644 --- a/subjects/ascii-art/ascii-fs.en.md +++ b/subjects/ascii-art/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 in 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/blob/master/subjects/ascii-art/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 : @@ -16,9 +16,9 @@ This project will help you learn about : ### 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). +- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/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). +- You can see all about the **banners** [here](https://github.com/01-edu/public/tree/master/subjects/ascii-art). ### Usage diff --git a/subjects/ascii-art/ascii-justify.en.md b/subjects/ascii-art/ascii-justify.en.md index ab5078fee..02186777f 100644 --- a/subjects/ascii-art/ascii-justify.en.md +++ b/subjects/ascii-art/ascii-justify.en.md @@ -2,7 +2,7 @@ ### 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 : +You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/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 @@ -21,7 +21,7 @@ This project will help you learn about : ### 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). +- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md). - It is recommended that the code should present a **test file**. ### Usage diff --git a/subjects/ascii-art/ascii-output.en.md b/subjects/ascii-art/ascii-output.en.md index a4b40d07c..8dc80c2df 100644 --- a/subjects/ascii-art/ascii-output.en.md +++ b/subjects/ascii-art/ascii-output.en.md @@ -2,7 +2,7 @@ ### 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. +- You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/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. @@ -18,7 +18,7 @@ This project will help you learn about : ### 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). +- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md). - It is recommended that the code should present a **test file**. ### Usage diff --git a/subjects/ascii-art/ascii-reverse-example.md b/subjects/ascii-art/ascii-reverse-example.md index f4fcb799b..96ddc3b5d 100644 --- a/subjects/ascii-art/ascii-reverse-example.md +++ b/subjects/ascii-art/ascii-reverse-example.md @@ -47,13 +47,69 @@ ### example03 ```console - __ _ _ _ __ - / / | | | | (_) __ _ ___ ____ _____ _ _ \ \ -| | ___ ___ _ __ | |_ | |__ _ _ __ / _` | ( _ ) |___ \ |___ / | || | | | -| | / __| / _ \ | '_ \ | __| | _ \ | | | '_ \ | (_| | / _ \/\ __) | |_ \ | || |_ | | -| | \__ \ | (_) | | | | | \ |_ | | | | | | | | | | \__, | | (_> < / __/ ___) | |__ _| | | -| | |___/ \___/ |_| |_| \__| |_| |_| |_| |_| |_| __/ | \___/\/ |_____| |____/ |_| | | - \_\ |___/ /_/ - + __ _ _ _ __ + / / | | | | (_) __ _ ___ ____ _____ _ _ \ \ +| | ___ ___ _ __ | |_ | |__ _ _ __ ___ / _` | ( _ ) |___ \ |___ / | || | | | +| | / __| / _ \ | '_ \ | __| | _ \ | | | '_ ` _ \ | (_| | / _ \/\ __) | |_ \ | || |_ | | +| | \__ \ | (_) | | | | | \ |_ | | | | | | | | | | | | \__, | | (_> < / __/ ___) | |__ _| | | +| | |___/ \___/ |_| |_| \__| |_| |_| |_| |_| |_| |_| __/ | \___/\/ |_____| |____/ |_| | | + \_\ |___/ /_/ + + +``` + +### example04 + +```console + _ _ __ _ _ _ _ _ + | | | | / _| __ _ | | (_) (_) _ | | | | + __ _ | |__ ___ __| | ___ | |_ / _` | | |__ _ _ | | _ | | _ __ ___ _ __ ___ _ __ __ _ _ __ ___ | |_ _ _ __ __ __ __ __ __ _ _ ____ + / _` | | '_ \ / __| / _` | / _ \ | _| | (_| | | _ \ | | | | | |/ / | | | '_ ` _ \ | '_ \ / _ \ | '_ \ / _` | | '__| / __| | __| | | | | \ \ / / \ \ /\ / / \ \/ / | | | | |_ / +| (_| | | |_) | | (__ | (_| | | __/ | | \__, | | | | | | | | | | < | | | | | | | | | | | | | (_) | | |_) | | (_| | | | \__ \ \ |_ | |_| | \ V / \ V V / > < | |_| | / / + \__,_| |_.__/ \___| \__,_| \___| |_| __/ | |_| |_| |_| | | |_|\_\ |_| |_| |_| |_| |_| |_| \___/ | .__/ \__, | |_| |___/ \__| \__,_| \_/ \_/\_/ /_/\_\ \__, | /___| + |___/ _/ | | | | | __/ / + |__/ |_| |_| |___/ + +``` + +### example05 + +```console +__ _ _ _ _ _ _ _ __ _ __ __ _ __ +\ \ | | ( | ) _| || |_ | | (_) / / ___ ( ) / / \ \ /\| |/\ _ / / + \ \ | | V V |_ __ _| / __) / / ( _ ) |/ | | | | \ ` ' / _| |_ ______ / / + \ \ | | _| || |_ \__ \ / / / _ \/\ | | | | |_ _| |_ _| |______| / / + \ \ |_| |_ __ _| ( / / / _ | (_> < | | | | / , . \ |_| _ _ / / + \_\ (_) |_||_| |_| /_/ (_) \___/\/ | | | | \/|_|\/ ( ) (_) /_/ + \_\ /_/ |/ + + +``` + +### example06 + +```console + __ __ ___ + _ _ / / ______ \ \ |__ \ ____ +(_) (_) / / |______| \ \ ) | / __ \ + < < ______ > > / / / / _` | + _ _ \ \ |______| / / |_| | | (_| | +(_) ( ) \_\ /_/ (_) \ \__,_| + |/ \____/ + + +``` + +### example07 + +```console + ____ _____ _____ ______ ______ _____ _ _ _____ _ _ __ _ __ __ _ _ ____ _____ ____ _____ _____ _______ _ _ __ __ __ __ __ __ __ __ ______ + /\ | _ \ / ____| | __ \ | ____| | ____| / ____| | | | | |_ _| | | | |/ / | | | \/ | | \ | | / __ \ | __ \ / __ \ | __ \ / ____| |__ __| | | | | \ \ / / \ \ / / \ \ / / \ \ / / |___ / + / \ | |_) | | | | | | | | |__ | |__ | | __ | |__| | | | | | | ' / | | | \ / | | \| | | | | | | |__) | | | | | | |__) | | (___ | | | | | | \ \ / / \ \ /\ / / \ V / \ \_/ / / / + / /\ \ | _ < | | | | | | | __| | __| | | |_ | | __ | | | _ | | | < | | | |\/| | | . ` | | | | | | ___/ | | | | | _ / \___ \ | | | | | | \ \/ / \ \/ \/ / > < \ / / / + / ____ \ | |_) | | |____ | |__| | | |____ | | | |__| | | | | | _| |_ | |__| | | . \ | |____ | | | | | |\ | | |__| | | | | |__| | | | \ \ ____) | | | | |__| | \ / \ /\ / / . \ | | / /__ +/_/ \_\ |____/ \_____| |_____/ |______| |_| \_____| |_| |_| |_____| \____/ |_|\_\ |______| |_| |_| |_| \_| \____/ |_| \___\_\ |_| \_\ |_____/ |_| \____/ \/ \/ \/ /_/ \_\ |_| /_____| + + ``` diff --git a/subjects/ascii-art/ascii-reverse.audit.en.md b/subjects/ascii-art/ascii-reverse.audit.en.md new file mode 100644 index 000000000..57fd39995 --- /dev/null +++ b/subjects/ascii-art/ascii-reverse.audit.en.md @@ -0,0 +1,57 @@ +#### Functional Project Questions + +##### Try passing to the reverse flag (--reverse=example00.txt) the example 00 (github.com/public/subject/ascii-art/ascii-reverse-example.md). +`Hello World` +###### Does it display the value above? +##### Try passing to the reverse flag (--reverse=example01.txt) the example 01 (github.com/public/subject/ascii-art/ascii-reverse-example.md). +`123` +###### Does it display the value above? +##### Try passing to the reverse flag (--reverse=example02.txt) the example 02 (github.com/public/subject/ascii-art/ascii-reverse-example.md). +`#=\[` +###### Does it display the value above? +##### Try passing to the reverse flag (--reverse=example03.txt) the example 03 (github.com/public/subject/ascii-art/ascii-reverse-example.md). +`(somthing&234)` +###### Does it display the value above? +##### Try passing to the reverse flag (--reverse=example04.txt) the example 04 (github.com/public/subject/ascii-art/ascii-reverse-example.md). +`abcdefghijklmnopqrstuvwxyz` +###### Does it display the value above? +##### Try passing to the reverse flag (--reverse=example05.txt) the example 05 (github.com/public/subject/ascii-art/ascii-reverse-example.md). +`\!" #$%&'()*+,-./` +###### Does it display the value above? +##### Try passing to the reverse flag (--reverse=example06.txt) the example 06 (github.com/public/subject/ascii-art/ascii-reverse-example.md). +`:;<=>?@` +###### Does it display the value above? +##### Try passing to the reverse flag (--reverse=example07.txt) the example 07 (github.com/public/subject/ascii-art/ascii-reverse-example.md). +`ABCDEFGHIJKLMNOPQRSTUVWXYZ` +###### Does it display the value above? + +#### Basic + +###### *Has the code passed the formatting? (gofmt, goimports) +###### *Does the project runs quickly and effectively? (Favoring recursive, no unnecessary data requests, etc) + +###### *Does the code present commenting (https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md)? +###### *Does the code present documentation? +###### *Does it present consistent indentation? +###### *Does the code avoid obvious comments? (no over information) +###### *Does the code avoid code grouping? +###### *Does the code have a consistent naming scheme (camelCase, under_scores)? +###### *Does the code obey the principles "DRY" (Don't Repeat Yourself) or "DIE" (Duplication is Evil)? +###### *Does the code obey the principal "KISS" (keep it simple, stupid)? +###### *Does the code obey the principle "YAGNI" (You Are not Gonna Need It)? +###### *Does the code obey the principle "SOC" (Separation of Concerns)? +###### *Does the code avoid deep nesting (if in ifs, forest of ifs)? +###### *Does the code present a good file and folder organization? +###### *Does it present a good separation of Code and Data? +###### *Does the go code follow the go recommendation? (https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md) + +###### *Is the error handled, is it error free? +###### *Is there a test file for this code? +###### *Are the tests checking each case possible? +###### *Is the output of the program well structured? Does any letter seems to be out of line? + +#### Social + +###### *Did you learn anything from this project? +###### *Can it be open-sourced / be used for other sources? +###### *Would you recommend/nominate this program as an example for the rest of the school? diff --git a/subjects/ascii-art/ascii-reverse.en.md b/subjects/ascii-art/ascii-reverse.en.md index df76e7b99..626a4454f 100644 --- a/subjects/ascii-art/ascii-reverse.en.md +++ b/subjects/ascii-art/ascii-reverse.en.md @@ -2,7 +2,7 @@ ### Objectives -You must follow the same [instructions](https://github.com/01-edu/public/ascii-art.en.md) as in the first subject. +You must follow the same [instructions](https://github.com/01-edu/public/blob/master/subjects/ascii-art/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`. @@ -21,7 +21,7 @@ This project will help you learn about : ### 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). +- The code must respect the [**good practices**](https://github.com/01-edu/public/blob/master/subjects/good-practices.en.md). - It is recommended that the code should present a **test file**. ### Usage diff --git a/subjects/ascii-art/standard.txt b/subjects/ascii-art/standard.txt index fbe2802b0..a1f2f87c9 100644 --- a/subjects/ascii-art/standard.txt +++ b/subjects/ascii-art/standard.txt @@ -368,7 +368,6 @@ __ - _____ |_ _| | | @@ -376,6 +375,7 @@ __ _| |_ |_____| + _ | | @@ -818,7 +818,6 @@ __ __ - __ / / | | From f50598854fa4d858187d0edf2a6fd48d14bc8993 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Tue, 24 Dec 2019 13:53:21 +0000 Subject: [PATCH 08/10] 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 2ea99b83e..02fd46b14 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-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. +- It will be given some [**banner**](https://github.com/01-edu/public/blob/master/subjects/ascii-art/standard.txt) 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 380b996b7ff22a6065579344cc1981c0049f8f01 Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Thu, 26 Dec 2019 13:29:58 +0000 Subject: [PATCH 09/10] Update cat.en.md --- subjects/cat.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/cat.en.md b/subjects/cat.en.md index f7cada1af..6667d9a8b 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -12,7 +12,7 @@ Write a program that has the same behaviour as the system's `cat` command-line. - Copy to the `quest8.txt` file the following sentence : -`"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing` +`"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing` - Copy to the `quest8T.txt` file the following sentence : From f9953653c79ff0950576258455fcdb1c4aad2b8c Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Fri, 27 Dec 2019 16:47:05 +0000 Subject: [PATCH 10/10] Update go-reloaded.en.md --- subjects/go-reloaded.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/go-reloaded.en.md b/subjects/go-reloaded.en.md index 22d36dfda..8dfea0f42 100644 --- a/subjects/go-reloaded.en.md +++ b/subjects/go-reloaded.en.md @@ -671,7 +671,7 @@ Write a program that has the same behaviour as the system's `cat` command-line. - Copy to the `quest8.txt` file the following sentence : -`"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing` +`"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing` - Copy to the `quest8T.txt` file the following sentence :