Questions tagged [ascii-art]

This challenge involves creating or parsing pictures using text characters as the paint. Typically this uses only 95 printable (from a total of 128) characters defined by the ASCII Standard from 1963.

Filter by
Sorted by
Tagged with
76
votes
30answers
12k views

Create an “H” from smaller “H”s

Challenge Create a function or program that, when given an integer size, does the following: If size is equal to 1, output <...
11
votes
6answers
1k views

Counting Sheep to Fall Asleep

Most people are familiar with the trope about counting sheep to fall asleep. There's a herd of sheep, some of them jumping over a fence, and you count the sheep as they jump. Supposedly, this helps ...
34
votes
20answers
4k views

Alphabet cannon

A cannonball is fired so that in the first eyeblink of its flight it ascends by N treetops, during the second eyeblink by N-1 ...
3
votes
1answer
273 views

Turn Your Program into a Snake! [duplicate]

...or "snakes but not too long". Inspired by this challenge and this comment. Task Write a program or a function that takes no input and outputs its own source code formatted as a snake according ...
22
votes
22answers
2k views

Verifying a horizontal ASCII pet snake

Recently there have been a couple of ASCII pet snake challenges (e.g. here) ...
29
votes
27answers
5k views

Code Golf: Your own horizontal pet ASCII snake

Very heavily inspired by this challenge Code Golf: Your own pet ASCII snake - I thought making it horizontal would add an extra layer of complexity. An example horizontal snake: ...
34
votes
48answers
10k views

Code Golf: Your own pet ASCII snake

So, I wrote myself a one-liner which printed out a snake on the console. It's a bit of fun, and I wondered how I might condense my code... Here's a (short) example output: ...
30
votes
15answers
3k views

ABAA/ABBB: Generate this recursive 2D pattern

I was messing around with infinite resistor networks (long story) when I came across the following interesting recursive pattern: |-|| |--- Each instance of this ...
43
votes
10answers
5k views

Falcon Heavy stages

Choose a set of four bytes without replacement (i.e. no byte repeated), and not necessarily in any particular order, from any one of the following four sets: The characters of any one single-byte ...
21
votes
5answers
872 views

5 Day Weather Forecast

Weather forecasting: Wrong too often to rely on, right too often to ignore. Given a high and low temperature and one of four weather conditions per day, output an ASCII-art graphical five day weather ...
45
votes
19answers
5k views

Create a square of increasing size by replicating the initial code

Your assignment is to write a program of even length, that prints an ASCII-art square (described below), that increases its side length by 1 unit each time the original source code is pasted in the ...
1
vote
3answers
311 views

Screenshot Tiler

Introduction Given a set of text-based "screenshots" consisting of printable ASCII chars merge them so that all of them form one long screenshot so that nobody has to do it themselves when reading it....
21
votes
8answers
2k views

Create a scissors animation!

