This challenge involves creating pictures using text characters as the brush. Typically this uses only standard ASCII characters.
5
votes
3answers
324 views
ASCII-visualize a graph
Your mission, should you choose to accept it, is to input a series of point pairs that form a graph, like this:
A,B C,A B,A A,D A,E F,G C,G
You must then output an ASCII visualization of the ...
10
votes
5answers
362 views
“Cowsay” in short
Simulate cowsay in the default mode.
$ cowsay <<< Hello
_______
< Hello >
-------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
...
4
votes
4answers
334 views
Build an analog clock
Write a program which displays the current system time as an analog clock, using ASCII graphics. The clock must show at least the hour and minute pointers, and must have enough resolution of at least ...
7
votes
7answers
757 views
Write ASCII-Art Obfuscated Code, read as, and resulting in: “DFTBA”
The challenge is to write the most elaborate code, embedded in ASCII art that reads and prints "DFTBA". For example, the following reads DFTBA:
oooooooooo. oooooooooooo ooooooooooooo oooooooooo. ...
8
votes
5answers
372 views
Visualise long multiplication with ASCII art
The challenge
Write a program that takes two integers from standard input, separated by a comma, and then prints a visualisation of long multiplication of those two integers to standard output.
Eg:
...
13
votes
4answers
801 views
Star programming!
The challenge
Write a program or function that prints stars! The program will receive two parameters by standar input: Size of the star and number of points of the star. A star can be any size ...
10
votes
4answers
373 views
Draw a tiled cube of any size
Draw a tiled cube of any size, in ASCII art.
You will be given three numbers a, b and c, and the program should output an a*b*c sized cube.
Examples
3 3 3 ->
____ ____ ____
/____/____/____/|
...
13
votes
10answers
2k views
Output a number in PrettyFont
I've designed a new font which I call PrettyFont. I've put much much time into perfecting it, but since I'm a working man I don't have time to finish it. Therefore it only contains 4 characters right ...
7
votes
6answers
446 views
Generate ASCII wilderness map
Generate an ASCII wilderness map.
Example output:
................^^^^
..................^^
...^^^^........o....
.....^^^^...........
....................
........o....TT.....
..TTTT..............
...
7
votes
12answers
611 views
ASCII Ball in Box Animation
Write a program that displays a moving ASCII ball * inside a rectangle (20 by 10 chars including border). The ball must not cross the rectangle, e.g. bump off when it hits the wall. The scene must be ...
6
votes
1answer
387 views
Code Golf: What is the spaceship's fate? [ASCII art version]
Background
In a galaxy (and possibly a universe) far, far away... there was a spaceship and a bunch of planets. A malfunction on board caused the spaceship to run out of fuel. It is now moving at a ...
17
votes
7answers
1k views
Anti-aliasing ASCII art
Background
ASCII art is the practice of creating images by using ASCII text to form shapes.
Aliasing is the effect created by the large "pixels" of ASCII art, which are the size of characters. The ...
10
votes
14answers
635 views
Scrolling Marquee
Following my entry to the Obfuscated Hello World I thought it might be fun to share the underlying code. But why just show the code, lets make it a golf too!
Challenge
Write a script that scrolls a ...
13
votes
5answers
561 views
Rotate an ASCII art image
Out of all of the ASCII characters, it is easy to tell that some of them form groups that are rotations of the same basic character. For example, V > ^ <. This allows the possibility to ...
7
votes
7answers
585 views
ASCII ruler generation
The challenge is to generate an ASCII character count ruler in the following format:
+-------------------------------------------------------------------------+
|| | | | | | | | ...
8
votes
9answers
772 views
Print a Cantor Set
The Challenge
Build a N-Leveled Cantor Set.
The Cantor ternary set is created by repeatedly deleting the open
middle thirds of a set of line segments.
The program receives one parameter N (a ...
9
votes
2answers
501 views
ASCII art 3D StreetView
Input:
You get a series of integers (fed via stdin or prompt).
Every pair of integers in this series represents a building's
WIDTH [valid range: 1..10] and HEIGHT [valid range: 0..10]
Assume input ...
5
votes
8answers
1k views
ASCII Tux (Linux Penguin)
I once hacked upstart on my Ubuntu box so that a colored, themeable ASCII Tux displayed on the screen with the boot messages scrolling beneath him. I'm curious to see what kind of ASCII art Linux ...
8
votes
9answers
1k views
Say “Hello” to the world in ASCII art
Challenge: Produce the following output using as few chars as possible:
_ _ _ _ _ _ _
| | | | ___| | | ___ __ _____ _ __| | __| | |
| |_| |/ _ \ | |/ ...
15
votes
4answers
669 views
ASCII animated snow scene
Write the shortest program to turn any piece of ASCII art into an animated snow scene that begins to form from the falling snow (non-golfed JavaScript example last updated 2011-12-19).
Input ...
20
votes
57answers
4k views
Print a Christmas Tree
The Challenge
Print a nice Christmas tree with it's own star at the top using the shortest code possible. The tree star is an asterisk (*) and the tree body is made out of 0 The tree must be 10 rows ...
7
votes
3answers
444 views
Implement a Graphing Calculator
There have been many questions involving calculators; however, it does not appear that any involve implementing a graphing calculator.
The Challenge
You are to write a complete program that takes ...
6
votes
2answers
612 views
Illuminate a Mirrored Room
Goal
In this competition, you are given a random room with one candle inside. The goal is to write the shortest program (this is golf) that determines what parts of the room are illuminated by the ...
19
votes
2answers
837 views
Plant a tree and watch it grow
The trees we are growing have some rules that define how they grow:
Growth Rules:
Trees consist only of branches.
Branches are made up of a combination of the following symbols: _, \, |, /, & ...
6
votes
7answers
684 views
Flag Semaphore Encoder
Your goal is to write a flag semaphore encoder, which will convert a given sentence into the corresponding flag semaphore characters, according to the semaphore system described on Wikipedia.
Assume ...
5
votes
2answers
643 views
Generating BF-code with single purpose
I'd like to see you create code (in any programming language) that output working BF (Brain***k) code. Your program have a single character input on stdin. The input should be one digit ("0", "1", ...
10
votes
5answers
649 views
Musical Score Interpreter
Given an ascii musical score, you must be able to output the note and its corresponding length. The score will contain between 5 and 15 notes inclusive, and is transcribed on a stave. A stave is ...
22
votes
6answers
2k views
Bridges and Tunnels
You are responsible for building a new freeway. However, it leads through
mountainous lands and therefore needs numerous bridges and tunnels. The
freeway itself should stay at a single level.
Input
...
25
votes
1answer
787 views
Facial Recognition
The aim of this task is to identify, clean up, and mark out all the faces in any given 'image'.
What's in a face?
A face will be a ZxZ square where Z is an odd integer greater than 1. The top left ...
17
votes
18answers
1k views
Generate a mandelbrot fractal?
Your task is to draw the mandelbrot set in ascii. It should look something like
The complex number 'C' lies in the mandelbrot set, when the function z = z^2 + c remains bounded, z starts at 0.
For ...
15
votes
8answers
1k views
Generating guitar tabs?
Write the shortest program that generates guitar tabs for the chords given as input.
So that the guitarists among you don't have an advantage, and to make it deterministic (and probably easier to ...
2
votes
1answer
499 views
Pascal's Pyramid and Higher Dimensions
Pascal's Triangle is a familiar mathematical construct with many interesting properties. It is constructed by starting with a 1 on top, and generating the numbers in the next row from the sum of the ...
7
votes
9answers
671 views
Egyptian Pyramids
The Great Pyramid of Giza, the largest pyramid in Egypt, is not only the oldest of the Seven Wonders of the Ancient World, but it is also the only one to remain largely intact. The Egyptian Pyramids ...
5
votes
4answers
531 views
LED Numbers and Letters
The program must print the following block of text of LED numbers exactly.
+-----------------------------------------------------------------+
| ...
17
votes
5answers
910 views
Fill in the lakes, 2D
The one-dimensional version of this problem was pretty easy, so here's a harder 2D version.
You are given a 2D array of land heights on standard input, and you have to figure out where the lakes will ...
14
votes
30answers
2k views
Draw dice results in ASCII
Show the random result of a dice toss if done with a cube shaped die, in ASCII.
$ dice
should result in one of
-----
| |
| o |
| |
-----
-----
|o |
| |
| o|
-----
-----
|o |
| o |
| ...
8
votes
7answers
634 views
Fill in the lakes
Given the topology of land in ASCII picture format, figure out where lakes would go and fill them in. Assume an infinite amount of rain.
example
input
#
## ...
8
votes
2answers
347 views
Build a small and balanced mobile
You are given a bunch of weights, and your task is to build a small balanced mobile using those weights.
The input is a list of integer weights in the range 1 through 9, inclusive. There may be ...
34
votes
18answers
3k views
1P5: Nested boxes
This task is part of the First Periodic Premier Programming Puzzle Push.
You get a hierarchy of items in the following format:
2
Hat
1
Gloves
which need to be put in boxes, like so:
...
4
votes
4answers
471 views
Polyomino generator
Write a program that prints the shapes of one-sided polyominoes.
Given input 4 (tetrominos), a sample output would be:
* * * *
* * ** ** ** *
** ** ** * * *** ...
4
votes
1answer
459 views
Ascii art equation visualizer
Dealing with equations in the absence of a good equation editor is messy and unpleasant. For example, if I wanted to express an integral and its solution, it might look something like this:
...
4
votes
0answers
580 views
Artistic source code: Hello World [closed]
Back to basics! Create a "Hello World" program which prints, well, "Hello World". The winner this time though, is the one who gets the most interesting source code done. For instance, use obscure ...
9
votes
4answers
419 views
Help Mr Jones to enjoy his bicycle round-trip
Mr Jones wants to do a round-trip on his bicycle. He wants to visit several cities in arbitrary order, but his route must not cross it self, since he hates to be at the same place twice in his ...
11
votes
4answers
723 views
Visualize long division with ASCII art
Write a program that visualizes long division with ASCII art. Input consists of two integers, a numerator and a denominator, using the input format of your choice.
Examples:
1234 ÷ 56:
...
6
votes
11answers
812 views
Langton's ant ASCII art.
Draw the path of Langton's ant.
Description
Squares on a plane are colored variously either black or white. We arbitrarily identify one square as the "ant". The ant can travel in any of the four ...
9
votes
18answers
872 views
Uptime Progress Bar
Write a program which parses the output of uptime and generates an anatomically suggestive progress bar (as shown) with a length equal to the current uptime in days:
$ uptime
23:01 up 34 days, ...
19
votes
8answers
705 views
Draw a Suanpan abacus
Write the shortest program that takes a single integer as input and prints out a Suanpan abacus
Testcases
Input:
314159
Output:
|\======================================/|
|| (__) (__) (__) ...
6
votes
7answers
543 views
Circles of text
Find a way to make circles of a given radius using characters in a console. Please specify the font name and size. Also, please provide at least one example of the output.
For example:
Input:
3
...
4
votes
21answers
816 views
Chessboard pattern
Input:
a positive number, smaller then 80, from stdin or as a command-line argument.
Output: A square chessboard pattern, the size of the input number. The dark fields are represented by the letter ...
9
votes
3answers
579 views
ASCII art Bresenham line drawing
Write the shortest possible program that draws a Bresenham line in ASCII art. Your program should take two integers x and y (command line or stdin, your choice) and draw an ASCII line which starts in ...