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
4 votes
1 answer
207 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 ...
ToAskOrNotToAsk's user avatar
15 votes
3 answers
359 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 ...
bsoelch's user avatar
  • 4,653
6 votes
4 answers
485 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 ...
Joao-3's user avatar
  • 673
12 votes
18 answers
1k views

Print a meter of numbers to a specified limit

Given a positive integer n, output a number meter formatted like this: ...
TKDKid1000's user avatar
26 votes
17 answers
4k views

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

This code-golf 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 ...
noodle man's user avatar
  • 3,965
21 votes
23 answers
4k views

"Print this diamond" gone beautifully wrong

Write a function (or a whole program) that outputs (or prints) the following ASCII art: Output: ...
Fhuvi's user avatar
  • 1,448
12 votes
17 answers
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 : ...
Fhuvi's user avatar
  • 1,448
18 votes
3 answers
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: ...
Timwi's user avatar
  • 12.9k
5 votes
2 answers
281 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: ...
F. Hauri  - Give Up GitHub's user avatar
17 votes
5 answers
775 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: ...
pan's user avatar
  • 481
41 votes
17 answers
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 ...
blaketyro's user avatar
  • 769
10 votes
3 answers
601 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 ...
lesobrod's user avatar
  • 3,231
3 votes
0 answers
185 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 ...
Infigon's user avatar
  • 505
0 votes
0 answers
113 views

Shape Animation

In PowerPoint, there's just one overly used feature: animations. For simplicity, that shape will be a non-rotated rectangle. The data is specified as an array of eight integers: ...
Infigon's user avatar
  • 505
13 votes
9 answers
929 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. ...
math scat's user avatar
  • 7,849
9 votes
6 answers
509 views

It's a dog! (Maybe)

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, ...
noodle man's user avatar
  • 3,965
12 votes
6 answers
896 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: ...
Hannesh's user avatar
  • 1,225
5 votes
1 answer
139 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 ...
l4m2's user avatar
  • 19k
3 votes
2 answers
529 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 ...
loopy walt's user avatar
  • 15.6k
4 votes
1 answer
180 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), ...
97.100.97.109's user avatar
13 votes
7 answers
790 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 ...
Jordan's user avatar
  • 9,686
17 votes
11 answers
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 ...
alephalpha's user avatar
  • 45.5k
32 votes
29 answers
5k views

A challenge for rookies

Print or return the following string: ...
Sisyphus's user avatar
  • 14.4k
15 votes
7 answers
758 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 ...
Bubbler's user avatar
  • 72.7k
17 votes
14 answers
2k views

Count the cells

Given a multi-line string as input containing characters "|", "_" and ...
Fatalize's user avatar
  • 38.3k
18 votes
6 answers
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(...
mousetail's user avatar
  • 11.4k
10 votes
7 answers
468 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 ...
Wheat Wizard's user avatar
  • 95.5k
17 votes
8 answers
2k views

Scribble Pad for Nerds

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 ...
math scat's user avatar
  • 7,849
15 votes
21 answers
3k 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 ...
Romanp's user avatar
  • 1,357
19 votes
7 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 ...
Number Basher's user avatar
21 votes
8 answers
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 ...
Kevin Cruijssen's user avatar
6 votes
3 answers
335 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 ...
VJZ's user avatar
  • 479
4 votes
0 answers
266 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 ...
Saphereye's user avatar
  • 507
8 votes
1 answer
320 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 ▼...
Spitemaster's user avatar
  • 2,125
12 votes
9 answers
664 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 ...
Sylvester Kruin's user avatar
6 votes
15 answers
946 views

Spaceship shooter

Your task is to output a spaceship of size n with shooters/guns and n bullets of character - ...
DialFrost's user avatar
  • 5,035
14 votes
15 answers
2k views

Sandbox overflow

Your task is to output a square sandbox of size n+2 with / characters in the corners and | ...
DialFrost's user avatar
  • 5,035
25 votes
38 answers
5k views

Negative of an ASCII photo

Task Given an \$m\times n\$ binary ascii "photo", return the negative of the photo Example: ...
jezza_99's user avatar
  • 2,491
12 votes
26 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 ...
DialFrost's user avatar
  • 5,035
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 ...
DialFrost's user avatar
  • 5,035
12 votes
7 answers
687 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 ...
Kevin Cruijssen's user avatar
22 votes
1 answer
705 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 ...
math scat's user avatar
  • 7,849
8 votes
8 answers
576 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 ...
AZTECCO's user avatar
  • 10.5k
10 votes
1 answer
374 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 ...
Ginger's user avatar
  • 5,380
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
  • 34.3k
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,035
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
513 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

1
2 3 4 5
24