Questions tagged [ascii-art]

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.

Filter by
Sorted by
Tagged with
-4 votes
0 answers
47 views

How to generate drawing exchange format file dxf [closed]

I am trying to find a book or reference about how to write dxf file and what is the structure of file format, such as draw a line, arc, path..and so on. Any suggestions??
17 votes
11 answers
3k views

Fibonacci word fractal

The Fibonacci word is a sequence of binary strings defined as: \$F_0 = \$ 0 \$F_1 = \$ 01 \$F_n = F_{n-1} F_{n-2}\$ The first ...
  • 37.6k
31 votes
29 answers
5k views

A challenge for rookies

Print or return the following string: ...
  • 13.1k
15 votes
7 answers
711 views

A better Hexagony template

We once made a Hexagony template without actually knowing it. But after a bit of experience with Hexagony, it becomes apparent that it is not enough; sometimes the source code is too short for the ...
  • 66.2k
17 votes
14 answers
2k views

Count the cells

Given a multi-line string as input containing characters "|", "_" and ...
  • 36.8k
18 votes
6 answers
810 views

Draw this fractal generated by applying Newton's method to cosh(x) - 1

I came across this picture the other day: (Credit to Josep M Batlle I Ferrer) Your job is to generate this picture. This graph is generated by repeatedly applying newton's method to the graph of: $$f(...
  • 2,961
10 votes
7 answers
445 views

Collect data on mushroom forests

In these previous challenges[1][2] I've been dealing with "mushroom forests". To help with these I draw little diagrams of the forests to help. In this challenge we are going to reverse ...
  • 90.5k
16 votes
8 answers
2k views

Scribble Pad for Nerds

aka. implement an easier version of 05ab1e's canvas element. Description The canvas element is used to draw ASCII lines on the screen. The (easier version of the) canvas element takes a list of ...
  • 5,141
15 votes
21 answers
2k views

Apartment Building

Draw an "apartment" building according to the specifications below. Basic Rules Take, as input, the number of floors of the building. Return a building with that many floors meeting the ...
  • 1,316
19 votes
7 answers
2k views

Matrix Meets ASCII Art

A binary matrix represents a shape in the plane. 1 means a unit square at that position. 0 means nothing. The background is 0. For example, the array ...
21 votes
8 answers
3k views

ASCII-Art n'th Root

Challenge: Given two integers \$a\$ and \$b\$, with lengths \$A=length(a), B=length(b)\$, output an ASCII-art of the \$a^{th}\$ root of \$b\$, including the answer rounded to \$A\$ amount of decimal ...
4 votes
3 answers
269 views

Plot Slope Fields Given Differential Equation

Slope fields or direction fields, are a graphical representation of the solutions to a first-order differential equation of a scalar function. A slope field shows the slope of a differential equation ...
  • 449
4 votes
0 answers
236 views

Convert To Shorthand Part 2

Part 1 of the challenge revolved around converting the letters into specific unicode characters. Lore In this part we receive the output from the function made in Part 1, which now has to be arranged ...
  • 449
8 votes
1 answer
298 views

Generate all polyiamonds

