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

Apartment Building

Draw an "apartment" building according to the specifications below. Basic Rules Take, as input, the number of floors of the building. Return a building with that many floors meeting the ...
91 votes
123 answers
18k views

Print this diamond

This question has been spreading like a virus in my office. There are quite a variety of approaches: Print the following: ...
20 votes
31 answers
5k 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, ...
46 votes
24 answers
4k views

The sea in your terminal

Background Summer is well over in the Northern Hemisphere, and a lot of us miss the sun, the beaches, the waves of the ocean... This challenge aims at cheering them up by reminding them of the sea. ...
10 votes
13 answers
1k views

Implement cowsay

Introduction cowsay is a Unix command made by Tony Monroe, written in Perl. It outputs a picture of a cow saying given text. For example: ...
18 votes
6 answers
2k views

Matrix Meets ASCII Art

A binary matrix represents a shape in the plane. 1 means a unit square at that position. 0 means nothing. The background is 0. For example, the array ...
61 votes
59 answers
6k views

Print N Squared

Write a program or function that takes in a non-negative integer N from stdin or as a function argument. It must print or return a string of a hollow ASCII-art square whose sides are each made with N ...
32 votes
40 answers
6k views

Render "Digital Clock Style" Numbers

Write the shortest program which will take a string of numbers (of up to at least 20 length) as input, and display the output using the standard digital clock style numbers. For instance for input 81,...
13 votes
14 answers
2k views

Sandbox overflow

Your task is to output a square sandbox of size n+2 with / characters in the corners and | ...
11 votes
25 answers
1k views

Circular chained compound

Task Given a positive integer n, output the joined compound of circles The circles are of square of size n+2 but removing the ...
63 votes
109 answers
11k views

This isn't rocket science

Write a program or function that takes in a single-line string. You can assume it only contains printable ASCII. Print or return a string of an ASCII art rocket such as ...
20 votes
8 answers
2k views

ASCII-Art n'th Root

Challenge: Given two integers \$a\$ and \$b\$, with lengths \$A=length(a), B=length(b)\$, output an ASCII-art of the \$a^{th}\$ root of \$b\$, including the answer rounded to \$A\$ amount of decimal ...
3 votes
3 answers
196 views

Plot Slope Fields Given Differential Equation

Slope fields or direction fields, are a graphical representation of the solutions to a first-order differential equation of a scalar function. A slope field shows the slope of a differential equation ...
115 votes
47 answers
14k views

It's my Birthday :D

Introduction Last year was my birthday (really!) and sadly I had to organise my own party. Well, now you know, couldn't you at least make the cake? Challenge Given an integer ...
12 votes
9 answers
464 views

Draw an ASCII envelope based on size input

You want to send an ASCII letter to someone, but you need an envelope to put it in. Your task is to output an envelope given a size as input. Rules: Given positive integer input ...
3 votes
0 answers
209 views

Convert To Shorthand Part 2

Part 1 of the challenge revolved around converting the letters into specific unicode characters. Lore In this part we receive the output from the function made in Part 1, which now has to be arranged ...
52 votes
6 answers
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: ...
39 votes
17 answers
3k views

Square root of ASCII art

You are working as an intern for a mathematician who really hates TeX, LaTeX, etc. So much so that he has decided to abandon all typesetting whatsoever and make you do all the formatting in ASCII. You ...
21 votes
52 answers
3k views

Create an ASCII line, given a length

Information Create a diagonal line given its length (let’s call the variable, say, \$n\$ where \$n > 0\$) The diagonal line starts from the top left and goes to the bottom right. You must use the ...
33 votes
14 answers
19k views

Drawing a cube in ASCII art

Task description: Draw a cube in ASCII art in roughly a cabinet projection. Monospaced fonts often have characters that are about twice as high as they are wide. ...
8 votes
1 answer
286 views

Generate all polyiamonds

