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
13 votes
17 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 ...
user avatar
  • 1,140
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 ...
user avatar
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 ...
user avatar
3 votes
3 answers
195 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 ...
user avatar
  • 447
3 votes
0 answers
207 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 ...
user avatar
  • 399
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 ▼...
user avatar
  • 1,995
12 votes
9 answers
456 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 ...
user avatar
6 votes
15 answers
896 views

Spaceship shooter

Your task is to output a spaceship of size n with shooters/guns and n bullets of character - ...
user avatar
  • 3,031
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 | ...
user avatar
  • 3,031
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: ...
user avatar
  • 941
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 ...
user avatar
  • 3,031
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 ...
user avatar
  • 3,031
12 votes
7 answers
652 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 ...
user avatar
21 votes
1 answer
527 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 ...
user avatar
  • 3,585
8 votes
7 answers
282 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 ...
user avatar
  • 9,426
10 votes
1 answer
288 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 ...
user avatar
  • 3,206
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 ...
user avatar
  • 26.7k
6 votes
5 answers
557 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 ...
user avatar
  • 3,031
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 ...
user avatar
  • 1,555
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 ...
user avatar
  • 1,555
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 ...
user avatar
  • 1,555
3 votes
4 answers
370 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 ...
user avatar
  • 1,555
14 votes
6 answers
555 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: ...
user avatar
  • 2,659
18 votes
14 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 ...
user avatar
  • 1,555
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 ...
user avatar
  • 26.7k
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 ...
user avatar
  • 5,660
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'...
user avatar
  • 3,031
12 votes
4 answers
613 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 ...
user avatar
  • 6,645
15 votes
1 answer
259 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 ...
user avatar
  • 9,426
9 votes
1 answer
180 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: ...
user avatar
  • 26.7k
17 votes
14 answers
843 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 ...
user avatar
10 votes
7 answers
296 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. ...
user avatar
  • 3,031
5 votes
6 answers
385 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 ...
user avatar
  • 26.7k
13 votes
12 answers
1k 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 ...
user avatar
  • 3,031
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 ...
user avatar
  • 26.5k
15 votes
4 answers
321 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:...
user avatar
  • 26.7k
-3 votes
5 answers
176 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 ...
user avatar
  • 3,031
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 (...
user avatar
  • 26.7k
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: ...
user avatar
19 votes
8 answers
444 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 ...
user avatar
0 votes
0 answers
41 views

Recreating the classic C64 truchet pattern [duplicate]

On the C64 you can create a randomized labyrinth with this program: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 This will produce something like this In PowerShell one ...
user avatar
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: ...
user avatar
  • 26.7k
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 ...
user avatar
  • 1,831
25 votes
7 answers
775 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 ...
user avatar
  • 10.7k
-1 votes
1 answer
241 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 ...
user avatar
  • 179
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: ...
user avatar
  • 65.5k
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 ...
user avatar
  • 5,660
24 votes
20 answers
3k views

Find the longest line

Given a string containing only the characters -, |, + and newline determine the longest ...
user avatar
  • 84.5k
29 votes
5 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: ...
user avatar
  • 26.7k
7 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

1
2 3 4 5
24