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
19
votes
6answers
2k views

Draw an ASCII meandering curve

For the purpose of this question a meandering curve is one that follows the general direction from left to right, but makes repeatedly n+1 turns at 90 degrees to the left and then n+1 turns to the ...
1
vote
3answers
342 views

Rounded Rectangles

Challenge Given an integer greater or equal to 4, n, print a rounded rectangle of as close as possible (with a gap of 1) sides and a perimeter of n characters. Rules n is always 4 or greater, ...
15
votes
6answers
3k views

A nicely-spaced ASCII spiral

Consider this spiral ########### # # ####### # # # # # ### # # # # # # # # # # # # # # # # ##### # # # ######### Starting in the centre: The first ...
10
votes
4answers
397 views

Output an ASCII “splat”

If you throw an ASCII egg in a given direction, you end up with an ASCII splat of size n. It "starts" with one o (the yolk), and continues in a given direction with ...
25
votes
30answers
2k views

Let's design a digit mosaic

Challenge Given a positive integer \$N\$, repeat each of its digits \$d_1, d_2, d_3, \cdots, d_n\$ a number of times corresponding to its position in \$N\$. In other words, each digit \$d_k\$ should ...
16
votes
4answers
346 views

Zigzag this string by collapsing duplicates

Given a string, your task is to collapse it into a zigzag-like structure as described below. Folding into a Zigzag We'll take the string "Mississippi" as an ...
10
votes
4answers
415 views

Visualize a Nim board like an expert

Background In the game of Nim, players alternate removing "stones" from "piles": on each turn, a player must remove between one and all stones from a single pile. The object of ...
19
votes
13answers
4k views

Embiggen your input

This is a bit similar to this dust covered entry but I'm hoping my spin on it makes it unique enough. Not been able to find anything dissuading me from posting this but there is quite the sea out ...
24
votes
32answers
3k views

ASCII art uncompression from a base-n number

This is inspired by an 05AB1E answer by Magic Octupus Urn. Given two arguments, a positive integer and a string/list of characters: Translate the number to base-n, where n is the length of the ...
15
votes
5answers
528 views

I forgot towel day

I forgot towel day Sandbox link PHP script for both examples (error, formatting the string) Corrected php script, the input is self explanatory PHP script with more input comment/uncomment ...
23
votes
5answers
1k views

Animate Jacob's ASCII Ladder

You may have seen Jacob's Ladder in children's science museums. If you're not familiar with what they look like, there are several images and video examples on the Wikimedia Commons. The challenge ...
14
votes
14answers
2k views

Treasure Map Drawing Bot

You're organizing a treasure hunt for your friends. To conduct things more easily, you want to draw a map of all locations where you hid the precious objects. Input Any form of input denoting a list ...
18
votes
15answers
1k views

The 21 Hairstyles of the Apocalypse

The 21 Hairstyles of the Apocalypse Given a a list of numbers between 1 and 21 (or 0 and 20) output a "stitched together" drawing of the following faces (see rules for stitching information):...
9
votes
0answers
103 views

How Much Ya Bench? [duplicate]

