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
22 votes
26 answers
3k views

Print a 3D shape

Write a program or a function to print the following cube (if you allow me to call it so) in different sizes: ...
anotherOne's user avatar
  • 1,081
44 votes
15 answers
6k views

The first published picture of the Mandelbrot set

Here’s the picture of the first published picture of the Mandelbrot set. Use the fewest bytes possible to write a program or function that outputs the following. A trailing new line is permitted. ...
shawn_xu's user avatar
  • 521
23 votes
22 answers
4k views

Draw an ASCII hexagon of side length n

Given a positive integer \$n\$ output an ASCII hexagon with diagonal side length \$n\$, as pictured (note there are \$2n\$ _ characters on the top edge) Examples: \$...
wim's user avatar
  • 883
6 votes
3 answers
386 views

Golf me a polygonal loader

Codidact post, CGCC Sandbox, Codidact Sandbox Given three positive integers as input, animate an ascii-art polygonal loading symbol on the screen. Intro You will be given three inputs, \$n\$, \$l\$, ...
Razetime's user avatar
  • 27k
8 votes
6 answers
730 views

(1) Determine the amount of statues

Inspired by this stack of little statues that are currently on my desk at work, given to me by my colleagues from Sri Lanka when they visited The Netherlands: This is split into two different ...
Kevin Cruijssen's user avatar
7 votes
2 answers
253 views

(2) Can the statues be stacked?

Inspired by this stack of little statues that are currently on my desk at work, given to me by my colleagues from Sri Lanka when they visited The Netherlands: This is split into two different ...
Kevin Cruijssen's user avatar
23 votes
3 answers
727 views

Towering Cistercian representation

SE Sandbox Link, Codidact Sandbox Link Inspired by this video. Given a positive integer, draw its Cistercian representation as ascii art. The Challenge Cistercian numerals are a decimal-based number ...
Razetime's user avatar
  • 27k
33 votes
16 answers
2k views

Make an ASCII table

We're getting markdown tables! I assume this is what they look like: ...
Rydwolf Programs's user avatar
2 votes
0 answers
242 views

Clock with ASCII art [closed]

It is quite simple, any language, make output show the time in the HH:MM or HH:MM:SS while the numbers and the colons being ascii art(The output is ascii art not the program) Sample output: ...
Leo's user avatar
  • 37
18 votes
5 answers
2k views

How happy is this emoticon? (2.0)

OG post Task In this challenge, you will be given an string emoticon, and your task will be to output its happiness. How? An emoticon will always have eyes and mouth. It can also include eyebrows and ...
Dion's user avatar
  • 3,900
25 votes
20 answers
3k views

Cat a mouse: ASCII art pointers

The Xerox Alto, originally released in 1973, was the first computer to feature the now-familiar angled mouse pointer. The Alto's bitmapped pointer looked like this (redrawn from Fig. 2 here): Your ...
Dingus's user avatar
  • 10.9k
40 votes
10 answers
2k views

Recognise a Digit from a Positional Encoding

