Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

interactive pattern generation engine

multi-threaded CLI engine for generating geometric and numerical ASCII patterns based on user-specified dimensions.

architecture

the engine utilizes a modular Patterns class coupled with multi-threading to handle pattern rendering isolated from the main control loop.

core components

  • Patterns.triangle(n) - renders a left-aligned right-angled star triangle of height n.
  • Patterns.pyramid(n) - renders a centered, space-padded symmetrical star pyramid.
  • Patterns.numberPyramid(n) - renders an ascending numerical pyramid preserving column alignment.
  • main() - interactive console loop prompting dimension size, managing execution threads, and handling screen refreshes.

execution

python patterns.py

interactive choices:

  1. right-angled star triangle
  2. centered star pyramid
  3. numerical pyramid
  4. exit