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.

1,211 questions
Filter by
Sorted by
Tagged with
4k views

Cellular Automata Rule 30

What are cellular automata? Cellular automata describes a broad category of computational models that covers various cellular automations, some of the most intriguing of which involve 'simple' rules ...
• 177
672 views

Sith TIE-Fighter

Today is May 5th which means it's Star-Wars Day episode II: Revenge of the 5th. For this task, you will output the following image of a Sith TIE-fighter: ...
• 7,392
1k views

X-Wing Starfighter

Today is May 4th, Star Wars day, so here's a Star Wars ASCII-art task. Output this image of an X-Wing starfighter: ...
• 7,392
1k views

Visually arrange multi-day events on a calendar

The arrangement algorithm I think I've determined the algorithm that Google Calendar uses to visually arrange day-long and longer events at the top of the "Week" view (you may have an ...
• 3,685
4k views

Create a cactus from words

Introduction: A typical cartoonish cactus usually looks like this: One big stem in the middle, with some L-shaped branches sticking out. We'll use this general shape for this challenge. Challenge: ...
• 127k
1k views

Lattice points visible from the origin

Challenge Create a program that outputs a square grid showing visible and non-visible points $(x, y)$ from the origin based on their greatest common divisor (GCD). A point $(x, y)$ is considered ...
• 2,213
3k views

Find the odd one out

Challenge The goal of this challenge is to generate and output a $16 \times 32$ (height $\times$ width) grid where all cells contain a decoy character, except for a random single cell that ...
• 2,213
2k views

Spot The Difference

Challenge Generate two $16 \times 16$ grids, each initially filled with "@" symbols and spaces. Each cell in the grids should be independently filled with an "@" or a space, with ...
• 2,213
5k views

First person to ever beat Classic Tetris

Historic Tetris Achievement Blue Scuti became the first ever human to beat the classic game of Tetris on NES. Here's the Tetris Kill Screen Challenge Output the following Tetris ...
• 2,213
591 views

I baked you a pie!

There is an asdfmovie video about a pie flavoured pie. Someone also made an edited version with more pies, so I created this challenge. The input is a positive integer. The code should first output ...
4k views

ASCII-art milk carton

The following is an unfolded milk carton: ...
• 7,392
2k views

Limited letter renderer: BIOPD

There have of course been challenges to render ASCII art fonts here and there. This challenge doesn't add anything to those. In contrary, it subtracts from them for a good reason. If you allow all ...
• 2,580
4k views

Print ASCII building

Challenge Display to the screen or write to stdout this exactly: ...
• 167
1k views

Directional Run Length Decoding

We all know run-length decoding: A list of character-length pairs expands to a string of that many characters, so A1B4C2 expands to ...
• 7,392
1k views

Befunge Comment Outline Creator

Befunge is a 2-dimensional programming language, with an instruction pointer (IP). In Befunge-98, the ; character tells the IP to skip characters up until the next <...
• 431
344 views

Visualise the Euclidean GCD [duplicate]

The Euclidean GCD Algorithm is an algorithm that efficiently computes the GCD of two positive integers, by repeatedly subtracting the smaller number from the larger number until they become equal. It ...
• 38.8k
257 views

Sokobunny I (Sokoban, but the boxes are sentient)

Sokobunny 1 You love buns! You love them so much, that you chased one down a bunburrow. The burrows are like mazes, and YOU WANT TO CATCH THE FLUFFBALLS!!!! However, the buns are smart! You can't ...
446 views

Convert numbers to dice patterns

The way points are assigned on a dice follows a regular pattern, the center dot is present if and only if the number is odd. To represent the even numbers, pairs of dots on opposite sides of the ...
• 6,015
522 views

Walk by walls in a room

Challenge You just entered a room. Here's how it looks (you are the X): |\ /| | \/ | | X | | | |----| You challenge yourself to see if you can reach where you ...
• 1,183
1k views

Print a meter of numbers to a specified limit

Given a positive integer n, output a number meter formatted like this: ...
• 169
4k views

s-n-a-k-e-a-r-o-u-n-d--->

This ascii-art challenge is about walking around a string like a snake. s-n-a-k .---. e d <-' a n-u-o-r You will be given a string $S$ of length $l$ and ...
• 7,392
4k views

"Print this diamond" gone beautifully wrong