Inspired by the challenge A pile of weights. Challenge Given an integer as a weight in pounds, output an ASCII barbell that can represent the weight. Weights will come in the form of the barbell (...
-6
votes
1answer
326 views

Creating a Y-shaped Recursive Tree [duplicate]

Challenge In this challenge you will construct trees, in the form of ASCII Art using recursion. Basically you will generate the ASCII version of the Fractal Tree Input Number of iterations ...
13
votes
7answers
904 views

A pile of weights

Challenge: You'll be given an ASCII image of a pile of weights as input, and must output the combined weight of the pile. Format: There are 5 different weights, weighing 1, 2, 5, 10, 20 Passerees (...
18
votes
32answers
2k views

Fill out my Bubble Sheet

Today was AP exam registration day at my school, and while I was meticulously bubbling in the pages and pages of information required, the idea for this challenge hit me. So, given a string of letters ...
11
votes
4answers
316 views

Digging quarry timelapse

Do you love watching cool timelapses of constructions or other massive work done in minutes? Lets make one here. We will be looking at an excavator digging quarry, making pictures each day to see ...
28
votes
46answers
5k views

Diamond creator +

Challenge : Given an integer n as input. Create a diamond that is 2x the given number n. Input : Input is integer ...
25
votes
4answers
517 views

Race Around the Track

I'm looking to find the fastest racer around. Show me your fastest lap around this 18x14 track shown below. ...
16
votes
12answers
2k views

Program my autodialer

Back in the day, telephone autodialers used punched cards with one column for each digit of the number to be dialed. Columns had seven rows. The first three rows represented the numbers (1,2,3), (4,5,...
6
votes
5answers
924 views

ASCII Mountain Range

This is a CC-BY-SA challenge from the CCSC Mid-South Programming Contest 2018. Author(s): Brent Yorgey Source: Consortium for Computing Sciences in Colleges Mid-South Programming contest 2018 https://...
18
votes
8answers
3k views

Render an ASCII maze

look! It's an ASCII maze! Soo coolzors, amazeballs and stuff. ...
45
votes
44answers
4k views

Make a Word Icicle

Due to technical limitations of Stack Exchange, the title is rendered incorrectly. The correct title for this challenge is Make a ...
34
votes
22answers
3k views

Alphabet Histogram

Given an input sentence consisting of one or more words [a-z]+ and zero or more spaces , output an ASCII-art histogram (bar ...
72
votes
17answers
11k views

Two lasers between two mirrors

What if we have a corridor comprised of two parallel mirrors? ...
0
votes
5answers
296 views

Yet another “draw a box” Question [duplicate]

The following problem is a common interview question, thus dull answers are discouraged. Go short or creative, best if both: Create the following pattern ...
15
votes
9answers
1k views

Join up the rooms

So, here's a map of, let's say, a dungeon... ########## # ##### # ##### ########## ########## ########## ########## #### ## #### ## ########## Let's ...
47
votes
70answers
8k views

Make an Emergency Corridor

In some nations there are recommendations or laws on how to form emergency corridors on streets that have multiple lanes per direction. (In the following we only consider the lanes going in the ...
6
votes
5answers
337 views

Tower building challenge

I have recently thought of a wonderful relatively old mobile game, called Tower Bloxx. Alhough I'm not really old myself, but it reminded me of childhood and school :) So this my challenge is a kind ...
4
votes
13answers
1k views

ASCII-art to numbers

Inspired by Digits in their lanes Input: An ASCII-art of width ≤ 11, consisting of spaces and #. (You can choose any two distinct characters instead.) Example: ...
9
votes
12answers
798 views

Asterisks viral

Given a positive integer N ("virality"), your program should create an ASCII-art drawing of a tree with two branches of length N extending downwards and/or rightwards from the top-left corner. The ...
29
votes
11answers
3k views

Asterisk spiral

Given the spiral of size S and the step N, output the "square" S*S spiral having ...
19
votes
1answer
535 views

Write a Shape Simplifier

Introduction I have a lot of ASCII rocks. They are built with dashes, pipes, Vs, carets, angle brackets, slashes and spaces. Example: /--\ | | | | \--/ I want ...
6
votes
6answers
662 views

Console print a bar graph

The objective is to print a graph from an array of numbers, of the design below. Printing the X and Y scale exactly as in the "design", with padding, is part of the challenge. The input array of ...
32
votes
33answers
2k views

Digits in their lanes

Input: A list of integers Output: Put each digit (and the minus sign) in its own lane, in the order -0123456789, ignoring any duplicated digits. Example: Input:...
21
votes
20answers
4k views

Eiffel Towers: Create a large “A” from “A”s

Create a function which given a number of lines n, makes a bigA. The horizontal bar of bigA ...
18
votes
25answers
2k views

Factory workers

Challenge Factory workers are usually very hard-working. However, their work is now being commonly replaced with machines. You have to write a program that takes a number as input. It will print out ...
20
votes
27answers
4k views

Horizontally Aligned ASCII Art

Your task is to accept as input two "ASCII Art"s, and align each piece of art next to each other horizontally. For example, say you have two strings, ...
5
votes
3answers
620 views

Make a hammer animation

The goal is to make a two frame animation with ASCII art of a hammer smacking a table. Trailing white-space is allowed and the frames need to repeat continuously. The program should iterate over both ...
78
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
278 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 ...
23
votes
23answers
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: ...
32
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 ...
44
votes
10answers
6k 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
884 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 ...

1 2 3
4
5
23