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
46
votes
27answers
2k views

Divisor skyline

For any positive integer k, let d(k) denote the number of divisors of k. For example, ...
6
votes
7answers
477 views

C4_4 Reflection!

In this challenge, your task is to input a rectangle ASCII pattern (You may assume only printable characters need to be handled, and you may assume a trailing newline or not), C4_4 symmetrify, and ...
34
votes
20answers
4k views

Alphabet cannon

A cannonball is fired so that in the first eyeblink of its flight it ascends by N treetops, during the second eyeblink by N-1 ...
23
votes
21answers
1k views

Slowly converging zigzag

Given a single positive odd integer as input, return a converging zigzag as a list of strings, list of lists of characters, or newline-separated string, in this form: ...
21
votes
18answers
2k views

Generating a soccer team!

Generate the following soccer team ASCII art with the least number of bytes possible. ...
27
votes
19answers
1k views

ASCII Bookshelves

You know those stackable shelves that are basically just wooden boxes that can be stacked together? We're going to simulate building some bookshelves out of those with some ASCII art. Our books are ...
4
votes
4answers
492 views

Codegolf : the HEX [closed]

INTRODUCTION I like Karma Fields : he's a music producer that creates original music tracks. His artwork also matches up really well his style. He has a logo witch I find really interessing : GOAL ...
11
votes
5answers
1k views

Track an object in 2d space

Description The task of this challenge is to devise a program or function that tracks a given object in an \$n×n\$ space. I/O Your program will be given 3 inputs, which may be taken in any sensible ...
29
votes
41answers
9k views

Will Jimmy fall off his platform?

Backstory Meet my friend Jimmy: /o\ Jimmy is a little character who likes to stand on platforms. Here's Jimmy safely standing on a platform: ...
40
votes
30answers
3k views

Lay out the Carpet

Inspired by this SO question. Challenge: Input: A string \$s\$ A character \$c\$ Output: Create a diamond-square ASCII art of the string in all four directions, with the first character of the ...
74
votes
17answers
4k views

Golf Dennis a thermometer

Dennis puts in a huge amount of effort for this community, including as moderator, language designer, and provider of TIO. Unfortunately, his four-year-old daughter has caught a cold, so let us all ...
9
votes
4answers
339 views

Weigh your words!

The challenge Given two strings, each of length up to 30, consisting of printable ASCII characters (codes \$[32, 126]\$), put them onto a balance scale in the fewest bytes of code! This consists of ...
177
votes
27answers
20k views

Do you want to code a snowman?

Here is a simple ASCII art snowman: _===_ (.,.) ( : ) ( : ) Let's make him some friends. This will be the general pattern for our ASCII art snowpeople: ...
112
votes
45answers
13k views

It's my Birthday :D

Introduction Last year was my birthday (really!) and sadly I had to organise my own party. Well, now you know, couldn't you at least make the cake? Challenge Given an integer ...
22
votes
22answers
2k views

Overlapping String-Blocks

Challenge: Given a list of multi-line strings, overlap them (in the top-left) and output the result. Example: Input: ["aaaa\naaaa\naaaa\naaaa","bb\nbb\nbb","c"] ...
30
votes
15answers
3k views

ABAA/ABBB: Generate this recursive 2D pattern

I was messing around with infinite resistor networks (long story) when I came across the following interesting recursive pattern: |-|| |--- Each instance of this ...
45
votes
19answers
5k views

Create a square of increasing size by replicating the initial code

Your assignment is to write a program of even length, that prints an ASCII-art square (described below), that increases its side length by 1 unit each time the original source code is pasted in the ...
21
votes
9answers
693 views

Stack the Christmas Gifts

Someone has been hastily stacking the Christmas presents, and it's quite a mess: ...
55
votes
24answers
5k views

Make a Bowl of Alphabet Soup

This is what we'll call a bowl of alphabet soup - a roughly circular ascii-art shape with the 26 uppercase English letters (A-Z) arranged clockwise to form the perimeter: ...
12
votes
3answers
426 views

Road painting ahead

Given two parameters lane pattern and road length, print an ASCII representation of the lane markings for Roads and Traffic Service to paint the roads. Example input/output Input: ...
25
votes
16answers
8k views

Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)

I was going through a bizarre thread on Reddit, and came across this: ( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°)ʖ ͡°) ͡°) It's representing a group of people smiling somewhat suspiciously. (In the challenge below ...
91
votes
48answers
13k views

In Honor of Adam West

Adam West passed away, and I'd like to honor his memory here on PPCG, though I doubt he knew of our existence. While there are many, many different things that this man is known for, none are more ...
17
votes
8answers
1k views

Jimmy needs your help!

It seems as of recent, there have been a lot a Jimmys falling to their death, as can be seen here, and here where you were asked to determine if Jimmy would fall. It is time we put a stop to this ...
59
votes
101answers
10k views

This isn't rocket science

Write a program or function that takes in a single-line string. You can assume it only contains printable ASCII. Print or return a string of an ASCII art rocket such as ...
36
votes
45answers
5k views

A crowd of blank stares

Problem Given no input write a program or a function that outputs or returns the following string: ...
1
vote
5answers
214 views

Print an array as a table [closed]

Write a program that prints an associative array (key-value) to a table. Requirements Standard loopholes are forbidden Please include a link to an online interpreter and the byte count in the ...
11
votes
2answers
750 views