Write a function (or a whole program) that outputs (or prints) the following ASCII art: Output: ...
• 1,547
2k views

Draw the initial positions of Mölkky pins in ASCII art

Write a function (or a whole program) that outputs (or prints) an ASCII art of the initial position of Mölkky pins. Output : ...
• 1,547
2k views

Render text in a slanted ASCII-art font

Given a text input such as: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG render the following output: ...
• 12.9k
327 views

My eight braille pattern progressive snake spinner

Introduction I would like to drawn a nice spinner by using eight braille patterns on two lines, drawing a square of 8x8 pixel, for showing a kind of snake growing and reducing: ...
811 views

Turn strings into hexagonal spirals!

Goal Write a function or a program that when given a string, for example "The quick brown fox jumps over the lazy dog", outputs: ...
• 501
3k views

Compare Two Fractions With ASCII Art

Challenge Write a program or function that takes in 4 non-negative integers, A, B, C, and D, that represent two fractions, A/B and C/D, where B and D are non-zero and A <= B and C <= D. Output ...
• 799
626 views

Voronoi-Lloyd ASCII art [closed]

Voronoi diagram is a partition of a plane (or part of plane) into regions close to each of a given set of objects ("seeds"). Here we’ll be dealing with discrete arrays or even rather with ...
• 3,413
292 views

Custom Games of Life

There's a lot of questions about Conway's Game of Life, but nothing about customization (Related: 2-Player Life). Given an input, determine the result on a 100x100 grid after some iterations. The ...
• 563
943 views

Random point inside boundary

Given an ASCII art with simple closed paths using | and - (pipes and dashes), output a random point inside the boundary. Eg. ...
• 9,408
619 views

It's a dog! (Or is it?)

The city defines a dog as any living entity with four legs and a tail. So raccoons, bears, mountain lions, mice, these are all just different sizes of dog. Given an ASCII-art image of an animal, ...
• 7,392
941 views

ASCII-art polygons to GeoJSON coordinates

We're going to turn ascii art versions of polygons into their equivalent GeoJSON. The ASCII shape language The input ASCII language only has 3 possible characters: ...
• 1,225
141 views

Is it a valid slash draw? [closed]

Given a rectangle input with only \, / and space, decide if it's a valid output of Drawing in Slashes Empty lines and columns at ...
• 24.5k
535 views

How Mondrian is your fine art collection? [closed]

For the purpose of this challenge a rectangular piece of ASCII art is Mondrian if it looks the same upside down. What does "looks the same" mean? A feature is any orthogonally connected ...
• 16.7k
187 views

Show a balanced binary tree

Given an integer $n > 1$, output a balanced binary tree with $n$ leaf nodes. The tree should be constructed out of (space), ...
• 7,131
823 views

Box blur the string

Box blur is a simple operation for blurring images. To apply box blur, simply replace each pixel with the average of its and the surrounding 8 pixels' values. Consider, for example, the following ...
• 10.1k
3k views

Fibonacci word fractal

The Fibonacci word is a sequence of binary strings defined as: $F_0 =$ 0 $F_1 =$ 01 $F_n = F_{n-1} F_{n-2}$ The first ...
• 48.5k
5k views

A challenge for rookies

Print or return the following string: ...
• 14.8k
785 views

A better Hexagony template

We once made a Hexagony template without actually knowing it. But after a bit of experience with Hexagony, it becomes apparent that it is not enough; sometimes the source code is too short for the ...
• 76.9k
2k views

Count the cells

Given a multi-line string as input containing characters "|", "_" and ...
• 38.8k
1k views

Draw this fractal generated by applying Newton's method to cosh(x) - 1

I came across this picture the other day: (Credit to Josep M Batlle I Ferrer) Your job is to generate this picture. This graph is generated by repeatedly applying newton's method to the graph of: f(...
• 12.7k
471 views

Collect data on mushroom forests

In these previous challenges[1][2] I've been dealing with "mushroom forests". To help with these I draw little diagrams of the forests to help. In this challenge we are going to reverse ...
• 98.8k
2k views

aka. implement an easier version of 05ab1e's canvas element. Description The canvas element is used to draw ASCII lines on the screen. The (easier version of the) canvas element takes a list of ...
• 9,408
4k 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 ...
• 1,357
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 ...
• 1,548
3k 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 ...
• 127k
366 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 ...
• 489
274 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 ...
• 517
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 ▼...