Questions tagged [printable-ascii]

Challenges relating to the 95 printable ASCII characters (space to ~). Tabs and newlines may be included as well, depending on the challenge.

Filter by
Sorted by
Tagged with
12 votes
5 answers
1k views

Implement a typeface based on a 3x3 bitmap matrix

Input A single-character string containing an uppercase or a lowercase letter from the English alphabet. Alternatively, you may handle only uppercase or only lowercase letters as input. Output This ...
enzo's user avatar
  • 2,083
16 votes
7 answers
2k views

Output a Latin square with a program which is a Latin square

A Latin square of order n is text which is arranged as a square of n lines by n columns, contains n different characters, and each character appears once in each line and column. For example, here is ...
anatolyg's user avatar
  • 13.6k
8 votes
4 answers
426 views

Number-only switch

Write a function that takes an ASCII-printable-only (all charcodes ∈ [32..126]) string input x and provides an ASCII-printable-only output string ...
l4m2's user avatar
  • 23.9k
31 votes
81 answers
4k views

Print the ASCII Code page

Goal You have to print the ASCII printable characters' code page (0x20-0x7E). The output should look like this: ...
loggeek's user avatar
  • 503
-2 votes
1 answer
785 views

Draw Lines in ASCII [closed]

Challenge Draw lines in ASCII corresponding to given inputs: in the first line there are given size of rows and columns of the view and number of separators between each point in the second line is ...
jixperson's user avatar
  • 195
20 votes
25 answers
4k views

Draw an ASCII Grid

(Based on this closed challenge, related) Given an integer n > 1, draw a grid composed of the characters: "-" "+" and "|". However, since I want the grid to look nice, ...
Underslash's user avatar
  • 1,729
16 votes
12 answers
1k views

Quines that print what their index is

We all know what a quine is. A quine is a program which prints its own source code. And we also know about the printable ASCII characters. Well... this challenge mixes both. Your mission, should you ...
AndrewTheCodegolfer's user avatar
17 votes
11 answers
694 views

Smaller Strings in Printable ASCII base

Task Given a input string s which contains only printable ascii characters output all strings which contain only printable ascii characters and are strictly ...
Mukundan314's user avatar
  • 10.6k
29 votes
31 answers
6k views

When I grow up I want to be ASCII

Task Your task is to take a character in: AÁÀÃÂBCÇDEÉÊFGHIÍJKLMNOÕÓÔPQRSTUÚVWXYZaáàãâbcçdeéêfghiíjklmnoõóôpqrstuúvwxyz and turn it into a characters in: ...
RGS's user avatar
  • 14.1k
1 vote
0 answers
65 views

Print the twelve days of Christmas [duplicate]

The goal is simple, print out each day of the twelve days of Christmas, the text should match this exactly ...
Hippolippo's user avatar
-9 votes
3 answers
807 views

No-alphanumeric code exec

Introduction In most interpreted languages, there is an operation that will run code generated at runtime. It generally requires alphanumeric characters to refer to this operation. Write a program, ...
lahwran's user avatar
  • 83
27 votes
2 answers
834 views

Jolly gerrymandering

Background The United States has a unique love of gerrymandering––the deliberate manipulation of an electoral district to predict certain voting results. Just recently there was a gerrymandering case ...
Daniel's user avatar
  • 6,719
9 votes
32 answers
2k views

Square and square [closed]

Squares looks symmetric, and so are the required codes. Objective: Write a program whose source code is a solid square (N lines with N printable, non-whitespace characters each line) and prints a ...
iBug's user avatar
  • 2,691
17 votes
16 answers
2k views

Take the square root of a string