Tile the chessboard with four-colored triominoes

Task: Consider the problem: "given a chessboard with one square missing, cut it into 21 L-triominoes". There is a well-known constructive proof that this can be done for any square chessboard size ...
36
votes
22answers
2k views

Basic ASCII Tallies

Alternate Title: Tally Your Prison Sentence on the Wall Given a number n, output tallies grouped into the traditional 5-per-group and 50 per row. Examples 1 <...
34
votes
24answers
3k views

The IHIH Pyramid

I find it fascinating how the letters "H" and "I" are very similar. "H" is a horizontal stroke surrounded by two vertical strokes; "I" is a vertical stroke surrounded by two horizontal strokes (...
16
votes
2answers
2k views

Ascii art pie chart

Your goal is to output an ASCII art pie chart. This is code-golf, so the shortest program (counting the bytes of the source code, not the characters) wins. No external softwares or APIs are allowed. ...
23
votes
22answers
3k views

Invert Some Switches on a Switchboard

Inspired by this challenge. Goal: Given a pre-configured switchboard and a list of indexes, invert the switches at the given indexes. A switchboard is made up of some number of switches (...
14
votes
17answers
780 views

Print a layered cake

Challenge Given an input n, print an ASCII art cake n layers tall, viewed from the side, with two candles on top. Refer to the ...
28
votes
4answers
2k views

Move arrows along a contour

Sandboxed Given a set of closed non-overlapping 2d contours (separated by at least one space even on diagonals) with arrows oriented consistently in the same clockwise or counter-clockwise direction (...
23
votes
45answers
3k views

10 PRINT CHR$(205.5+RND(1)); : GOTO 10 in PHP (or anything else, for that matter)

Just had a 'spirited' conversation with a co-worker about the succinctness of the following BASIC statement: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 It's the ...
13
votes
18answers
25k views

Walkers Join! - Alan Walker's logo

You might know Alan Walker from his ever popular song Faded. Now his "followers" are called Walkers and they have a logo, here is a simplified version: ...
32
votes
23answers
4k views

Brute-force the switchboard

The other day, our team went to an escape room. One of the puzzles involved a board of six mechanical switches where you had to find the correct combination of on and off in order to unlock a box, ...
14
votes
19answers
6k views

Say “Hello” to the world in ASCII art

Challenge: Produce the following output using as few chars as possible: ...
7
votes
7answers
522 views

Battle of the Jimmys

/o\ Jimmy has been receiving a lot of attention on this site recently and it has caused Jimmy to get a little stressed. The bodybuilder Jimmys ...
26
votes
15answers
2k views

Build ASCII Podiums

In sporting competitions, it often happens that winners are presented on podiums, with the first-place person on the highest in the middle, the second-place person on the middle height to the left, ...
19
votes
3answers
5k views

Draw ASCII Playing Cards

Consider these 15 ASCII playing card patterns (ace through Joker, and the back side), where X is a placeholder for the suit symbol: (they look better with less line ...
11
votes
1answer
315 views

Draw Recamán's sequence with ASCII

Recamán's sequence (A005132) is a mathematical sequence, defined as such: $$A(n) = \begin{cases}0 & \textrm{if } n = 0 \\ A(n-1) - n & \textrm{if } A(n-1) - n \textrm{ is positive and not ...
25
votes
15answers
926 views

Arbitrary Interval Ruler

Make a program that takes a length and list of intervals and outputs a ruler of that length with longer ticks for each interval using the line drawing characters ...
31
votes
22answers
2k views

Make it rain characters

Inspired by this chat mini-challenge. Given a string as input (ASCII printable characters only), output the string with the letters "raining" down. Each letter must be a random number of lines ...
24
votes
7answers
829 views

Expand a hexagon

Given an ASCII art hexagon as input, output one whose sides are all one unit longer. ...
23
votes
24answers
2k views

Make Gimbap cutter

Gimbap(김밥) is Korean food, somewhat looks like sushi roll. Here is Korean emoticon represent Gimbap : @)))))))))) Your quest is make ASCII Gimbap cutter. Rule ...
12
votes
8answers
657 views

Jimmy needs a new pair of shoes!

Jimmy has had a busy last week with all these platforms and ropes, and poor Jimmy doesn't even have legs or feet to stand on! Your job is to take a string containing multiple Jimmys and give them ...
18
votes
23answers
7k views

Can Jimmy hang on his rope?

Yet another Jimmy challenge by his original father. See these other lovely challenges. As you all know, recently we've been seeing challenges related to Jimmy on platforms. Now, Jimmy is an acrobat ...
20
votes
8answers
927 views

Alice's First Code Review

Alice is an intern in a company that uses Brainfuck as a primary language for both client-side and server-side development. Alice just has written her first code and she's a bit nervous as she's ...
11
votes
1answer
731 views

Keep my Trip Cool!

Challenge Walking around Marks and Spencers, I noticed that they had air conditioning units placed randomly around the shop. Wanting to keep cool, I wondered what was the easiest way to move around ...
65
votes
19answers
8k views

All in all it's just, uh, another trick in code golf

The purpose of this challenge is to produce an ASCII version of the cover of this great album by the rock band Pink Floyd. The brick junctions are made of characters ...