8000 [EXTERNAL] Update README.md in ascii-art subject (typos in examples) by motonai · Pull Request #2994 · 01-edu/public · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[EXTERNAL] Update README.md in ascii-art subject (typos in examples) #2994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

motonai
Copy link
@motonai motonai commented Jun 29, 2025

Fixes typos in the examples given:

  • Fixes space length (6pixels+2 for separating chars) in examples that include space character
  • Fixes missing space after "2" char in "1Hello 2There" example

Why?

Misleads the student on what output should expect, especially if they use them for unit testing.

Solution Overview

Fixes the spaces

Implementation Details

Adds the spaces needed

Build Images

Not applicable... It's just a README.md

motonai added 3 commits June 29, 2025 21:43
Fixes typos in the examples given:
- Fixes space length (6pixels+2 for separating chars) in examples that include space character
- Fixes missing space after "2" char in "1Hello 2There" example
@sadiqui
Copy link
Contributor
sadiqui commented Jul 10, 2025

@motonai I agree with your PR except for the (6 pixels + 2 for separating chars) part.
Normally, it should be:

  • Add 1 missing whitespace after "o"
  • Plus 6 whitespaces (representation of one whitespace in the provided ASCII).

So the separating spaces should be (1 + 6) instead of (2 + 6).

Here is the corrected version:

student$ go run . "Hello There" | cat -e
 _    _          _   _                 _______   _                           $
| |  | |        | | | |               |__   __| | |                          $
| |__| |   ___  | | | |   ___            | |    | |__     ___   _ __    ___  $
|  __  |  / _ \ | | | |  / _ \           | |    |  _ \   / _ \ | '__|  / _ \ $
| |  | | |  __/ | | | | | (_) |          | |    | | | | |  __/ | |    |  __/ $
|_|  |_|  \___| |_| |_|  \___/           |_|    |_| |_|  \___| |_|     \___| $
                                                                             $
                                                                             $
student$ go run . "1Hello 2There" | cat -e
     _    _          _   _                         _______   _                           $
 _  | |  | |        | | | |                ____   |__   __| | |                          $
/ | | |__| |   ___  | | | |   ___         |___ \     | |    | |__     ___   _ __    ___  $
| | |  __  |  / _ \ | | | |  / _ \          __) |    | |    |  _ \   / _ \ | '__|  / _ \ $
| | | |  | | |  __/ | | | | | (_) |        / __/     | |    | | | | |  __/ | |    |  __/ $
|_| |_|  |_|  \___| |_| |_|  \___/        |_____|    |_|    |_| |_|  \___| |_|     \___| $
                                                                                         $
                                                                                         $
student$ go run . "{Hello There}" | cat -e
   __  _    _          _   _                 _______   _                           __    $
  / / | |  | |        | | | |               |__   __| | |                          \ \   $
 | |  | |__| |   ___  | | | |   ___            | |    | |__     ___   _ __    __<
8000
span class="pl-s">_   | |  $
/ /   |  __  |  / _ \ | | | |  / _ \           | |    |  _ \   / _ \ | '__|  / _ \   \ \ $
\ \   | |  | | |  __/ | | | | | (_) |          | |    | | | | |  __/ | |    |  __/   / / $
 | |  |_|  |_|  \___| |_| |_|  \___/           |_|    |_| |_|  \___| |_|     \___|  | |  $
  \_\                                                                              /_/   $
                                                                                         $

@motonai
Copy link
Author
motonai commented Jul 10, 2025

I'll be pushing ASAP. You are correct, I forgot that last space column per letter is coming from the letter itself. Thank you for your feedback.

@motonai
Copy link
Author
motonai commented Jul 10, 2025

Seems ready now :)

@MSilva95 MSilva95 self-requested a review July 11, 2025 10:19
@Oumaimafisaoui Oumaimafisaoui requested review from zanninso and removed request for MSilva95 July 14, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0