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
20 votes
3 answers
709 views

Is This a Real Tree?

You should write a program or function which receives a string as input and outputs or returns if the input is an ASCII tree. _ \/ / \_/ | | ASCII trees ...
randomra's user avatar
  • 20.8k
55 votes
34 answers
6k views

Draw An ASCII Double Helix

Write a program that takes in an integer N via stdin or the command line. If N is 0, the single letter O must be printed to stdout. If N is positive, this ...
Calvin's Hobbies's user avatar
6 votes
2 answers
559 views

METAscii Code Golf

Introduction Here at code colf SE, we appear to love meta-problems. Here, I've tried to compose a meta-problem that's an interesting, not-straightforward challenge. Challenge The answer code is ...
Thomas Cleberg's user avatar
18 votes
4 answers
3k views

Build an ASCII Fibonacci Clock

Someone built a really fancy clock using Fibonacci numbers, which looks really nice but is fairly unusable. Just the way we like it! Let's recreate this. The clock is made up of 5 sections ...
Martin Ender's user avatar
43 votes
39 answers
4k views

Extendify the ASCII Sun

Write a program that takes in (via STDIN/command line) a non-negative integer N. When N is 0, your program should print O (that's capital Oh, not zero). When N is 1,...
Calvin's Hobbies's user avatar
20 votes
9 answers
2k views

Identify halves of Poker cards

A casino uses the following deck of cards. (* is one of the card suits D, S, ...
user694733's user avatar
182 votes
29 answers
24k 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: ...
Calvin's Hobbies's user avatar
24 votes
3 answers
2k views

Can you fold a hexomino into a cube?

One of my kid's favorite toys is a set like this. Actually its one of my favorite toys - I've been playing with it and its been giving me some PPCG challenge ideas. Here's one: Write a program or ...
Digital Trauma's user avatar
13 votes
2 answers
1k views

ASCII Art Generation

Task Write a program or function that takes an image of width w and height h, and two integers ...
es1024's user avatar
  • 9,175
60 votes
27 answers
7k views

Golf Your Language's Identicon

Identicons are small images of geometric patterns that represent the hash value of a string. Stack Exchange uses the identicons from Gravatar as each user's default avatar image. In this challenge, we ...
Calvin's Hobbies's user avatar
42 votes
11 answers
4k views

Build a steady brick wall

A brick wall is a rectangle made of horizontal 1-by-n bricks stacked into rows. Here's a wall of height 4 and width 8, with brick sizes shown on the right. ...
xnor's user avatar
  • 145k
31 votes
8 answers
2k views

Area of an ASCII polygon

You should write a program or function which receives a string representing an ascii-art polygon as input and outputs ot returns the area of the polygon. The input is a string consisting of the ...
randomra's user avatar
  • 20.8k
30 votes
24 answers
2k views

Road-Length Encoding

In the United States, the two opposing directions of traffic on a road are separated by a dashed yellow line if passing is allowed and two solid yellow lines if passing is not allowed. (Just one side ...
Calvin's Hobbies's user avatar
14 votes
7 answers
2k views

Tiling a 2^N by 2^N Grid with L-Shaped Trominoes

When students are first taught about the proof technique of mathematical induction, a common example is the problem of tiling a 2N×2N grid with L-shaped trominoes, leaving one predetermined grid ...
Calvin's Hobbies's user avatar
83 votes
50 answers
7k views

Telescopic Parentheses

Consider a non-empty string of correctly balanced parentheses: (()(()())()((())))(()) We can imagine that each pair of parentheses represents a ring in a ...
Martin Ender's user avatar
31 votes
13 answers
4k views

Draw a Random ASCII Art Quilt

For this challenge, an ASCII art quilt will be a block of text 24 characters wide and 18 lines tall, containing the characters =-<>/\ in a quilt-like pattern ...
Calvin's Hobbies's user avatar
23 votes
2 answers
515 views

Connecting letters

You should write a program or function which receives a block of chars represented as a string and outputs or returns a similar string in which the letters adjacent in the alphabet are connected. A ...
randomra's user avatar
  • 20.8k
16 votes
3 answers
879 views

ASCII L-system renderer

Background An L-system (or Lindenmayer system) is a parallel rewriting system that, among other things, can be easily used to model fractals. This question concerns deterministic, context-free L-...
Uri Granta's user avatar
  • 2,959
73 votes
22 answers
6k views

Interpreting Fish (no, not that Fish)

Consider these five ASCII art sea creatures: Standard fish: ><> or <>< Speedy fish: ...
Calvin's Hobbies's user avatar
31 votes
4 answers
2k views

ASCII Doodling: Laser in a Box

Sometimes when I'm doodling, I draw a rectangle, start with a diagonal from one of the corners, and then just trace out a line by "reflecting" it whenever I hit a side of the rectangle. I continue ...
Martin Ender's user avatar
31 votes
12 answers
2k views

Official Ruby Inspector

Here is a simple ASCII art ruby: ___ /\_/\ /_/ \_\ \ \_/ / \/_\/ As a jeweler for the ASCII Gemstone Corporation, your job is inspect the newly acquired rubies ...
Calvin's Hobbies's user avatar
175 votes
101 answers
42k views

Programming Languages Through The Years

In this challenge, users will take turns completeing three fairly simple coding tasks in programming languages that are allowed to be progressively older. The first answer must use a programming ...
Calvin's Hobbies's user avatar
14 votes
4 answers
1k views

Draw a Random Walk with Slashes

Write a program or function that takes in a positive integer N (via stdin/command line/function arg) and prints or returns a string representation of a two dimensional random walk that is N steps long,...
Calvin's Hobbies's user avatar
47 votes
32 answers
7k views

Very Simple Triangles

Write a program or function that takes in a positive integer (via stdin, command line, or function arg) and prints or returns a string of that many of these small triangles tiled together, alternating ...
Calvin's Hobbies's user avatar
28 votes
8 answers
1k views

ASCII topology pt 1: Can I count on you?

I have a serious problem. I have some text files where I keep my very important numbers -- all of the important ones! And twos, and threes.. These numbers were so important that I couldn't entrust ...
Matt Noonan's user avatar
  • 1,054
14 votes
1 answer
331 views

Finding Symmetries in Squares

Write a program or function that takes in a list of positive integers. Each of these integers represents the side length of a square on a 2D plane. Each square can be moved to any integer coordinates ...
Calvin's Hobbies's user avatar
14 votes
6 answers
1k views

Generate a Rectangle from a Specification

Introduction This challenge is inspired by Grime, my 2D pattern matching language. Basically, you are given a "grammar" that describes two-dimensional grids of characters, and your job is to generate ...
Zgarb's user avatar
  • 42.6k
24 votes
24 answers
2k views

The Characters in the String Go Round and Round

(Inspired by an early draft of PhiNotPi's fractal line challenge.) You're given a width W > 1, a height H > 1 and string ...
Martin Ender's user avatar
14 votes
4 answers
929 views

Spiral Programming

Write a named function or program that accepts a single integer N and prints (to STDOUT) or returns (as a string) the first N bars of the spiral below, beginning with the vertical bar in the center ...
Rainbolt's user avatar
  • 6,376
15 votes
4 answers
2k views

ASCII Ice Cream

Write a program or function that takes in a positive integer N, and prints or returns an N×N ASCII art string whose top half is a semicircle made of ('s and whose ...
Calvin's Hobbies's user avatar
20 votes
19 answers
5k views

The Staircase Challenge

Your work is to recreate this piece of art: ...
qedk's user avatar
  • 307
1 vote
0 answers
202 views

LCD Numbers - get my lost 190 bytes back [duplicate]

Years ago I read the "Best of Ruby Quiz" book by James Edward Gray II (also available online by now). For problem 2 in the book (which is problem 14 on his original RubyQuiz site), he mentions a ...
David Ongaro's user avatar
31 votes
12 answers
3k views

Decode a Heat Map

Heatmaps Consider a rectangular room, on whose ceiling we have a thermal camera pointing downward. In the room, there are some number of heat sources of intensity ...
Zgarb's user avatar
  • 42.6k
49 votes
26 answers
11k views

Draw the Devil's Staircase

The Devil's Staircase is a fractal-like function related to the Cantor set. Your task is to replicate this funky function — in ASCII art! Input A single integer ...
Sp3000's user avatar
  • 61.8k
4 votes
2 answers
972 views

draw ASCII function plots

Consider a function plot like this: ...
FUZxxl's user avatar
  • 10.1k
12 votes
8 answers
1k views

User Scored Code Golf - Drawing Diamonds [experimental]

This challenge will behave more or less like a traditional code-golf. The only difference is that instead of scoring answers by their number of characters or bytes, users will assign weights to ...
Calvin's Hobbies's user avatar
17 votes
3 answers
1k views

Words within words within words within words . . .

In this pixelated font of uppercase letters of the alphabet, all the characters are 5 units wide and 5 tall. ...
Calvin's Hobbies's user avatar
8 votes
1 answer
452 views

Confused badminton players

Introduction Jim and Bob are playing badminton doubles against two other players, but mid-game they face a dilemma: After a fast-paced rally they have no idea who has to serve next and where they ...
GiantTree's user avatar
  • 935
21 votes
9 answers
732 views

Stack the Christmas Gifts

Someone has been hastily stacking the Christmas presents, and it's quite a mess: ...
Martin Ender's user avatar
13 votes
7 answers
738 views

Super Square Rain

The Scream™ Winter Sale is on and you just nabbed yourself an intense minimalist action game, Super Square. Upon playing it, you come to the realisation that either the game's just ridiculously hard ...
Sp3000's user avatar
  • 61.8k
46 votes
35 answers
4k views

Draw a bowling formation

Your goal is to display ASCII art of a formation in ten-pin bowling where only some of the pins remain. Fewest bytes wins. The tens pins are in a triangular formation: ...
xnor's user avatar
  • 145k
2 votes
1 answer
2k views

Make a working digital clock with ascii numbers [duplicate]

The challenge is make a digital clock that exhibits ascii numbers in a 24-hour format like: _ _ _ _ |_| |_| . |_| |_| |_| |_| . |_| |_| or ...
David Sousa's user avatar
23 votes
13 answers
2k views

DVI Connector Pins

This is supposed to be a code golf challenge on the simpler end of the spectrum. But I figured it could be nice to bring out some micro-optimisation here. There are three basic types of DVI ...
Martin Ender's user avatar
11 votes
1 answer
766 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 ...
Beta Decay's user avatar
  • 23.3k
12 votes
1 answer
459 views

Organize Halloween Candy - Hole #4

See Hole #1 if you are confused. What does every kid do after he/she collects buckets of candy over Halloween? Sort it by type and size, of course1! The Challenge Given a dumped-out bag of candy ...
Stretch Maniac's user avatar
0 votes
1 answer
402 views

Program an Artistically Rich Comic Strip [closed]

The Challenge Program a comic strip. As artistically rich and detailed as you can possibly make it, so long as it complies with the following rules: the comic must be your own original work, not a ...
COTO's user avatar
  • 3,691
35 votes
43 answers
7k views

Character Cross

I was expecting to post something more complex as my first puzzle in PCG, but a particular, uh... homework question on Stack Overflow inspired me to post this. They want to: print the following ...
sampathsris's user avatar
9 votes
4 answers
534 views

Decompose a number into a sum of repdigits

Repdigits are numbers of the form a * (10^n - 1)/9 with a in [-9,9]\{0} (in other words 111, -3333, 66, numbers which are made ...
DenDenDo's user avatar
  • 2,871
26 votes
30 answers
5k views

Sierpinski Carpets

Who doesn't love a good fractal? The Sierpinski Carpet is a classic example of a fractal. To complete this task, you will be required to generate a carpet of type \$n\$ and print the resulting image ...
Paul Clavier's user avatar
19 votes
1 answer
687 views

Give me a haircut!

This is my head: \ /-- -| / -\ | | | \ \ \ \ | --\ | \ | | / |--| / / | /|- //--| / | | | || //\ | | \ /| // \ | It ...
Doorknob's user avatar
  • 71.4k

1
19 20
21
22 23
25