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
9 votes
2 answers
1k views

ASCII Maze Compression

Challenge Design a compression algorithm specialized for compressing ASCII mazes. You will need to create both a compression algorithm and a decompression algorithm. Your score will be based on the ...
Beefster's user avatar
  • 9,891
33 votes
25 answers
5k views

The (Easy) Road to Code

Input: An integer \$n\$, which is guaranteed to be \$\ge3\$. An integer \$d\$, which is one of \$[-1,0,1]\$. Output: A road of size \$n\$, which will be in a north-west direction if \$d=-1\$; a ...
Kevin Cruijssen's user avatar
-2 votes
5 answers
361 views

45 degree quine [closed]

A very simple golf this time, but should be fun to do. Challenge Output your code, but rotated 45 (or -45) degrees. E.g: lorem ipsum dolor sit amet becomes <...
Geza Kerecsenyi's user avatar
105 votes
90 answers
24k views

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Hold up..... this isn't trolling. Background These days on YouTube, comment sections are littered with such patterns: ...
Arjun's user avatar
  • 5,034
26 votes
15 answers
3k 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, ...
AdmBorkBork's user avatar
  • 43.3k
26 votes
15 answers
979 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 ...
Beefster's user avatar
  • 9,891
11 votes
9 answers
601 views

The Great Pyramid of Quine

The task is a rather simple quine challenge with a twist, you must output your source code in the shape of a pyramid. The shape of a pyramid is defined below: ...
Magic Octopus Urn's user avatar
25 votes
3 answers
677 views

Drawing a tree from an array

Given a possibly nested, non-empty array of single-digit positive integers (not guaranteed unique), output the ASCII-art representation as a tree, using the box-drawing characters ...
AdmBorkBork's user avatar
  • 43.3k
9 votes
6 answers
424 views

Help Notwen simulate gravity!

Notwen wants to study the kinematics of bodies thrown from big heights in a uniform gravitational field but unfortunately he doesn't have the technical possibility to go to sufficiently high places ...
Mr. Xcoder's user avatar
  • 42.3k
24 votes
16 answers
2k views

Classic VCS ASCII Adventure

Growing up, my first console game system was an Atari 2600 and I will always have a love for some of those games I so enjoyed as a child. Many of the graphics are still memorable, perhaps even iconic....
640KB's user avatar
  • 11.8k
69 votes
51 answers
12k views

Oreoorererereoo

Oreoorererereoo Given an input string that is similar to the word "oreo", give an ASCII representation of the cookie that is as wide as the input string (to ensure cookie stability). Rules The ...
GammaGames's user avatar
  • 1,095
40 votes
4 answers
2k views

Dungeon Crawler