Starting an the origin on an infinite grid, you follow a predetermined path going up (U), down (D), left (...
Sisyphus's user avatar
  • 14.7k
21 votes
7 answers
2k views

Surround a string with "friendliness pellets"

Input a String and surround it with a rounded rectangle of alternating "friendliness pellets".(0) Sandbox Idea originally from Lyxal. Challenge Given a ...
Razetime's user avatar
  • 27k
24 votes
11 answers
2k views

Spiralize a Word, Triangularly!

Challenge Given a string of any length, write it as a triangle, spiraling out from the center. For example, abcdefghijklmnop becomes: ...
Jonah's user avatar
  • 33k
10 votes
3 answers
295 views

Convert LifeOnTheEdge to LifeOnTheSlope

Your task here is to take a LifeOnTheEdge pattern and convert it to LifeOnTheSlope. A LifeOnTheEdge pattern is composed of these four characters: |_L . A pattern ...
TwilightSparkle's user avatar
24 votes
60 answers
6k 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 ...
nph's user avatar
  • 1,438
17 votes
2 answers
500 views

Give Me a Ladder!

I think everyone is familiar with the game of snakes & ladders1. Imagine we have a 10x10 board like this: ...
polfosol ఠ_ఠ's user avatar
17 votes
6 answers
560 views

Play a Game of Minigolf

Background I feel that for a site named code-golf we have a shockingly little amount of golf being played. Let's fix that. Challenge Determine whether the hole of a minigolf course can be reached ...
user197974's user avatar
  • 1,161
9 votes
8 answers
1k views

Pascal's tree-angle

Print this tree: ...
Nip Dip's user avatar
  • 417
24 votes
19 answers
3k views

Solve a 2xN Maze

Given a \$2\times N\$ maze, determine if you can get from the start top left corner to end bottom right corner using only up, down, left, and right moves. Input A \$2\times N\$ block (\$1 \le N \le ...
qwr's user avatar
  • 11.5k
26 votes
5 answers
1k views

Determine the area enclosed by slashes

For example, let's look at the following ASCII art: ...
the default.'s user avatar
  • 8,415
4 votes
0 answers
160 views

Make paper snowflakes! [closed]

The task Given a folded and cut in places snowflake, "unwrap" it and output the result Input The base folded snowflake, without any cuts, looks like: ...
Dion's user avatar
  • 3,900
7 votes
1 answer
335 views

Read an ASCII clock

Related to, but not a duplicate of, this challenge. Basics This is a clock: ...
Geza Kerecsenyi's user avatar
20 votes
7 answers
2k views

Parse ascii art math!

The task Given a multiline string with ascii art operators and numbers, parse the expression! Possible symbols Numbers: (3x4) ...
Dion's user avatar
  • 3,900
33 votes
31 answers
5k views

root of root of root of root

This idea came to me when I saw my little brother playing with my calculator :D The task Taking a integer as an input, print that many graphical square roots under each other, like this: ...
Dion's user avatar
  • 3,900
16 votes
14 answers
3k views

Rod of Asclepius

With this challenge we pay homage to everyone around the whole world fighting against the coronavirus crisis; particularly represented are the people tied to medicine, as the Rod of Asclepius is a ...
RGS's user avatar
  • 14k
7 votes
10 answers
899 views

Draw the prime race tracks

Odd prime numbers are either in the form of 4k+1 or 4k+3 where k is a non-negative integer. ...
polfosol ఠ_ఠ's user avatar
30 votes
61 answers
4k views

Triangular code, triangular output

For this challenge, submissions should be a program or function shaped like a right triangle, which produces a right triangle of the same size. What is a right triangle? For this challenge, a right ...
Rydwolf Programs's user avatar
26 votes
7 answers
5k views

Draw an ASCII oak tree (or a woman with curly hair?)

Task Your task is to draw these beautiful oak trees: ...
RGS's user avatar
  • 14k
27 votes
14 answers
4k views

This highway needs rain across both of its lanes

In this challenge you will take a an ascii art image of a highway like so ...
Wheat Wizard's user avatar
  • 96.5k
22 votes
29 answers
2k views

Alternating Triangles

Given a strictly positive integer n (therefore 0 isn't a valid test case), produce an approximate triangle of height ...
user avatar
6 votes
2 answers
337 views

Your Oscilloscope has ExPloDEd ! Make a sine wave [closed]

[ CODE GOLF] BAM! - Fire and Smoke Your Oscilloscope has exploded from one too many waves. Re-create these waves assuming the following: All waves are Sine Waves An amplitude of ...
leopardxpreload's user avatar
23 votes
17 answers
5k views

ASCII art is ready for take-off

Task Given a positive integer n, draw the corresponding rocket. Examples From n = 1 to 4 ...
RGS's user avatar
  • 14k
29 votes
7 answers
7k views

ASCII Pizza (no pineapple)

I like pizza! Task Given the radius of a pizza and a list of ingredients, create the corresponding ascii pizza! Example size 4 pizza with mozzarella cheese, olives and ham: ...
RGS's user avatar
  • 14k
21 votes
34 answers
2k views

Give me Triangles [duplicate]

Given an integer n>0, write a program that will output an "isosceles" Triangle out of #'s of height n. Examples: ...
x_linus's user avatar
  • 329
3 votes
1 answer
140 views

2D Path Drawing [duplicate]

(This is not a duplicate of Follow the path, as this challenge have invalid path detection and use ><^v in the output.) Task So your task is to take in the ...
TwilightSparkle's user avatar
22 votes
4 answers
507 views

Hexagonify™ a String Block

Sandbox What is Hexagonification™? Hexagonification™ is a transformation that creates a hexagon with 3 copies of a rectangle block, each skewed to the right by 30 degrees and then ...
Shieru Asakoto's user avatar
20 votes
11 answers
3k views

Advent calendar

Let's build an advent Calendar for this Christmas! Many Advent calendars for children take the form of a large rectangular card with numbered windows for each day of December starting from 1 ( ...
AZTECCO's user avatar
  • 10.6k
9 votes
5 answers
575 views

Generate an ASCII art representation of a ribbon plot

Sandbox post In this code-golf challenge, you are provided with a series of y values at even x-values as well as a console width and height. The desired output is an ASCII-art representation of a ...
Nick Kennedy's user avatar
10 votes
2 answers
428 views

Draw a fully-rendered path from direction changers

(Note: this challenge is distinct from my other challenge (Draw a path made from direction changers) because of it's rendering of direction (horizontal or vertical), crossing points and single or ...
AJFaraday's user avatar
  • 11.8k
4 votes
1 answer
622 views

Simplify the following C ascii graphing function

This wasn't originally intended for code-golf, just as a little debugging routine to roughly visualize something "goofy" going on in a model of some (irrelevant here) physical process. But ...
John Forkosh's user avatar
25 votes
14 answers
3k views

ASCII texturing

Write a function or a full program that applies an ASCII texture to a 2d shape. Inputs: shape, texture, dimensions(optionally). Both Shape and Texture can be given by any convenient method (2d ...
AZTECCO's user avatar
  • 10.6k
12 votes
2 answers
485 views

Exploding Primes

At the time of writing this puzzle, there are soon to be 269 puzzles related to primes. To celebrate/mourn this event (269 is prime), this challenge will be about exploding primes. In preparation for ...
Avi's user avatar
  • 281
48 votes
14 answers
5k views

In Flanders Fields

Today is November 11th, which for many regions is Remembrance Day. If you don't know anything about the history or context of Remembrance Day, you can read about it in the wiki page, but it's not ...
hyper-neutrino's user avatar
  • 41.3k
31 votes
4 answers
1k views

Expand a recursive pattern

Given a description of the base state of a recursive ASCII pattern, output an expanded state somewhere along the recursion steps. More specifically: Let the following be an example: ...
hyper-neutrino's user avatar
  • 41.3k
3 votes
1 answer
422 views

Draw a fuzzy grid

Print the ASCII version of a random grid. ...
Moritz Schauer's user avatar
34 votes
12 answers
3k views

What is my volume?

Given an input integer, output the volume corresponding to the value. The value will always be in the range \$[0,100]\$. Examples If the input \$=0\$: ...
user avatar
21 votes
2 answers
1k views

Golf Lathe Machine

You probably know what a Turing Machine is but do you know what is a Turning Machine (lathe)? Ok you already know.. and what about a Golf Turning Machine ?? Ok I tell you.. A Golf Turning Machine is ...
AZTECCO's user avatar
  • 10.6k
15 votes
8 answers
955 views

ASCII Pumpkin Carving [duplicate]

Today is Halloween and it's time to carve some pumpkins! & ((^.^)) Given an input integer, string, list of integers, etc., output the corresponding ...
AdmBorkBork's user avatar
  • 43.3k
9 votes
2 answers
511 views

Follow the Path, but is it valid?

Follow the Path I got directions to my friend's house, but it looks like his map might have some mistakes. He's expecting me soon, so I need some short code to figure out if I can get there. The ...
bigyihsuan's user avatar
  • 8,588

1 2
3
4 5
25