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.

learn more… | top users | synonyms

28
votes
25answers
3k views

Print a Lego Piece

This challenge is a simple ascii-art one. Given two inputs, describing the height and width of a Lego piece, you have print an ascii-art representation of it. Here is how the Lego pieces are supposed ...
26
votes
11answers
3k views

Visualise Bit Weaving

The esoteric programming language evil has an interesting operation on byte values which it calls "weaving". It is essentially a permutation of the eight bits of the byte (it doesn't matter which end ...
16
votes
8answers
1k views

Falling ASCII balls

Input You are given a 2D map with balls and ground in it. It looks like this: 1 5 2 3 4 __________________________ Each number is a ball, and the _ is ...
9
votes
2answers
287 views

Here's Bub. A not-so-world-class soccer player

This is Bub. Bub is a soccer player. However, he's not a very good one. He still can't kick the ball to the net! (If you haven't noticed, @ is the ball. ...
24
votes
7answers
731 views

The Ever Amplifying Zigzag

Write a program or function that takes in a positive integer N and outputs the first N numbers of this amplifying zigzag pattern, using only the lines needed: ...
16
votes
11answers
596 views

Is my emoji dry?

This is my pet emoji, Billy: -_- Emojis don't like to be in the rain, so Billy is sad... Let's draw him an umbrella to make him feel better! /\ / \ / \ -_- This is good, he is entirely ...
23
votes
21answers
1k views

Sum It Up with a Digital Triangle

Well, sum it down really. Write a program or function that takes in a nonempty list of decimal integers (0-9) and outputs a downward pointing "triangle" of digits with the input list at the top where ...
12
votes
4answers
269 views

Display a cribbage score in ASCII

Cribbage is an interesting game, because you need a specific board to score your game. A cribbage board looks like this: Notice how the first column is on the left as it goes up, then on the right ...
42
votes
11answers
4k views

Stack Overflowing

(Inspired by this question) Objective Your task is to write a program or function to print an ASCII version of the Stack Overflow logo to STDOUT \|/ (-) (-) (-) (-) Your program should take two ...
5
votes
7answers
408 views

Collide against walls

Statement Given an input like this 35 15 0 0 10 that matches the following constrains: Width in characters of the grid (5-50) Height in characters of the grid (5-25) Initial X position of the ball (...
0
votes
0answers
71 views

Create a 3d-like ASCII art [duplicate]

Your challenge is to convert a string to an ASCII art version of it. Input Your input is a single string, wich you should convert into the ASCII art version of it. Output Your output should be ...
11
votes
7answers
1k views

Let's build a Staircase

We don't have enough (semi-)easy challenges for beginners. More and more of the easy ones are already taken. So I tried to come up with something that might be achievable by beginners, but that isn't ...
3
votes
2answers
303 views

Golf me an ASCII Alphabet

Don't you find that reading simple text isn't appealing enough? Try our ##### ### ### ##### ##### ##### ##### # # ##### # # # # # # # # # # # # # #...
9
votes
4answers
366 views

Visualize Church numerals

Background Visualizing Ξ»-calculus terms Famous lambda-juggler (and code golfer) John Tromp devised an interesting visualization of terms in the Ξ»-calculus. In his words: abstractions (lambdas) ...
48
votes
24answers
2k views

Generate Wordenticons

Identicons are visual depictions of hash values, often made from symmetrical arrangements of geometric shapes. Your default Stack Exchange avatar is an identicon. This challenge is about creating "...
12
votes
1answer
208 views

Convert ASCII box drawing into Unicode

I am shamelessly posting a request for something I would actually find useful. The task is to take an arbitrary ascii box drawing like this | +----+----+ | state A +---+ +---------+ | ...
4
votes
1answer
218 views

Let's play ASCII mini-golf [closed]

Let's play code golf... by playing golf. Input Your input will be a string consisting of #'s, an o, an @, and .'s. For example: ......@.. .....##.. ......... ......o.. . - playable golf course (...
32
votes
19answers
4k views

Will the beam hit?

A laser shoots a straight beam in one of the four orthogonal directions, indicated by <>^v. Determine whether it will hit the target O on a rectangular grid. Each of these will hit (True): ......
7
votes
2answers
263 views

Generate ASCII TetraVex

TetraVex is a tile-based edge-matching game that was originally coded by Scott Ferguson for the Microsoft Entertainment Pack 3 back in 1990. The game consists of a grid upon which square tiles are ...
12
votes
13answers
2k views

Grow a Treemote!

This is my friend Thomas. He is half tree, half emoticon. | | | :D | | | He is lonely. Let's make him some friends! Given a text-based emoticon as input (e.g. ΰ² _ΰ² , :P, >_>, not πŸ˜€, πŸ€“...
11
votes
1answer
245 views

How many squares are there?

This challenge is inspired by a picture that often roams on Facebook that looks like this. Except our base square will look more like this: β”Œβ”€β”¬β”€β”€β”€β”¬β”€β” β”œβ”€β”Όβ”€β”¬β”€β”Όβ”€β”€ β”œβ”€β”Όβ”€β”΄β”€β”Όβ”€β”€ β”œβ”€β”Όβ”€β”¬β”€β”Όβ”€β”€ β””β”€β”΄β”€β”΄β”€β”΄β”€β”˜ The ...
0
votes
0answers
56 views

Drawing the Number ASCIIuare [duplicate]

You have to write a function/program that will draw an ASCII art of a square made with numbers. Challenge This program will take one input n as a positive integer and draw a hollow square using this ...
10
votes
2answers
203 views

Building a Bridge

Your task is to build a bridge to connect two cliffs given an input d, the distance apart. d will always be even However, the bridge needs columns to hold it up. Each column can hold a max of 6 ...
21
votes
7answers
563 views

ASCII piano keyboard

Piano keys are 3 characters wide, and 7 characters tall. However, if every key was 3 charactes wide, there wouldn't be enough room for the black keys. That's why some of the white keys have parts ...
1
vote
1answer
81 views

Scale up an image! [duplicate]

Your task is to write a program/function to scale up an image (list of strings) by a factor of n. Specs You will receive two inputs: an image, and a positive integer. The image will only contain ...
9
votes
8answers
371 views

Draw a phi triangle

Clarification: Basically, you need to make this Euler's totient function has the name phi. Let's try to calculate phi(8) First, list all numbers 8 and under backwards, not including 0 or under 8 7 ...
7
votes
1answer
125 views

Drilling For Oil

Congratulations! You have just been hired by a Fortune 499 company specializing in oil drilling. Your job is to write a program to determine the optimum placement of OilRUs' drill (represented by a ...
15
votes
5answers
349 views

Automatic house-builder

Automatic house building nanobots have been fabricated, and it's your job to code them. Here is the house created by input 7 4 2 /-----/| / / | |-----| | | | | | | / |_____|/ The ...
5
votes
1answer
140 views

Will it ​float?

The challenge Given a 2d string representing the bottom of a boat as an input, you must determine whether or not the boat will float. This 2D string can be in whatever format is most convenient. (...
14
votes
6answers
455 views

ASCII Art Mayan Numerals

This challenge is simple. Given a number, output a ascii-art representation of the number, using the Mayan Base-20 numeral system. What is the Mayan system? The Mayans used base 20 to store numbers,...
8
votes
21answers
1k views

Convert a Forsyth-Edwards Notation string to ASCII art

In chess, Forsyth-Edwards Notation, more commonly called "FEN", is a textual way of transcribing boards. It describes each of the board's eight rows (called "ranks" in chess) from top to bottom from ...
10
votes
3answers
185 views

How many 14ers did I climb?

In mountaineering terminology, a "14er" is any mountain with an elevation of 14 000 feet or more. However, there is another distinction. For a peak to count as a 14er, it must also have a "geographic ...
22
votes
4answers
405 views

Can Gravity Guy Make It?

Gravity Guy is a game where the only user input is a single key that flips the direction of gravity. Given an ASCII art level, determine if it is possible for Gravity Guy to reach the end. Rules ...
19
votes
5answers
1k views

Are there More Hard Objects or Soft Objects

Tangentially inspired by the opening to the What-If book. The input is a rectangle of spaces as a string, list of string, etc., with objects made of #'s inside: ######## # # ...
42
votes
9answers
5k views

Build a triangle without any triangles

As a little kid, I liked to play with these toys a lot: They probably intended for these to be used for art, but I always used them for math! Fractals, patterns, etc. One time, I was given this ...
8
votes
3answers
506 views

420 <s>Blaze</s> Golf It

This is a pretty simple challenge, but (I hope) a fun one. Task If right now either the month is 4 and the day is 20, the hour (on a 12 hour clock) is 4 and the minute is 20, or the minute is 4 and ...
14
votes
7answers
755 views

Draw an indexed fractal

Introduction In this challenge, a 2×2 matrix is indexed like this: 0 1 2 3 We define a family of fractal-like patterns F(L), where L is a length-n list of these indices and F(L) has size 2n-...
18
votes
5answers
1k views

Average an image

Here is an image: %%%%%%%%%%%%% % Hello, % % world! % %%%%%%%%%%%%% But it is too confusing for our undersized brains to compute. So we average it like this: Split it into 2 x 2 sections. ...
42
votes
10answers
4k views

De-Snakify a String

A regular string looks like this: Hello,IAmAStringSnake! And a string snake looks something like this: Hel l rin o,IAmASt g S !ekan Your Task String snakes ...
6
votes
7answers
287 views

Create your own Gym Exercise and follow along irl

Let's do an exercise together, shall we? Simply follow the movements of the stickman. What stickman you ask? The one we are about to create! Make a program that allows for a string-input only ...
35
votes
9answers
3k views

Snakify a String

A snakified string looks like this: T AnE eOf ifi ing h s x l A k e r isI amp Sna dSt Your Task Take a string s and a size n, then output the snakified string. The inputs ...
24
votes
3answers
582 views

Clean the muddy quartata-fish

This challenge is in honor of the Rookie of the Year category winners of Best of PPCG 2015: muddyfish (for I'm not the language you're looking for!) and quartata (for Implement a Truth-Machine). ...
15
votes
3answers
297 views

Go to opposite corner of rectangle in all directions - Harder

This is essentially the same thing as this question, except harder. You are again to write a program that gets from the lower-left corner of a rectangle to the upper-right corner. However, this time ...
13
votes
13answers
672 views

Optimal solution to go to opposite corner of a rectangle

Your job is to write a program that finds the optimal number of moves it takes to get from the lower-left corner of a rectangle to the upper-right corner directly opposite. Your program will accept ...
14
votes
7answers
780 views

Turn a string into a windmill

The code on this site is rapidly being depleted. We need to invest in renewable strings. So you must write a program that takes a string and converts it into a windmill. The Challenge Let's take a ...
10
votes
4answers
405 views

Code a code page

Introduction A code page maps integer values to a specific character. We can visualize a code page like this: +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | | 0 | 1 | 2 | ...
32
votes
7answers
2k views

A Tiny Explorer

You are an explorer, mapping an unknown world. Your ship is carried on the wind. Where it goes, who knows? Each day, in your spyglass, you see features to the north, south, east and west. You always ...
16
votes
11answers
683 views

Create an ABACABA city

Here is the 3rd ABACABA city: _ A|_| B|__| A|_|_ C|___| A|_| B|__| A|_| It is made out of the ABACABA sequence, which is basically: A (1st iteration) place B - AB repeat A - ABA (2nd iteration) ...
6
votes
1answer
231 views

Print out a shape in printable ASCII art based on a specific number of sides provided by the user

The Challenge: Just as the title says, your challenge is to use the printable ASCII characters to create a program that prints out a random polygon in the terminal based on the number of sides, n ...
6
votes
16answers
379 views

Draw an ASCII art phone keypad

Draw the following in the fewest bytes possible: ------------------------- | | ABC | DEF | | 1 | 2 | 3 | ------------------------- | GHI | JKL | MNO | | 4 | 5 | ...