Skip to content

A simple program to convert a single digit (0-9) into a stylized art form using the digit itself

Notifications You must be signed in to change notification settings

MED-007/ASCII-Art-Gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

ASCII Art Generator

This is a simple C++ program that prints ASCII art for digits (0-9) based on user input. Each digit is represented by a specific pattern, and you can easily extend the program to include more characters.

Table of Contents

Features

  • ASCII art representation for digits 0-9.
  • Customizable character replacement for the ASCII art.
  • Simple and easy-to-understand code, perfect for beginners.

Getting Started

Prerequisites

  • A C++ compiler (e.g., GCC, Clang, or MSVC).

Building the Program

  1. Clone the repository:

    git clone https://github.com/MED-007/ASCII-Art-Gen.git
    cd ASCII-Art-Gen
  2. Compile the program:

    g++ -o ascii.cpp
  3. Run the program:

    ./ascii

Usage

  1. Run the program.
  2. Enter a single digit (0-9) when prompted.
  3. The program will display the ASCII art representation of the digit.

Example:

Enter a single digit: 3
333333  
3    33 
     33 
  3333  
     33 
3    33 
333333  

Extending the Program

If you want to add more characters or digits, simply extend the asciiArt unordered_map in the printArt function. Add your desired characters and their corresponding ASCII art representation.

Example for the character A:

{'A', "   AA   \n  A  A  \n A    A \n AAAAAA \n A    A \n A    A \n"}

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request if you have suggestions for improvements or new features.

About

A simple program to convert a single digit (0-9) into a stylized art form using the digit itself

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages