Skip to content

jessieweiyi/alphabet_pyramid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alphabet Pyramid Code Challenge

This is a simple ruby implementation of a tail recursive to solve the alphabet pyramid code challenge. The program asks the user for a character of the english alphabet and will use the character to draw a pyramid whose sides are identified by the progression of the charcaters from A until the uppercase version of the user provided character.

e.g., Given e/E, it will draw:

        A
       B B
      C   C
     D     D
    E       E
     D     D
      C   C
       B B
        A

Dependencies

Ruby 2.0.0 +

Usage

To run the program:

./go.sh or

./go.sh <a character [a-zA-z], e.g, E, e>

To run the test cases

./go.sh -t or

./go.sh --test

To read the help text

./go.sh -h or

./go.sh --help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published