Input A binary matrix \$M\$ representing the walls of a dungeon. The position \$(x,y)\$ of the player within the dungeon. The direction \$d\$ that the player is currently facing (0 = North, 1 = East, ...
Arnauld's user avatar
  • 188k
26 votes
46 answers
4k views

Draw some expanding arrows

This challenge is about printing a series of growing ASCII-art arrows. I'll describe the pattern in words, but it might be easier to look at what the start of this series looks like: ...
Pavel's user avatar
  • 9,369
14 votes
7 answers
1k views

Iron particles around a magnet

There are some iron particles on a board. We pass a current carrying wire through that board and the particles form circles. Show these circles if input given is the position of the wire. Consider the ...
Vedant Kandoi's user avatar
16 votes
4 answers
541 views

Code Golf: Letter-Ception

The Challenge: For an input of one letter X (upper or lower case from A to Z) and one digit N (0-9) print the corresponding letter X made of N * X. The letter has to be from this list: ...
whme's user avatar
  • 271
15 votes
6 answers
1k views

Fill the Bucket

Your task is to fill the bucket with numbers upto a given input. Rules Numbers occupy the leftmost position then rightmost, then leftmost and so on. After overflow, the numbers start to gather around ...
Vedant Kandoi's user avatar
-1 votes
27 answers
897 views

Print a square!

Print this text: _________ | | | | | | |_________| Shortest code wins. Notice the space at the start of the first line.
Cortex's user avatar
  • 146
10 votes
4 answers
1k views

ASCII art H trees

An H tree is a fractal tree structure that starts with a line. In each iteration, T branches are added to all endpoints. In this challenge, you have to create an ASCII representation of every second H ...
nwellnhof's user avatar
  • 10.5k
16 votes
9 answers
3k views

Drawing the Peano curve

Introduction In geometry, the Peano curve is the first example of a space-filling curve to be discovered, by Giuseppe Peano in 1890. Peano's curve is a surjective, continuous function from the unit ...
Peiffap's user avatar
  • 287
43 votes
25 answers
12k views

Tribute to Stan Lee

Unfortunately one of the greatest comic book writers passed away yesterday afternoon. Lots of Hollywood stars, musicians, actors, and many other people are paying tribute to this awesome writer, so we ...
Luis felipe De jesus Munoz's user avatar
14 votes
8 answers
731 views

Outline words with their letters

For the purposes of the current challenge to "outline" a word means to surround it successively with its own letters, starting with the last one, and finally to replace the original word in the center ...
Galen Ivanov's user avatar
25 votes
11 answers
2k views

Draw this diamond pattern

The below pattern will form the basis of this challenge. ...
AdmBorkBork's user avatar
  • 43.3k
23 votes
24 answers
4k views

ASCII Art Octagons

Given an input integer n > 1, output an ASCII-art octagon with side lengths composed of n characters. See examples below: <...
AdmBorkBork's user avatar
  • 43.3k
15 votes
16 answers
3k views

Chop up my ASCII art

Let's say I've got some ASCII art: ...
AJFaraday's user avatar
  • 11.8k
24 votes
17 answers
3k views

Bake me a slice of cake

My birthday is in a month, and this is a slice of tasty cake. ...
AdmBorkBork's user avatar
  • 43.3k
10 votes
26 answers
2k views

Let's play tennis 2: east-west game

There is a challenge Let's play tennis by Daniel. He proposes to place a court in the North-South direction. My proposal is to create a court to play tennis in the East-West direction too. You ...
mazzy's user avatar
  • 7,065
13 votes
4 answers
2k views

Convert an ASCII art table to a UTF-8 table

When I write documentation, comments, etc. I love making ASCII tables. They usually end up looking pretty good, but I always feel that they could look even better - especially since UTF-8/Unicode ...
user avatar
11 votes
5 answers
3k views

ASCII Calendar Planner

Given a list of activities and their start time/date, output an ASCII-art calendar showing the activities on the appropriate days. All activities are guaranteed to be in the same month, no two ...
AdmBorkBork's user avatar
  • 43.3k
33 votes
37 answers
5k views

Be there, for the square [duplicate]

Sometimes when you're lying in bed and reading a message, your phone screen will pop into landscape mode right in the middle of a sentence. Only being able to read left to right, you find yourself ...
maxb's user avatar
  • 6,837
13 votes
2 answers
529 views

Making a Mountain out of a Molehill

You are given a string of terrain, with molehills and mountains: ...
RamenChef's user avatar
  • 1,214
12 votes
5 answers
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 ...
J. Sallé's user avatar
  • 3,453
4 votes
4 answers
343 views

Build a Board of Napier's Bones

This proposal had few attention for 8 months (though an answer was posted in the sandbox at that time), so I decided to post it anyway. Introduction Napier's bones is a calculation tool, which helps ...
Shieru Asakoto's user avatar
13 votes
11 answers
3k views

Crop ASCII Art Challenge

ASCII art is fun. Modern text editors are very good at manipulating text. Are modern programming languages up to the task? One common task in ASCII art manipulation is to crop text to a rectangle ...
LambdaBeta's user avatar
  • 2,749
7 votes
3 answers
436 views

Print a Quinella Table

ALERT: IN CASE YOU DOUBT, NO PUN ON "QUINE" IS INTENDED In regulated horse-racing for gambling, bets called Quinella bets exist and in which a person bet on the first two places of a race. ...
Shieru Asakoto's user avatar
42 votes
46 answers
8k views

I done did made a spaceship maw!

Introduction: Inspired by this comment of @MagicOctopusUrn on @Emigna's 05AB1E answer for my "It was just a bug" challenge: 8F9ÝÀNð×ý}».∊ I done did made ...
Kevin Cruijssen's user avatar
4 votes
4 answers
417 views

Hey, what time is it?

Challenge Given a number width, number height, hours and ...
DimChtz's user avatar
  • 957
30 votes
11 answers
5k views

Let's draw the Triforce

The Triforce is a fictional artifact in The Legend of Zelda, made of three identical-looking equilateral triangles representing power, wisdom and courage. Several games in the saga include an ...
Arnauld's user avatar
  • 188k
12 votes
18 answers
2k views

Codegolf Rainbow : Draw in Black-and-White

Introduction: (Source: Wikipedia) When we look at a rainbow it will always have the colors from top to bottom: Red; orange; yellow; green; blue; indigo; violet If we look at these individual rings, ...
Kevin Cruijssen's user avatar
39 votes
37 answers
6k views

Display a clock face

Display the 12 numbers on a clock face exactly like this: ...
xnor's user avatar
  • 144k
30 votes
7 answers
6k views

Howdy! I'm the sheriff of code golf!

It's likely that anyone who used Twitter a couple of months ago would know about the 'Howdy! I'm the sheriff of X" meme. Where a simple image of a sheriff is drawn with emoji, and changes to fit a ...
AJFaraday's user avatar
  • 11.8k
17 votes
18 answers
8k views

Alternating Pattern

In a now deleted stackoverflow question, someone posted the following: Write a program or function to print alternating patterns in * and ...
Kevin Cruijssen's user avatar
48 votes
14 answers
50k views

Draw the "Cool S"

Introduction We all know the cool S (also known as Superman S, Stüssy S, Super S, Skater S, Pointy S, Graffiti S etc. etc.): billions of schoolchildren around the world drew this S and immediately ...
Beta Decay's user avatar
  • 23.3k
7 votes
2 answers
270 views

Drawing convex polyiamonds

Description OEIS sequence A096004 gives the Number of convex triangular polyominoes [polyiamonds] containing n cells. It begins: ...
Peter Kagey's user avatar
  • 8,659
17 votes
7 answers
686 views

Stacked digit staircases

Given positive integers \$w\$ and \$h\$ output \$w\$ columns and \$h\$ rows of text as described below. The first row begins with 11 0s, the second row with 10 <...
dylnan's user avatar
  • 5,334
19 votes
6 answers
2k views

Draw an ASCII meandering curve

For the purpose of this question a meandering curve is one that follows the general direction from left to right, but makes repeatedly n+1 turns at 90 degrees to the left and then n+1 turns to the ...
Galen Ivanov's user avatar
1 vote
3 answers
353 views

Rounded Rectangles

Challenge Given an integer greater or equal to 4, n, print a rounded rectangle of as close as possible (with a gap of 1) sides and a perimeter of n characters. Rules n is always 4 or greater, ...
GammaGames's user avatar
  • 1,095
15 votes
6 answers
4k views

A nicely-spaced ASCII spiral

Consider this spiral ########### # # ####### # # # # # ### # # # # # # # # # # # # # # # # ##### # # # ######### Starting in the centre: The first ...
AJFaraday's user avatar
  • 11.8k
10 votes
4 answers
449 views

Output an ASCII "splat"

If you throw an ASCII egg in a given direction, you end up with an ASCII splat of size n. It "starts" with one o (the yolk), and continues in a given direction with ...
ngm's user avatar
  • 4,304
25 votes
31 answers
2k views

Let's design a digit mosaic

Challenge Given a positive integer \$N\$, repeat each of its digits \$d_1, d_2, d_3, \cdots, d_n\$ a number of times corresponding to its position in \$N\$. In other words, each digit \$d_k\$ should ...
Mr. Xcoder's user avatar
  • 42.3k
16 votes
4 answers
364 views

Zigzag this string by collapsing duplicates

Given a string, your task is to collapse it into a zigzag-like structure as described below. Folding into a Zigzag We'll take the string "Mississippi" as an ...
Mr. Xcoder's user avatar
  • 42.3k

1
3 4
5
6 7
25