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
23 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 ...
emanresu A's user avatar
  • 35.6k
6 votes
6 answers
602 views

Crate art stacking

Your task is, given a array of numbers, that is strictly increasing, output the crate stack. The input is an array of positive integers which represents which layer has how many crates there are. So ...
DialFrost's user avatar
  • 5,053
18 votes
29 answers
3k views

Draw a battery indicator

Given the battery level L in the range 0-5, your code should draw the following ASCII art. When ...
sinvec's user avatar
  • 1,885
12 votes
17 answers
1k views

Draw a Signal strength indicator

Given the signal level L in the range 0-4. Your program should draw the following ASCII art. When ...
sinvec's user avatar
  • 1,885
14 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 ...
sinvec's user avatar
  • 1,885
3 votes
4 answers
538 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 ...
sinvec's user avatar
  • 1,885
14 votes
7 answers
620 views

Disassemble tables

Given a string that represents a bunch of tables stacked on top of each other and/or arranged side-by-side, disassemble all the tables. Tables A table looks like this: ...
ophact's user avatar
  • 3,144
23 votes
16 answers
3k views

Draw an ASCII pencil

Task is pretty simple. Your program should take a number N from 1 to 20 and draw the ...
sinvec's user avatar
  • 1,885
21 votes
10 answers
1k views

Pretty print my arrays

I like to pretty print multidimensional arrays, like this: [ [ [1, 2, 3], [4, 5, 6] ], [ [7, 8, 9], [6, 4, 2] ] ] But it's a pain to do by hand and it'd ...
emanresu A's user avatar
  • 35.6k
5 votes
6 answers
2k views

Real-world progress bar

Backstory, skip if you like Generating high quality pseudo random numbers is a tricky business but the fine engineers at < enter company you love to hate > have mastered it. Their progress bars ...
loopy walt's user avatar
16 votes
19 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'...
DialFrost's user avatar
  • 5,053
11 votes
4 answers
645 views

Trap the hero in a maze

You are an evil wizard, doing evil wizard business, when suddenly your crystal ball alerts you of a hero on their way to defeat you. To crush their hopes and dreams, you decide to trap the hero in a ...
AnttiP's user avatar
  • 7,828
15 votes
1 answer
276 views

Shanghai ascii game sticks

Remove one stick and output the stack updated. Description You can remove only sticks on top( completely drawn). You can assume: there are 5 sticks on the table. there's one and only one stick you ...
AZTECCO's user avatar
  • 10.6k
8 votes
1 answer
198 views

Is this continuous terrain? Part II

Caves and Cliffs edition Part 1, Very related You're given a piece of ASCII art representing a piece of land, like so: ...
emanresu A's user avatar
  • 35.6k
17 votes
14 answers
923 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 ...
ZeroCodeException's user avatar
10 votes
7 answers
312 views

Cell Evolution Matrix

Your lab needed to simulate how a particular cell evolves over time in a 2D grid space. A sample 2D grid space below shows a single cell at the centre of the grid. ...
DialFrost's user avatar
  • 5,053
5 votes
6 answers
2k views

Shrink ASCII art

The inverse of this question. Your challenge is to, given a piece of ASCII art generated by the above question and its enlargement factor, shrink it down to its original size. The enlargement process ...
emanresu A's user avatar
  • 35.6k
13 votes
13 answers
2k views

Mat Printing Matrix

A manufacturing company wants to print a design on mats of varying dimensions, and they hired you to program a robot to make these mats. The design consists of alternating rings of any 2 symbols on a ...
DialFrost's user avatar
  • 5,053
31 votes
12 answers
2k views

Golf Conway's Primordial Still-Life

Background Note: This configuration was co-found by one of our fellow code golf enthusiasts, Zgarb A 29 year old conjecture by John Conway about the Game of Life was recently solved. To quote Conway ...
Jonah's user avatar
  • 33k
15 votes
4 answers
336 views

Sides of a polygon

Given an ASCII-art shape made of the characters /\|_, your challenge is to return the number of sides it has. A side is a straight line of one of those, for example:...
emanresu A's user avatar
  • 35.6k
-3 votes
5 answers
203 views

Rotate a grid 90 degrees clockwise

The task is simple, given an integer n of how many lines the next n lines is and, a multi-line input, output the resulting 90 ...
DialFrost's user avatar
  • 5,053
17 votes
6 answers
1k views

Is this continuous terrain?

Very related You're given a piece of ASCII art representing a piece of land, like so: /‾\ __/ ‾\_ \_/‾\ \ Since an overline (...
emanresu A's user avatar
  • 35.6k
11 votes
11 answers
3k 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: ...
ZeroCodeException's user avatar
19 votes
8 answers
464 views

Fill the (possibly leaky) bowl

Challenge: Given an ASCII art of a (possibly leaky) bowl consisting of a random distinct non-whitespace and non-~ character, fill it completely with ...
Kevin Cruijssen's user avatar
15 votes
7 answers
589 views

Double the diagonal squares

Given a positive integer N, output this doubling pattern of slash squares/rectangles. For N=1, the base is: ...
emanresu A's user avatar
  • 35.6k
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 ...
Yousername's user avatar
  • 3,650
25 votes
7 answers
874 views

Stitch a hitomezashi pattern

Challenge Given two binary vectors (containing two consistent values of your choice) of length \$n\$ and \$m\$, output a corresponding ascii-art hitomezashi stitching pattern. You are to fill the ...
pajonk's user avatar
  • 15.1k
