ASCII art patterns and interactive programs written during M.Sc studies
- All programs & codes developed during M.Sc (Bioinformatics) for 'Programming in C', Semester-II, Year 2010-2011
- All coding done on last corner Windows (Vista) desktop, near window, in practical Lab No.1 at Bioinformatics Center, University of Pune
- Collection of creative ASCII art patterns and interactive console programs
macOS/Linux:
# Check if compiler is installed
gcc --version
# If not installed (macOS)
xcode-select --installWindows:
# Build all patterns
make all
# Run a specific pattern
./bin/basic/hello_world
./bin/geometric/patang
./bin/symbols/lambda
# Run all patterns
make run-all# Compile specific category
make geometric
# Compile single file
gcc -Wall src/cross_platform/basic/hello_world.c -o bin/basic/hello_worldC-kide/
โโโ README.md # This file
โโโ LICENSE # MIT License
โโโ Makefile # Build automation
โโโ src/
โ โโโ windows/ # Original Windows files (historical)
โ โโโ cross_platform/ # Mac/Linux compatible files
โ โโโ basic/ # Basic programs
โ โ โโโ hello_world.c
โ โโโ geometric/ # Geometric patterns
โ โ โโโ patang.c # Kite pattern
โ โ โโโ damru.c # Hourglass pattern
โ โ โโโ triangle_*.c # Triangle patterns
โ โ โโโ ...
โ โโโ symbols/ # Symbol patterns
โ โ โโโ lambda.c # Lambda symbol
โ โ โโโ bluetooth.c # Bluetooth logo
โ โ โโโ arrow_bada.c # Arrow pattern
โ โโโ interactive/ # Interactive programs
โ โ โโโ harami_ka_mall_atm.c # ATM simulator
โ โ โโโ alpha_numeric_kashish.c # Number printer
โ โ โโโ ...
โ โโโ complex/ # Complex patterns
โ โโโ square_by_triangle.c
โโโ bin/ # Compiled executables (auto-generated)
โโโ docs/ # Documentation
โ โโโ compilation_guide.md # Detailed compilation guide
โโโ scripts/ # Build utilities
โโโ build_all.sh # Build script
| File | Description | Difficulty |
|---|---|---|
hello_world.c |
Basic Hello World | โญ |
| File | Description | Difficulty |
|---|---|---|
patang.c |
Kite pattern | โญโญ |
damru.c |
Hourglass/drum | โญโญ |
khidki.c |
Window frame | โญโญ |
triangle_bhariv_right.c |
Right triangle | โญโญ |
blank_triangle_left.c |
Hollow triangle | โญโญโญ |
curved_lines.c |
Curved line patterns | โญโญ |
| File | Description | Difficulty |
|---|---|---|
lambda.c |
Lambda symbol | โญโญ |
bluetooth.c |
Bluetooth logo | โญโญโญ |
arrow_bada.c |
Arrow pattern | โญโญ |
| File | Description | Difficulty |
|---|---|---|
harami_ka_mall_atm.c |
ATM simulator | โญโญโญโญ |
alpha_numeric_kashish.c |
Alphabet/Number printer | โญโญโญ |
aakash_me_atgc.c |
Stars animation | โญโญโญ |
| File | Description | Difficulty |
|---|---|---|
square_by_triangle.c |
Square from triangles | โญโญโญ |
Patang (Kite):
*
*
*
*
*
*
* *
* **
***
****
*****
Damru (Hourglass):
* *
* * * *
* * * *
* * * *
* * * *
* * *
* * * * *
* * * * *
* * * * *
* * * * *
* * *
make all # Compile all programs
make basic # Compile basic programs only
make geometric # Compile geometric patterns only
make symbols # Compile symbol patterns only
make interactive # Compile interactive programs only
make complex # Compile complex patterns only
make run-all # Compile and run all programs
make clean # Remove compiled binaries
make help # Show help# Single file
gcc -Wall -std=c99 src/cross_platform/basic/hello_world.c -o bin/basic/hello_world
# With debugging
gcc -g -Wall -std=c99 src/cross_platform/geometric/patang.c -o bin/geometric/patang
# Optimized
gcc -O2 -Wall -std=c99 src/cross_platform/symbols/lambda.c -o bin/symbols/lambdaRecommended progression:
- Basic โ Start with
hello_world.c - Geometric โ Learn loops with
patang.c,damru.c - Symbols โ Practice complex conditions with
lambda.c - Interactive โ User input with
alpha_numeric_kashish.c - Complex โ Advanced patterns with
square_by_triangle.c
For any file, comment these lines:
// #include<conio.h>
// getch();Then copy code to:
- Choose appropriate category (
basic/,geometric/,symbols/,interactive/,complex/) - Follow snake_case naming:
pattern_name.c - Add to both
src/windows/andsrc/cross_platform/category/ - Update README.md pattern table
- Test compilation:
make category
/*
Pattern Name
Brief description of what it creates
*/
#include<stdio.h>
#include<conio.h> // Windows only
int main(){
// Your pattern logic here
getch(); // Windows only
return 0;
}- Loops: Nested for loops for pattern generation
- Conditionals: Complex if-else logic for shapes
- ASCII Art: Creative use of characters for visual output
- User Input: Interactive console programs
- Problem Solving: Mathematical thinking for geometric patterns
- Code Organization: Structured project layout
- Issues: Report bugs or request features via GitHub issues
- Documentation: See
docs/compilation_guide.mdfor detailed instructions - Build Problems: Try
make clean && make all
All patterns are creative programming exercises demonstrating loops, conditionals, and ASCII art generation in C.