Motivation In this challenge your task was to multiply two strings, this naturally introduces a way to take the square root of a string. How does it work? Given a string (for example ...
ბიმო's user avatar
  • 16.8k
30 votes
37 answers
2k views

Element-wise string multiplication

Inspired by this challenge (thanks @cairdcoinheringaahing for the title!), your task is to take two printable ASCII strings and multiply them element-wise with the following rules. How does it work? ...
ბიმო's user avatar
  • 16.8k
5 votes
1 answer
327 views

ASCII Reverse Quine

Okay, so everyone is familiar with the ASCII-table, correct? I'd hope so. I've been going to that site for my asciitable reference for as long as I can remember needing one. We'll be doing some fun ...
Magic Octopus Urn's user avatar
36 votes
19 answers
2k views

Map inputted ASCII characters

Be sure to see the other challenge, Reverse ASCII character map! The ASCII charset (American Standard Code for Information Interchange) is the most widely-used character encoding standard. ASCII ...
MD XF's user avatar
  • 13.9k
27 votes
7 answers
3k views

Make a flag wave

Take a flag, like this one: ...
Artyer's user avatar
  • 1,925
25 votes
42 answers
2k views

Answer-Chaining Fibonacci

(Inspired by ASCII's 95 Characters...95 Movie Quotes) The Challenge Given input n, output the nth Fibonacci number. You can ...
AdmBorkBork's user avatar
  • 43.4k
16 votes
20 answers
3k views

Visualize nested array

You will be given a nested array. Your program has to visualize the array. But.. How? For example, let's assume we have a nested array, like ...
Matthew Roh's user avatar
  • 5,347
36 votes
5 answers
1k views

Letter, Number, Symbol, Space, Repeat

There are 97 ASCII characters that people encounter on a regular basis. They fall into four categories: Letters (52 total) ...
Calvin's Hobbies's user avatar
32 votes
14 answers
1k views

Walk the words!

It is in my humble opinion that standard text is boring. Therefore I propose a new writing standard, walking words! Walking words Walking words are words which will respond to certain characters. ...
Bassdrop Cumberwubwubwub's user avatar
59 votes
60 answers
13k views

Print every printable ASCII character without using it

In a programming language of your choice, write 95 programs, each of which outputs a different one of the 95 printable ASCII characters without that character occurring anywhere in the program. For ...
Calvin's Hobbies's user avatar
15 votes
3 answers
3k views

Write a program that always prints N when it is shifted N times up the ASCII alphabet

Write a program using only printable ASCII characters that takes no input. For reference, here are the 95 printable ASCII characters in order: ...
Calvin's Hobbies's user avatar
0 votes
6 answers
246 views

Write a program to fabricate elaborate acronyms [duplicate]

"Hey Bob, I need a new acronym. Something better than 'Automated Support System'. I need you to fabricate me an acronym!" "Sure thing Joe! I'd love to fabricate an elaborate way to renovate, and not ...
Mason Watmough's user avatar
20 votes
18 answers
3k views

Molding ASCII art

You are given a single printable ASCII string containing no newlines, and a multiline "mold", containing spaces (), and hashes (#...
orlp's user avatar
  • 39.1k
23 votes
12 answers
2k views

The Complement Cat

Objective Write a full program that outputs (to STDOUT or closest alternative) an arbitrary string of text, no more than 64 characters long. Simple enough, right? Well, here's the catch: You may not ...
Conor O'Brien's user avatar
24 votes
14 answers
2k views

ASCII Character Jumble

Write a program that takes as its input a string consisting of printable characters (ASCII 20-7E) and an integer n in [2,16] and performs the following modification ...
Arcturus's user avatar
  • 7,387
18 votes
4 answers
1k views

Print a Symbolic Negative of your Code

(This is a variation on Print a Negative of your Code, which I enjoyed a lot! Thanks to Martin Büttner♦ - almost all of this text is his.) Let's consider the symbols to be the following printable ...
Luke's user avatar
  • 5,391
16 votes
16 answers
2k views

Numbers for Letters

There exists a very simple cipher that replaces a letter with it's position in the alphabet. For example, abc would become 1 2 3 ...
Zach Gates's user avatar
  • 6,690
37 votes
24 answers
4k views

Remapping ASCII

Challenge Write a program that reorders the ASCII characters! It should output a single string containing all of the printable ASCII characters exactly once. The first character of this string is ...
jrich's user avatar
  • 4,146
5 votes
0 answers
233 views

Build an ASCII Hotel [closed]

Every 3 seconds, add a room to the house. A house with one room looks like this: |---| |[=]| |---| Two rooms: ...
Lucien's user avatar
  • 159
33 votes
4 answers
691 views

Splitting up ASCII

Given the 95 printable characters in ASCII plus newline, break it apart into two equal, 48 character groups (hereafter called group A and group B). Create a one-to-one mapping of your choice (you have ...
durron597's user avatar
  • 4,820
42 votes
8 answers
6k views

40 Numbers in 9 Bytes

There are 40 ways a directed Hamiltonian path can be arranged on a 3×3 grid: This graphic (thanks Sp3000!) shows only the 20 undirected paths. Traverse each colored line in both directions for the 40 ...
Calvin's Hobbies's user avatar
6 votes
5 answers
610 views

Print Input Sideways

Your program must take an alpha/numeric input string and print it sideways (rotated 90 degrees clockwise). So for example, HI, would become: ##### # ##### ##### ...
Kody King's user avatar
32 votes
8 answers
4k views

Write A Program That Outputs Its Mirror Level

There are 95 printable ASCII characters: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ In the ...
Calvin's Hobbies's user avatar
15 votes
6 answers
820 views

Print strings without sharing characters

Edit: Allowed to reuse whitespaces. Your task is to write n programs (or functions, or bodies of functions without using parameters or the function names) in the same language. The kth program ...
jimmy23013's user avatar
23 votes
2 answers
515 views

Connecting letters

You should write a program or function which receives a block of chars represented as a string and outputs or returns a similar string in which the letters adjacent in the alphabet are connected. A ...
randomra's user avatar
  • 20.9k
27 votes
19 answers
7k views

Shortest Sorted Hello World

Write a program that takes no input and prints Hello, World! to stdout or your language's closest alternative. The catch is that each line in your program must only ...
Calvin's Hobbies's user avatar
14 votes
1 answer
331 views

Finding Symmetries in Squares

Write a program or function that takes in a list of positive integers. Each of these integers represents the side length of a square on a 2D plane. Each square can be moved to any integer coordinates ...
Calvin's Hobbies's user avatar
10 votes
2 answers
900 views

Finding Programs in the Primes

Let's assign the numbers 0 through 94 to the 95 printable ASCII characters: ...
Calvin's Hobbies's user avatar
21 votes
12 answers
2k views

Reading Code in 8 Ways to Output 8 Numbers

The English language and most programming languages are written and read from left-to-right, top-to-bottom, but that needn't be the case. In fact for the block of text ...
Calvin's Hobbies's user avatar
5 votes
6 answers
529 views

How many contiguous "strings" can you find in a set of strings?

Consider the set of 16-character strings containing only the 95 printable ASCII characters. There are 9516 ≈ 4.4×1031 such strings. Imagine these strings are put into a list and sorted ...
Calvin's Hobbies's user avatar
12 votes
8 answers
1k views

User Scored Code Golf - Drawing Diamonds [experimental]

This challenge will behave more or less like a traditional code-golf. The only difference is that instead of scoring answers by their number of characters or bytes, users will assign weights to ...
Calvin's Hobbies's user avatar
13 votes
1 answer
845 views

Code a Code Slidey Puzzle!

The most recognizable sliding puzzle is the fifteen puzzle. It has a 4 by 4 grid, 15 tiles, and one empty grid space. The tiles can only move into the empty space and must always be in line with the ...
Calvin's Hobbies's user avatar
32 votes
12 answers
3k views

Say Hello to the Pioneers of Computer Science

Choose your favorite famous computer scientist or computer science pioneer who was born in 1942 or earlier (as 1943 marks the start of the creation of the 'first' computer). They should have a ...
Calvin's Hobbies's user avatar
3 votes
7 answers
644 views

Leave your mark!

In this challenge, you'll need to edit a grid of characters to make a program that does a task, while ensuring that you leave a lasting mark on the grid. Task The task to perform is determined by when ...
Ypnypn's user avatar
  • 10.9k
25 votes
7 answers
3k views

Onion Programming

Using only printable ASCII (hex codes 20 to 7E), write a square N×N core program without comments that is surrounded by 4 more layers, creating a (N+8)×(N+8) square program (N > 0). For N = 3 the ...
Calvin's Hobbies's user avatar
124 votes
95 answers
23k views

ASCII's 95 Characters...95 Movie Quotes

Update: The winner has been decided, but the challenge is not over! Finally, nearly 3 months after the question first started, someone has remained the last answerer for more than a week! ...
Calvin's Hobbies's user avatar
19 votes
3 answers
1k views

Choose-Your-Own-Language Code

Let's take a grid of 16x16 printable ASCII characters (code points 0x20 to 0x7E). There are 30-choose-15 paths from the top left to the bottom right corner, making only orthogonal moves, like the ...
Martin Ender's user avatar