A polyiamond of size \$n\$ is a contiguous shape formed by joining \$n\$ equilateral triangles side by side. Your output should consist of two distinct characters, plus whitespace as necessary (▲ and ▼...
  • 2,015
12 votes
9 answers
512 views

Draw an ASCII envelope based on size input

You want to send an ASCII letter to someone, but you need an envelope to put it in. Your task is to output an envelope given a size as input. Rules: Given positive integer input ...
6 votes
15 answers
925 views

Spaceship shooter

Your task is to output a spaceship of size n with shooters/guns and n bullets of character - ...
  • 3,209
12 votes
14 answers
2k views

Sandbox overflow

Your task is to output a square sandbox of size n+2 with / characters in the corners and | ...
  • 3,209
25 votes
34 answers
5k views

Negative of an ASCII photo

Task Given an \$m\times n\$ binary ascii "photo", return the negative of the photo Example: ...
  • 1,201
12 votes
26 answers
1k views

Circular chained compound

Task Given a positive integer n, output the joined compound of circles The circles are of square of size n+2 but removing the ...
  • 3,209
14 votes
16 answers
1k views

Building spikes

Inspired by this building (United States Air Force Academy Cadet Chapel, Colorado) Your task is simple, given a positive integer n, output the spiked building to ...
  • 3,209
12 votes
7 answers
667 views

S̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶ the Word Search List

Introduction: Every workday I read the newspaper in the morning while eating breakfast, and also do some of the puzzles at the back. When I do the word-search puzzles, I (almost) always go over the ...
21 votes
1 answer
550 views

Can you draw this in one stroke?

Related | Related Given an ASCII art with |, _, and , check if you can draw the art in one ...
  • 5,141
8 votes
8 answers
384 views

Ascii Fibonacci spiral

Let's continue the fibonacci based challenges stream, here's the next one: Task Draw a Fibonacci spiral ascii-art of n segments where starting from the first term: each nth segment has a length of ...
  • 9,956
10 votes
1 answer
362 views

Page Selector⠀⠀⠀⠀⠀

I'm making a page selector for my super cool terminal-based blog program. In order for it to fit correctly into the design, it has to have some constraints. The page selector can only display a ...
  • 3,560
19 votes
21 answers
2k views

Fibonacci triangle

Given an integer n, output the following ASCII art to n rows: 1+1=2 1+2=3 2+3=5 3+5=8 5+8=13 Essentially, the first row is ...
6 votes
6 answers
589 views

Crate art stacking

Your task is, given a array of numbers, that is strictly increasing, output the crate stack. The input is an array of positive integers which represents which layer has how many crates there are. So ...
  • 3,209
18 votes
29 answers
2k views

Draw a battery indicator

Given the battery level L in the range 0-5, your code should draw the following ASCII art. When ...
  • 1,805
12 votes
17 answers
1k views

Draw a Signal strength indicator

Given the signal level L in the range 0-4. Your program should draw the following ASCII art. When ...
  • 1,805
14 votes
12 answers
2k views

Draw an ASCII Volume

Given a volume level V in the range 1-10. Your program should draw the following ASCII art. When ...
  • 1,805
3 votes
4 answers
417 views

ASCII Brainfuck

Given a random code written using Brainfuck commands. You program should translate that code into the following ascii art: each Brainfuck command represents as 5x9 ...
  • 1,805
14 votes
7 answers
599 views

Disassemble tables

Given a string that represents a bunch of tables stacked on top of each other and/or arranged side-by-side, disassemble all the tables. Tables A table looks like this: ...
  • 2,869
23 votes
16 answers
3k views

Draw an ASCII pencil

Task is pretty simple. Your program should take a number N from 1 to 20 and draw the ...
  • 1,805
21 votes
10 answers
1k views

Pretty print my arrays

I like to pretty print multidimensional arrays, like this: [ [ [1, 2, 3], [4, 5, 6] ], [ [7, 8, 9], [6, 4, 2] ] ] But it's a pain to do by hand and it'd ...
5 votes
6 answers
2k views

Real-world progress bar

Backstory, skip if you like Generating high quality pseudo random numbers is a tricky business but the fine engineers at < enter company you love to hate > have mastered it. Their progress bars ...
  • 9,418
16 votes
19 answers
1k views

Triangle Tripler

Simpler version of this Task You must create a program that outputs a triangle of a given size N. A triangle is made of 3 identical triangles A triangle of size N should be made of N lines A triangle'...
  • 3,209
11 votes
4 answers
620 views

Trap the hero in a maze

You are an evil wizard, doing evil wizard business, when suddenly your crystal ball alerts you of a hero on their way to defeat you. To crush their hopes and dreams, you decide to trap the hero in a ...
  • 6,775
15 votes
1 answer
264 views

Shanghai ascii game sticks

Remove one stick and output the stack updated. Description You can remove only sticks on top( completely drawn). You can assume: there are 5 sticks on the table. there's one and only one stick you ...
  • 9,956
9 votes
1 answer
187 views

Is this continuous terrain? Part II

Caves and Cliffs edition Part 1, Very related You're given a piece of ASCII art representing a piece of land, like so: ...
17 votes
14 answers
867 views

Replicate "dotnet ef" unicorn

.Net Technology is an incredible framework with marvellous functionalities, and among all of them, the most important one obviously stands out: Yep, your simple task is create a program that when it ...
10 votes
7 answers
300 views

Cell Evolution Matrix

Your lab needed to simulate how a particular cell evolves over time in a 2D grid space. A sample 2D grid space below shows a single cell at the centre of the grid. ...
  • 3,209
5 votes
6 answers
644 views

Shrink ASCII art

The inverse of this question. Your challenge is to, given a piece of ASCII art generated by the above question and its enlargement factor, shrink it down to its original size. The enlargement process ...
13 votes
13 answers
2k views

Mat Printing Matrix

A manufacturing company wants to print a design on mats of varying dimensions, and they hired you to program a robot to make these mats. The design consists of alternating rings of any 2 symbols on a ...
  • 3,209
31 votes
12 answers
2k views

Golf Conway's Primordial Still-Life

Background Note: This configuration was co-found by one of our fellow code golf enthusiasts, Zgarb A 29 year old conjecture by John Conway about the Game of Life was recently solved. To quote Conway ...
  • 29k
15 votes
4 answers
325 views

Sides of a polygon

Given an ASCII-art shape made of the characters /\|_, your challenge is to return the number of sides it has. A side is a straight line of one of those, for example:...
-3 votes
5 answers
187 views

Rotate a grid 90 degrees clockwise

The task is simple, given an integer n of how many lines the next n lines is and, a multi-line input, output the resulting 90 ...
  • 3,209
17 votes
6 answers
1k views

Is this continuous terrain?

Very related You're given a piece of ASCII art representing a piece of land, like so: /‾\ __/ ‾\_ \_/‾\ \ Since an overline (...
11 votes
11 answers
2k views

Mr. ASCII becoming uncanny with your own code

Let's make a little stupid program that simulates the meme "Mr. incredible becoming uncanny", but in this case, our little ASCII friend is going to react to our code length. Objective: ...
19 votes
8 answers
451 views

Fill the (possibly leaky) bowl

Challenge: Given an ASCII art of a (possibly leaky) bowl consisting of a random distinct non-whitespace and non-~ character, fill it completely with ...
0 votes
0 answers
46 views

Recreating the classic C64 truchet pattern [duplicate]

On the C64 you can create a randomized labyrinth with this program: 10 PRINT CHR$(205.5+RND(1)); : GOTO 10 This will produce something like this In PowerShell one ...
15 votes
7 answers
573 views

Double the diagonal squares

Given a positive integer N, output this doubling pattern of slash squares/rectangles. For N=1, the base is: ...

1
2 3 4 5
24