A polyiamond of size \$n\$ is a contiguous shape formed by joining \$n\$ equilateral triangles side by side. Your output should consist of two distinct characters, plus whitespace as necessary (▲ and ▼...
6 votes
15 answers
897 views

Spaceship shooter

Your task is to output a spaceship of size n with shooters/guns and n bullets of character - ...
14 votes
16 answers
1k views

Building spikes

Inspired by this building (United States Air Force Academy Cadet Chapel, Colorado) Your task is simple, given a positive integer n, output the spiked building to ...
16 votes
15 answers
1k views

Loading Circle Animation

Loading Circle Animation Challenge Write a full program that takes no input (or has an unused input) that displays exactly the following ASCII animation for as long as possible or only 8 frames. Frame ...
49 votes
26 answers
10k views

Draw the Devil's Staircase

The Devil's Staircase is a fractal-like function related to the Cantor set. Your task is to replicate this funky function — in ASCII art! Input A single integer ...
15 votes
7 answers
562 views

Double the diagonal squares

Given a positive integer N, output this doubling pattern of slash squares/rectangles. For N=1, the base is: ...
27 votes
33 answers
3k views

Log Scales are for Quitters

Everyone knows log scales are for quitters. Therefore, you must write a program or function that de-quitifies a bar graph with a log scale given a base. The bar graph input is taken as a single string ...
22 votes
32 answers
5k views

Negative of an ASCII photo

Task Given an \$m\times n\$ binary ascii "photo", return the negative of the photo Example: ...
11 votes
10 answers
2k views

Mr. ASCII becoming uncanny with your own code

Let's make a little stupid program that simulates the meme "Mr. incredible becoming uncanny", but in this case, our little ASCII friend is going to react to our code length. Objective: ...
16 votes
18 answers
1k views

Triangle Tripler

Simpler version of this Task You must create a program that outputs a triangle of a given size N. A triangle is made of 3 identical triangles A triangle of size N should be made of N lines A triangle'...
25 votes
2 answers
2k views

DNA: Deoxyribonucleic ASCII

Given a sequence of the bases Adenine, Cytosine, Guanine and Thymine (encoded as ACGT), you're to produce an ASCII art representation of a corresponding double ...
25 votes
36 answers
4k views

It's time for a clock challenge!

I'd like you to build me a clock that displays time in this format: 18 ---------- 19 -------------------------------------------------- This displays '18:10'. The ...
29 votes
33 answers
15k views

Draw dice results in ASCII

Show the random result of a dice toss if done with a cube shaped die, in ASCII. $ dice should result in one of ...
21 votes
1 answer
529 views

Can you draw this in one stroke?

Related | Related Given an ASCII art with |, _, and , check if you can draw the art in one ...
15 votes
7 answers
1k views

Pyramid Schemes

Mayan pyramids were (and are) an important part of ancient architecture, that were generally used for religious purposes. They were usually step pyramids, but the steps on each were too steep to climb....
25 votes
55 answers
4k views

Alphabet triangle strikes again

Task Your task is to print this exact text: ...
73 votes
116 answers
9k views

Make an alphabet searchlight!

Inspired by a bug in a solution to this challenge, your challenge is to produce this exact text: ...
9 votes
4 answers
318 views

The Roly-Poly, Square-Wheeled Quine

Code-Golf caddy Eddie Brackets was getting tired of quine challenges, which appeared to be much too easy for the grand poobahs. He has this idea to spice up things and is sending quines to the car ...
18 votes
29 answers
2k views

Draw a battery indicator

Given the battery level L in the range 0-5, your code should draw the following ASCII art. When ...
12 votes
7 answers
654 views

S̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶ the Word Search List

Introduction: Every workday I read the newspaper in the morning while eating breakfast, and also do some of the puzzles at the back. When I do the word-search puzzles, I (almost) always go over the ...
17 votes
14 answers
844 views

Replicate "dotnet ef" unicorn

.Net Technology is an incredible framework with marvellous functionalities, and among all of them, the most important one obviously stands out: Yep, your simple task is create a program that when it ...
118 votes
97 answers
17k views

Loading... Forever

Your challenge is to make an infinite loading screen, that looks like this: Or, to be more specific: Take no input. Output Loading..., with a trailing space, but ...
19 votes
24 answers
3k views

Draw an ASCII Grid

(Based on this closed challenge, related) Given an integer n > 1, draw a grid composed of the characters: "-" "+" and "|". However, since I want the grid to look nice, ...
19 votes
21 answers
2k views

Fibonacci triangle

Given an integer n, output the following ASCII art to n rows: 1+1=2 1+2=3 2+3=5 3+5=8 5+8=13 Essentially, the first row is ...
40 votes
32 answers
3k views

Print a physical multiplication table

Rectangles have this nice property - an \$n \times m\$ rectangle consists of exactly \$n \times m\$ characters! A.. more interesting property is that the rectangles can be aligned nicely in a ...
3 votes
4 answers
371 views

ASCII Brainfuck

Given a random code written using Brainfuck commands. You program should translate that code into the following ascii art: each Brainfuck command represents as 5x9 ...
8 votes
7 answers
283 views

Ascii Fibonacci spiral

Let's continue the fibonacci based challenges stream, here's the next one: Task Draw a Fibonacci spiral ascii-art of n segments where starting from the first term: each nth segment has a length of ...
23 votes
55 answers
5k views

Draw an ASCII-art rainbow

Draw an ASCII-art rainbow! Input An integer between 0 and 1000, inclusive. Examples Input 0: /\ || Input 1: _ / \ | | Input ...
10 votes
1 answer
290 views

Page Selector⠀⠀⠀⠀⠀

I'm making a page selector for my super cool terminal-based blog program. In order for it to fit correctly into the design, it has to have some constraints. The page selector can only display a ...
13 votes
12 answers
2k views

Draw an ASCII Volume

Given a volume level V in the range 1-10. Your program should draw the following ASCII art. When ...

1
2 3 4 5
24