This challenge involves creating 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.

learn more… | top users | synonyms

17
votes
11answers
983 views

Let's see some action!

Who doesn't love action movies with fast noisy cars, especially those with a lot of crashes? Who doesn't love action shots in ascii art? The scene is: Two cars are starting at opposite sides of a ...
17
votes
1answer
228 views

Shapeshifting boxes

I define four box styles: +-----+ ooooooo ^^^^^ ******* | 1 | o 2 o < 3 > * 4 * | | o o < > * * +-----+ ooooooo vvvvv ******* Write a ...
11
votes
4answers
327 views

Approximate Square Formation

Background I have a bunch of square-shaped boxes of equal size, and since I'm a neat person, I want to arrange them all into a square formation. However, their number is not necessarily a perfect ...
8
votes
3answers
261 views

Zig-zag strings

Zig-zag strings Given a string and a positive integer, output the string in a zig-zag wave pattern with a peak amplitude and character spacing equal to the integer. This is similar to this question ...
7
votes
2answers
273 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: BTHMLRPHU, 21 I ...
7
votes
3answers
439 views

ASCII Art Chessboard

In this challenge, you are to draw the chessboard below, and allow for moves to be made. 1. Drawing Each white square has 5x9 spaces. Each black square has 5x9 colons. The board is surrounded by a ...
15
votes
4answers
540 views

ASCII Art Archery Arrows

Write a program or function that takes in a positive integer and prints or returns an ASCII art depiction of an archery arrow, scaled according to the input. If the input is 1 the output is /\ / ...
7
votes
1answer
238 views

Print a non-clashing binary search tree

Brief Print an ASCII representation of a binary search tree. You should write your own minimum implementation logic of a BST (node, left, right, insert) (50,30,70,20,80,40,75,90) gives: ...
16
votes
3answers
744 views

Build Me a Pyramid

You need to build a pyramid from cubes. Cubes can be viewed from 2 angles: _____ _____ /\ \ / /\ / \____\ /____/ \ \ / / \ \ / \/____/ \____\/ This is an ...
22
votes
6answers
553 views

Generate fractals from bit patterns in ASCII

Overview Write a program that prints out simple fractal patterns given a bit pattern encoding the fractal, plus the per-generation scale factor of the fractal and number of generations. Explanation ...
6
votes
2answers
457 views

ASCII Game of Pong

Ascii Pong The challenge is to recreate the classic game "pong" in ASCII characters in the shortest code possible. Requirements/specifications The "screen" should be 45x25 characters. White space ...
29
votes
9answers
2k views

Balance a set of weights on a seesaw

Balancing Act Overview Given an input of 3 single-digit positive integers representing a set of weights, output an ASCII representation of a seesaw with the weights placed on it so that it is in ...
4
votes
1answer
367 views

Reflections in Water [closed]

Take a string as input. This string can be as long as you'd like, however, it may only include letters and spaces––no numbers, punctuation, etc. When a word is passed into your function, an image will ...
20
votes
6answers
1k views

ASCII connected hexagons

Overview Given a number of hexagons, arrange them into a connected shape within the confines of a 50 by 50 ASCII art image. The shape you choose can be arbitrary - whatever you find most amenable to ...
31
votes
6answers
937 views

Sort the Textbooks