-1 votes
1 answer
717 views

Draw Lines in ASCII [closed]

Challenge Draw lines in ASCII corresponding to given inputs: in the first line there are given size of rows and columns of the view and number of separators between each point in the second line is ...
jixperson's user avatar
  • 197
29 votes
19 answers
3k views

Triangle of triangles

Given an integer \$n \geq 2\$, print a triangle of height \$n\$ of (triangles of height \$n\$ of asterisks), as in this SO question. For \$n=2\$, print: ...
Lynn's user avatar
  • 68.1k
23 votes
3 answers
1k views

Pretty print a grid of polyominoes

Write a function that accepts a rectangular grid of ids in any reasonable format, for example a multi-line string: IIILOO ILLLOO and a string or list of box ...
loopy walt's user avatar
24 votes
20 answers
3k views

Find the longest line

Given a string containing only the characters -, |, + and newline determine the longest ...
Wheat Wizard's user avatar
  • 96.5k
30 votes
6 answers
2k views

Stack the rocks

This is a rock: * Rocks can be stacked. Apart from the bottom-most layer, each rock must rest on two other rocks, like this: ...
emanresu A's user avatar
  • 35.6k
8 votes
33 answers
2k views

Custom Rows of Smileys Triangle

This problem is inspired from shinh's problem. Given an input of positive integer \$n\$, output a smiley triangle (see below) with \$n\$ rows. Detailed rules Can be either a function or a full ...
user avatar
13 votes
4 answers
622 views

Maximal hexagonal dot pattern

Challenge Imagine a hexagonal grid as shown below. Let's call such a grid has size \$n\$ if it has \$n\$ dots on one side. The following is one of size 3: ...
Bubbler's user avatar
  • 73.8k
23 votes
11 answers
2k views

Enlarge ASCII art, Mark II

Related Given a piece of ascii art and a factor to enlarge it by, which will always be an odd number >1, replace each character with the corresponding ascii-art, resized to fit on a grid the size ...
emanresu A's user avatar
  • 35.6k
9 votes
4 answers
334 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 ...
DjinTonic's user avatar
  • 636
16 votes
8 answers
771 views

Polyagony layout (mode 3/3,6)

Background Polyagony is a family of hypothetical esolangs where the source code is laid out on a specifically shaped board before running it. It's similar to Hexagony, but various uniform tilings can ...
Bubbler's user avatar
  • 73.8k
9 votes
14 answers
1k views

ASCII-Plot the equation

You are given a polynomial function, in the following format: \$x = (c_0 * y^0) + (c_1 * y^1) + (c_2 * y^2) + ... + (c_n * y^n)\$ where \$c_n\$ stands for the coefficient of the \$n^{th}\$ power of \$...
user avatar
7 votes
1 answer
186 views

Jump trajectory

This is an ascii-art challenge where you will draw ascii-art showing a person "jumping" off the top of a building. The building Input given will be a group of rectangular buildings. You may ...
user avatar
12 votes
1 answer
248 views

Create Word Lightning

Sandbox Inspired by a Codingame challenge I tried (and failed at) about a month ago. Given a binary tree of words, say: ...
Razetime's user avatar
  • 27k
20 votes
24 answers
4k 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, ...
Underslash's user avatar
  • 1,719
22 votes
53 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 ...
zoomlogo's user avatar
  • 1,645
16 votes
14 answers
1k views

A bracket amphitheater

Specification Write the shortest possible code in any language that does the following: It takes two arguments, x and y, and generates x + y lines of text. The first x lines should consist of y nested ...
schuelermine's user avatar
37 votes
20 answers
7k views

I give you ascii-art, you make it pseudo-3d

Do you know the optical effect of a tridimensional hand painted whit horizontal lines? Examples This challenge consists of making something like that effect with ascii, and transforming one 2d input ...
ZeroCodeException's user avatar
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: ...
Makonede's user avatar
  • 6,465
14 votes
3 answers
545 views

Implement Minecraft's Rails

Background Information Inspired by this answer on Arqade SE Minecraft has rails which allow you to move minecarts around on them for transporting players, entities, and items. There are many types of ...
hyper-neutrino's user avatar
  • 41.3k
1 vote
16 answers
2k views

Drawing the Stack Overflow logo

From here. Every new game is the first day of the month, 12:00 PM UTC. The goal is to create the Stack Overflow logo using ASCII characters. It looks like this. The exact output should look like this:...
user avatar
9 votes
5 answers
424 views

Print the Najdorf Sicilian

The Najdorf Variation of the Sicilian Defence is an opening often played at the highest level of chess. It is named after GM Miguel Najdorf and is known for being extremely sharp and theory heavy. ...
EnderShadow8's user avatar
  • 1,429
12 votes
1 answer
337 views

Pretty-print my BQN Arrays

Marshall Lochbaum's online BQN REPL has an interesting(and aesthetically pleasing) method of displaying arrays. Your task is to implement a version with simpler rules. ...
Razetime's user avatar
  • 27k
10 votes
5 answers
739 views

Sr. 4Der says make this shape! (Episode 1)

Dialogue by a 3Der. I was hired by Sr. 4Der to learn the 4D universe and I was willing to get to know more about it. But since I am a 3Der, I wouldn't see him, nor would I know how the real shapes ...
user avatar

1
2
3 4 5
25