The solution must use only printable ASCII characters, in specific, 32(space)-126(~), tab, and newline characters (CR and LF).

learn more… | top users | synonyms

22
votes
15answers
3k views

Jumblers vs Rebuilders: Coding with Tetris Bricks

In traditional Tetris, there are 7 distinct tetromino bricks, each denoted by a letter similar to its shape. # # # # # ## # # ### ## ## # ## ## ## # ## ## I O ...
13
votes
3answers
907 views

Write a square program that outputs the number of times it has been “unrolled”

Consider a square block of text, N characters wide by N tall, for some odd integer N greater than 1. As an example let N = 5 and the text be: MLKJI NWVUH OXYTG PQRSF ABCDE Notice that this is the ...
13
votes
7answers
2k views

Hello world with a twist

Your goal: to write a piece of code that will result in the classic result of "Hello, world!" being printed to STDOUT or equivalent. Rules: Code must be entirely in printing ASCII. All code must be ...
10
votes
2answers
921 views

Regex in reverse - decompose regular expressions

The Problem I have a bunch of regular expressions that I need to use in some code, but I'm using a programming language that doesn't support regex! Luckily, I know that the test string will have a ...
10
votes
24answers
1k views

Print a string with vertical words

Your task is to take an input string of ascii characters and output the string as a series of vertical words separated by spaces. An example is shown below: Given the string: Hello, World! My name ...
5
votes
7answers
617 views

Print the time in a digital watch [duplicate]

Write a program that prints the current time in a digital watch. Rules: The program must use the local timezone. Time is expressed between 00:00 to 23:59 (with only hours and minutes). The program ...
-5
votes
1answer
95 views

Groundhog Day Open [closed]

Its for Groundhogs day (No, not the movie with Bill Murray), lets celebrate with this challenge! The Objective: Create a program that echoes If I see my shadow, there will be another six weeks of ...
27
votes
5answers
1k views

One Line Aquarium

My parents-in-law have a fishpond in their yard, filled with koi. It didn't really cross my mind until I noticed the following extract from my code. ',') & '_' ... I had fish-faces looking back ...
8
votes
8answers
707 views

Missy Elliot, XKCD and ASCII Bytes

Inspired by the following XKCD comic: In Missy Elliot's "Work It", part of the chorus goes as follows: Is it worth it, let me work it I put my thing down, flip it and reverse it Bearing that in ...
0
votes
2answers
146 views

ROT13 one ASCII character [duplicate]

This kind of question has been asked before, but I wanted to make it more specific. The linked question asks to read from stdin and rot13 the input. I don't want the disadvantage of I/O code that ...
17
votes
36answers
5k views

Converting a string to lower-case (without built-in to-lower functions!)

The goal of this code-golf is to create a code that lets the user input an ASCII string (contains only printable ASCII characters), and your program outputs the lower-case variant of this string. ...
6
votes
4answers
459 views

Convert this character based table into html one

Take a following character table: ------------------------------------------------------- | |1233456 | abc | xyz | | | ...
52
votes
9answers
3k views

Encode Images into Tweets (Extreme Image Compression Edition)

Based on the very successful Twitter image encoding challenge at Stack Overflow. If an image is worth 1000 words, how much of an image can you fit in 114.97 bytes? I challenge you to come up with a ...
15
votes
21answers
2k views

Write a program that uses all printable non-alphanumeric ASCII symbols

In particular, use each of these symbols at least once in your source code: ! " # $ % & ' () * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~ Symbols inside comments, string literals, ...
7
votes
2answers
560 views

Code Golf: What is the spaceship's fate? [floating point version]

This question is slightly harder than the ASCII art version. There is no art, and now you get to do some floating point arithmetic! The Challenge The U.S.S. StackExchange was traveling through the ...
11
votes
1answer
913 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 ...
23
votes
7answers
2k 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 ...
13
votes
2answers
806 views

Code golf: Solve a Knights and Knaves logic problem by parsing English

Background There are two people, Bill and John. One of them is a knight, which always tells the truth, and the other is a knave, which always tells a lie. You don't know who is the knight and who is ...
8
votes
6answers
356 views

Print the sizes of intervals inside of a piece of music

Background In Western music, every single music note has an assigned name. Within each octave, there are twelve unique notes in the following order: "C C#/Db D D#/Eb E F F#/Gb G G#/Ab A A#/Bb B C", ...
10
votes
11answers
3k views

create an ascii progress bar

well, it's something similar to this question but with a little differences. you have to write a program to ask for width of progress bar and how much work is done. and then draw a progress bar with ...
5
votes
5answers
450 views

An Old Irish Blessing, reasked (without using encodings)

How much can you golf a program to print "An Old Irish Blessing" without using unprintable ASCII characters? That restricts us to ASCII characters 32-126 (better still, 32,65-90,97-122 and 13(CR)) ...
13
votes
16answers
3k views

Say “Hello” to the world in ASCII art

Challenge: Produce the following output using as few chars as possible: _ _ _ _ _ _ _ | | | | ___| | | ___ __ _____ _ __| | __| | | | |_| |/ _ \ | |/ ...