Sort the Textbooks School is starting soon (if it hasn't already) and so it's time to get our textbooks in order. You need to sort your books in alphabetical order but that takes too long so you ...
17
votes
5answers
691 views

X Marks the Spot

X Marks the spot Your goal is to add a cross-hair around the capital X: Example Input / Output Input: mdhyyyyyyyhhhddmmm ...
14
votes
16answers
1k views

Code me a cookie

Challenge Code an ASCII cookie of a kind according to the input. Input The cookie kind. This is one of the three strings: "Plain", "Chocolate", or "Nuts". May be function arguments, stdin (or ...
18
votes
11answers
2k views

64 bit ASCII weaving

Input Two integers: A non-negative integer W in the range 0 to 2^64-1, specifying the weave. A positive integer S in the range 1 to 255, specifying the side length. These can be taken in ...
19
votes
6answers
1k views

Bowl Filled with Water

You should write a program or function which receives the volume of a bowl and the volume of the water in it as input and outputs or returns an ASCII representation of a bowl with water in it with the ...
19
votes
1answer
283 views

telgif: inverse figlet

figlet is utility that converts plain text to an ascii-art representation for use in banners and the like. For example: $ figlet "CODE GOLF" ____ ___ ____ _____ ____ ___ _ _____ / ...
8
votes
1answer
213 views

Marching Squares Lookup

Marching Squares is an algorithm from computer graphics, which is used to recover 2D isocontours from a grid of samples (see also, its big brother Marching Cubes for 3D settings). The idea is to ...
10
votes
4answers
505 views

Display words using 7-segment display

My first ever Programming Puzzles & Code Golf is the Seven-Slash Display. Here is my first Challenge, also based on 7-segment display. I often think about, besides numbers, what kind of letters ...
36
votes
18answers
5k views

Minecraft Mirrored

This is Calvin. Just trying to get 20 rep so this user can chat in the PPCG Minecraft Server chatroom. Write a program or function that takes in a positive integer. If the integer is even (2, 4, 6, ...
25
votes
10answers
2k views

Sinusoidal text

Goal: Write a program or function which prints an input string in a sinusoidal shape. The ASCII sinusoid Here is one period of the sinusoid: ....... ...
22
votes
0answers
520 views

ASCII Scores ­­­­­

Digging around in the depths of your temp folder, you find some compositions for the piano. Unfortunately, these compositions were written with note names and durations only, and you only have access ...
44
votes
7answers
2k views

Make the Stretchy Snakes Kiss

A stretchy snake looks something like this: <||=|||:)~ Each separate sequence of vertical bars (|) in a stretchy snake, known as a stretchy portion, is individually extendable to twice its ...
-5
votes
11answers
172 views

My Squiggly Lamp

While moving, I broke my lamp. Now, I need a new one. It's your job to make me a lamp! I'm not sure what size I want, though I know I want a squiggly one. Your program/function must take in a number ...
17
votes
7answers
2k views

ASCII Borromean Rings

The Borromean rings are a curious set of three circles, linked such that the removal of any one of them will unlink the other two: You can make a set for yourself with a couple rubber bands and a ...
22
votes
19answers
2k views

Draw an ASCII Checkerboard

Summary Inspired by the recent popularity of ASCII art challenges, this challenge's purpose is to draw an ASCII checkerboard, like one on which Chess can be played. Write a program that takes a ...
0
votes
1answer
176 views

ASCII art compression

The following challenge is basically a simpler version of the one proposed by Dennis (Lossy ASCII art compression). I found the idea super interesting but a bit too convulted, and seeing as it didn't ...
22
votes
5answers
343 views

Convert Chevrons to Soliduses

Write a program that takes in a string containing only spaces, newlines, and angle brackets: <, > (chevrons). Output a string of spaces, newlines, and slashes: /, \ (soliduses) whose shapes ...
9
votes
0answers
357 views

Lossy ASCII art compression

Background PICASCII is a neat tool that converts images into ASCII art. It achieves different degrees of brightness by using the following ten ASCII characters: @#+';:,.` We'll say that these ...
-2
votes
1answer
299 views

Print the map of a country with the weirdest code possible [closed]

It can be in any language, plus the map must be in the output only not in the source code. This is my first question here, so please feel free to edit it. Also, there might be some rules about ...
15
votes
6answers
1k views

Rebuilding an ASCII City

+--+ +--+ | | +--+ +--+ | | | | | | | | +--+ +--+ +--+ +--+ The people of ASCIIville are rebuilding their city and are sketching out new blueprints. Your job is to draw their new city ...
16
votes
3answers
492 views

ASCII Dragon's Curve

Introduction The Dragon's Curve is a fractal curve that notably appears on section title pages of the Jurassic Park novel. It can very simply be described as a process of folding a paper strip, as ...
13
votes
30answers
2k views

Antiferromagnetic ordering

Antiferromagnetism is what IBM researchers used to jump from a 1 terabyte disk to a 100 terabyte disk in the same amount of atoms. In materials that exhibit antiferromagnetism, the magnetic moments ...
4
votes
14answers
3k views

Print the Flag of the Arab Revolt!

It seems flags are a trend now, so what better place to start an account? I thought bars could use a twist to them, so I found this flag. Produce the following in the console output the fewest ...
6
votes
4answers
479 views

Print the Australian Flag!

Here we go again! This is my last flag for now! I originally wanted to do my national flag but I thought the stars were too hard so I posted Print the British Flag! instead, which itself was inspired ...
10
votes
5answers
639 views

Print the British Flag!

Inspired by Print the American Flag! this is a direct copy but with the British flag as it has some symmetries but is still quite complex! Your challenge is to produce the following ASCII-Art in as ...
26
votes
8answers
4k views

Print the American Flag!

Special Independence Day (USA) themed challenge for you today. You must write a program that prints this ascii-art representation of The American Flag. 0 ...
10
votes
6answers
514 views

Print an ascii spiral in O(log n) memory

You may write a program or function that receives an odd, positive integer n, where n >= 3, as either a function argument, command line arguments, or on STDIN (or equivalent for your system), and ...
24
votes
24answers
4k views

Simple ASCII Gantt

This is a simple one: print an ASCII Gantt chart. Given tasks' ranges (start-time - end-time Tuples), print a Gantt timeline in the form of - characters for each task duration - each task in a new ...
30
votes
2answers
636 views

Poor man's LaTeX

You are transported in a parallel universe where people write mathematical equations on computers as ASCII art by hand. As a LaTeX addict, this is totally unacceptable, and you ought to automate this ...
5
votes
0answers
193 views

Display a MIDI Track

Background MIDI files are quite different from WAV or MP3 audio files. MP3 and WAV files contain bytes representing a "recording" of the audio, while MIDI files have a series of MIDI messages stored ...
8
votes
0answers
152 views

Rotate a diamond tiling

Any regular hexagon can be tiled with diamonds, for instance like so (stolen from this question): ______ /_/_/\_\ /_/\_\/\_\ /\_\/_/\/_/\ \/_/\_\/_/\/ \_\/_/\_\/ \_\_\/_/ We'll consider ...
14
votes
2answers
313 views

Fill a water balloon

In this challenge, you must display ASCII art of a water balloon given the amount of water that the balloon is filled with: | __||__ | | / # #\ | | |######| | | |######| | | |######| | | |######| ...
44
votes
24answers
5k views

First code golf decathlon

Tasks All competitors try to solve the following list of 10 tasks: math Read a positive integer n from input and return the sum of the cubes of the first n non-negative integers. For input 1, ...
17
votes
9answers
1k views

Draw Growing Stacks of Boxes

The Task In this challenge, your task is to draw an ASCII art representation of several stacks of boxes of increasing height. You are given as input the number of stacks, which is a positive integer. ...
13
votes
1answer
410 views

mtDNA mutation tree

Background: MtDNA is a part of the human DNA that is passed from a mother to a child and it rarely mutates. Since this is true for all humans it is possible to create a huge tree that visualize how ...
16
votes
2answers
1k views

Rotate a Chinese checkerboard

A Chinese checkerboard looks like this (based on this question, but this time it has a fixed size): G . G G G G G G . G B B B B . . Y G . Y . Y Y B B B . . ...