Try to create a simple ASCII art scissors animation! Challenge All inputs will be integers -31 through 31. The output will be an animation (To be outputted somewhere, as long as the previous frame ...
14
votes
4answers
922 views

Bottom part of the Hourglass

Challenge: Input: Three integers: bottom-edge length; starting amount of grains of sand; index Output: Output the state of the bottom part of an hourglass at the given index, based on the given ...
5
votes
3answers
345 views

The Eyes are Following You

This is inspired by the excellent Visualize Visual Eyes challenge. It is posted with permission from and credit to @Jordan We are going to create an ASCII art approximation of the Xeyes challenge but ...
42
votes
6answers
2k views

Visualize Visual Eyes

You may or may not remember Xeyes, a demo program that came with (and, as far as I know, still comes with) the X window system. Its purpose was to draw a pair of eyes that followed your mouse cursor: ...
83
votes
6answers
4k views

3D ASCII Block Building

Challenge Write a program that takes an 11x11 array of integers, and constructs a 3D ASCII block building, where each value in the array represents the height of a column of blocks at the coordinates ...
21
votes
5answers
752 views

Convert a HTML page into a mountain

Task: convert a HTML page into a mountain! When HTML pages are indented, they can look like: ...
4
votes
0answers
73 views

Zigzag a string [duplicate]

A zigzag scan is a method of encoding 2D information in one dimension: Write a function or program that, given a one-dimensional string of printable ASCII characters, will reverse the zigzag scan to ...
4
votes
9answers
425 views

Print the alphabet Christmas tree

I know it's 1.5 weeks after Christmas but trying to print an isosceles triangle in a monospaced font makes it look weird. Challenge Print the alphabet from A to Z so that it forms a filled triangle ...
15
votes
11answers
2k views

Make me an upside-down Christmas tree!

Challenge We all know about normal Christmas trees - but how about an upside-down Christmas tree! This is a fairly easy, Christmas themed challenge. The objective of this challenge is to make me an ...
22
votes
3answers
559 views

Draw an ASCII key signature

Given an input of a note, output an ASCII drawing of the corresponding major key on the treble clef. Here are all the major keys (that don't include double-sharps or double-flats) and their ...
87
votes
14answers
8k views

[CHRISTMAS THEME DISCLAIMER HERE]

Note to mods, if the title doesn't do justice, change it to whatever, I thought it was funny. You're tasked with hanging up the lights for this Christmas season, and your family has decided that for ...
24
votes
14answers
1k views

Parse the Parcel

Thanks to your help in the Mark My Mail challenge, PPCG-Post has successfully stamped all of its parcels with the generated barcodes! Now, it's time to decode them. In this challenge your program ...
3
votes
0answers
102 views

Print a flag in as little lines as possible! [duplicate]

Just for fun, I wanted to see how little lines I could solve this problem in, using python. I managed to condense my code into 9 lines. ...
12
votes
2answers
478 views

Play a game of Dice Cricket

Dice Cricket is a game I was introduced to as a child and have used as a way to pass time for years since. I couldn't find a Wikipedia page so I'll explain the rules below. Dice Cricket Rules ...
15
votes
7answers
560 views

You've got a book to make!

You work at a virtual, old-fashioned printing press. To help you arrange your monospace letters faster, you decide to make the shortest program possible to help you. Given a string of text and a page ...
6
votes
7answers
458 views

It's a Slippery Slope

There has not been a challenge regarding slope fields, as a far as I can tell. So, I might as well make one. The challenge Given: A black box function f which ...
13
votes
6answers
1k views

ASCII Hexagon Chain

Problem Draw a hexagon chain x long, each with side of y length Input x - the length of ...
12
votes
3answers
488 views

Advent Challenge 4: Present Assembly Line!

<< Prev Next >> Santa was able to remanufacture all of the presents that the elves stole overnight! Now he has to send them to the assembly line for packaging. He usually has a camera to ...
37
votes
26answers
10k views

Happy Birthday, Finland!

Introduction As is known, in 2017, Finland celebrates its 100 years of independence. To mark the occasion, it is your job to produce a Finnish flag for everyone's enjoyment. Challenge Create a ...
7
votes
7answers
374 views

The Microwave Challenge

Inspired by this comment. Input The number of seconds on the timer. Output Here's our basic microwave: ...
15
votes
4answers
655 views

There's no such thing as a “half empty glass”

You probably know the rhetorical question of whether a glass is half full or half empty. I'm getting a little tired of the phrase, so I decided that it's time to eliminate this confusion about glass ...
39
votes
33answers
3k views

Mark My Mail! - ASCII Barcodes

4-state barcodes Many postal services (Royal Mail UK, Canada Post, US Mail, etc) use a 4-state barcode to encode information about their mail. Rendered in ASCII, it may look something like this: | ...
13
votes
6answers
1k views

Spiral out the Alphabet!

Look at the following string. Notice a pattern? ABEFNOPEFGH DC G Q I M H R J LKJI S K D T L C U M BAZYXWV N E O D P C Q BAZYXWVUTSR As some might have ...
4
votes
13answers
3k views

Coffee Machine Machine

You left your computer for too long, and it went to sleep. Wake it up again by printing the following coffee maker. ...
88
votes
9answers
5k views

Golf an Advent Calendar

It's that time of year when many of us get our advent calendars! If you are unfamiliar with an advent calendar, these are special calendars used to count down advent in anticipation of Christmas. In ...
26
votes
1answer
416 views

Jolly gerrymandering

Background The United States has a unique love of gerrymandering––the deliberate manipulation of an electoral district to predict certain voting results. Just recently there was a gerrymandering case ...
24
votes
32answers
5k views

Circular Keyboard Spiral

This is a QWERTY keyboard. Q W E R T Y U I O P A S D F G H J K L Z X C V B N M We can "spiral out" on this keyboard, starting from G. The spiral will start at ...
21
votes
3answers
2k views

Decode Faux Braille

...
18
votes
20answers
2k views

Garden architecture - ASCII style

We have a square 10x10 meter garden outside our house. We want to plant grass and make a terrace. We have decided how to divide the garden, but we haven't decided the ratio between amount of grass vs ...
27
votes
9answers
2k views

Thanksgiving Feast

Tomorrow, November 23rd, is Thanksgiving Day in the United States. To prepare, you need to cook up some ASCII turkeys. However, since you're late in planning, you need a program (or function) to help ...
13
votes
24answers
2k views

Scoop me an icecream please

Make me an icecream cone please We have a ton of great ice cream places here in New England. Most of them are closed for the winter now, so... ...
69
votes
15answers
6k views

The Quantum Drunkard's Walk

It is well known that a person on a grid under the influence of alcohol has an equal chance of going in any available directions. However, this common-sense statement does not hold in the realm of ...
36
votes
22answers
2k views

Basic ASCII Tallies

Alternate Title: Tally Your Prison Sentence on the Wall Given a number n, output tallies grouped into the traditional 5-per-group and 50 per row. Examples 1 <...
13
votes
14answers
1k views

Pyramid Scheme Negation

In my language Pyramid Scheme, there is a slightly funny construct: the empty triangle: ^ - When given no arguments, it returns ...
15
votes
6answers
1k views

How to code colors in hex

Hexagonal tessellations, or tilings of the plane, are three-colorable -- meaning that using only three colors, such as Red, Blue, and Green, every hexagon can be colored without any two hexagons that ...
22
votes
5answers
953 views

Symmetric Ladybugs

Introduction: When we think about Ladybugs, we usually think of a red or dark orange bug with black spots. Although this isn't necessary true, since there are also black with red/orange spotted ...
-3
votes
23answers
479 views

8 8's make 1000

Print the following output of a happy coincidence addition pattern: 8 8 8 88 +888 ---- 1000 Rules: No leading spaces except the ones already present ...
27
votes
9answers
2k views

ASCII rhombic grid

Write the shortest code measured by byte count to generate an ASCII grid composed of rhombi, given the following parameters: m - number of complete rhombi in one row n - number of rows s - side of ...

1 2 3 4 5 22