Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

10
votes
14answers
2k views

Codegolf Rainbow : Draw in Black-and-White

Introduction: (Source: Wikipedia) When we look at a rainbow it will always have the colors from top to bottom: Red; orange; yellow; green; blue; indigo; violet If we look at these individual rings, ...
35
votes
31answers
5k views

Display a clock face

Display the 12 numbers on a clock face exactly like this: ...
30
votes
7answers
5k views

Howdy! I'm the sheriff of code golf!

It's likely that anyone who used Twitter a couple of months ago would know about the 'Howdy! I'm the sheriff of X" meme. Where a simple image of a sheriff is drawn with emoji, and changes to fit a ...
16
votes
17answers
2k views

Alternating Pattern

In a now deleted stackoverflow question, someone posted the following: Write a program or function to print alternating patterns in * and ...
38
votes
10answers
10k views

Draw the “Cool S”

Introduction We all know the cool S (also known as Superman S, Stüssy S, Super S, Skater S, Pointy S, Graffiti S etc. etc.): billions of schoolchildren around the world drew this S and immediately ...
7
votes
2answers
170 views

Drawing convex polyiamonds

Description OEIS sequence A096004 gives the Number of convex triangular polyominoes [polyiamonds] containing n cells. It begins: ...
17
votes
7answers
603 views

Stacked digit staircases

Given positive integers \$w\$ and \$h\$ output \$w\$ columns and \$h\$ rows of text as described below. The first row begins with 11 0s, the second row with 10 <...
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
324 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, ...
13
votes
5answers
2k views

A nicely-spaced ASCII spiral

Consider this spiral ########### # # ####### # # # # # ### # # # # # # # # # # # # # # # # ##### # # # ######### Starting in the centre: The first ...
10
votes
3answers
296 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 ...
15
votes
4answers
299 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 ...
9
votes
4answers
295 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 Nim is to take the ...
19
votes
13answers
3k 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 ...
25
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 ...
16
votes
5answers
465 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 ...
22
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
13answers
1k 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 ...
14
votes
13answers
621 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
98 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
179 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
864 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
247 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 ...
25
votes
40answers
4k views

Diamond creator +

Challenge : Given an integer n as input. Create a diamond that is 2x the given number n. Input : Input is integer ...
24
votes
3answers
445 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
1k 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
371 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
2k views

Render an ASCII maze

look! It's an ASCII maze! Soo coolzors, amazeballs and stuff. ...
42
votes
42answers
3k 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 ...
32
votes
21answers
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 ...
67
votes
17answers
11k views

Two lasers between two mirrors

What if we have a corridor comprised of two parallel mirrors? ...
0
votes
5answers
272 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
990 views

Join up the rooms

So, here's a map of, let's say, a dungeon... ########## # ##### # ##### ########## ########## ########## ########## #### ## #### ## ########## Let's ...
42
votes
65answers
7k 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
317 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 ...
5
votes
13answers
763 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
695 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
454 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
486 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 ...
31
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
3k 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 ...
16
votes
23answers
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
3k 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, "abc\ndef" ...
5
votes
3answers
547 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 ...
72
votes
30answers
11k 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 ...
31
votes
16answers
3k 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 ...