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

9
votes
2answers
411 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 ...
9
votes
22answers
836 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
588 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
87 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 ...
26
votes
5answers
925 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 ...
7
votes
8answers
651 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
120 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 ...
16
votes
34answers
3k 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
437 views

Convert this character based table into html one

Take a following character table: ------------------------------------------------------- | |1233456 | abc | xyz | | | ...
32
votes
8answers
2k 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 ...
14
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, ...
5
votes
2answers
430 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 ...
8
votes
1answer
668 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 ...
22
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
654 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
326 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
2k 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 ...
4
votes
5answers
406 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)) ...
11
votes
15answers
3k views

Say “Hello” to the world in ASCII art

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