Skip to main content

Questions tagged [ascii-art]

ASCII Art is a graphic design technique that uses the 93 printable/space characters of the 128-character ASCII set to create images.

Filter by
Sorted by
Tagged with
6 votes
3 answers
638 views

This question used to contain a mistake in the code, so I had to debug and reformat it. This is the correct version. Why I made it A friend and I wanted to make a lightweight browser, since our ...
Chip01's user avatar
  • 687
1 vote
2 answers
121 views

Note that this is the original version which has not been formatted to comply to PEP-8 and contains an error in the code. Please visit the updated version instead to post answers, comments and/or cast ...
Chip01's user avatar
  • 687
7 votes
3 answers
806 views

Why I made it I wrote this script for one simple purpose: to Rickroll my friends. How it works This is the workflow: It fetches a .png frame from a PHP endpoint on a website I own. The frame number ...
Chip01's user avatar
  • 687
4 votes
2 answers
679 views

I already asked this question, but the script I provided was not compliant to PEP-8, so I rewrote the script for better readability. I'm making a platformer game called Uni where this small character ...
Chip01's user avatar
  • 687
6 votes
3 answers
1k views

I'm making a platformer game called Uni where this small character has to go as high as possible, in which the player constantly has to choose between jumping (W) going left or right (A-D) climbing ...
Chip01's user avatar
  • 687
5 votes
2 answers
604 views

Intro This post won't present the actual mechanics of the skip list. Instead, all I got here is the facility for converting skip lists to funky ASCII art. For example, the unit test prints: ...
coderodde's user avatar
  • 32.3k
1 vote
2 answers
113 views

A small utility to print data in an ascii table TextTable ...
Martin Frank's user avatar
  • 3,033
6 votes
1 answer
219 views

I've written a Python function that generates a smoke wisp/genie-tail shape using all 26 (and only 26) letters of the alphabet. Here are some examples of the kind of ASCII art I'm trying to produce: ...
user avatar
3 votes
1 answer
93 views

This is my code for the CS50 Mario (more comfortable). Answers can be found all over the net however I wrote this myself. I would like to refactor to its maximum potential (just for my own improvement ...
David Wyatt's user avatar
0 votes
2 answers
530 views

I created a method to print a playing field in the console, but I think there are much better ways to do this than mine. ...
user avatar
9 votes
1 answer
2k views

I made a python script that takes an image and converts it into an ASCII-art representation and saves it as a .txt file. The logic is somewhat simple. It resizes the image to a manageable size, ...
Omar Morales Rivera's user avatar
3 votes
1 answer
150 views

I've recently tried to write my functions by using composition. But this one, renderCross' is especially difficult to convert fully. How would I write this ...
ola_bandola's user avatar
5 votes
1 answer
1k views

The goal of the project is to take in input for a data, perhaps in the future as a csv, then print it out using UNICODE box-drawing characters. The main function ...
Saphereye's user avatar
  • 233
3 votes
2 answers
210 views

I have written alphabet rangoli code in python and would like to get it reviewed. The goal is to print concentric diamond shapes made of letters, with "a" at the center, "b" ...
Zainab Saad's user avatar
2 votes
1 answer
214 views

I am wondering if this is written well or not, I am just a beginner and would like some feedback what should I improve on. Thanks. ...
Jastcher's user avatar
1 vote
1 answer
103 views

How would you make this piece of code more simple/efficient? The problem should not be solved with one print statement, rather with functions Could you also give me any advice how I can come to your ...
coder_sw99's user avatar
1 vote
2 answers
1k views

The following code convert csv to ascii table. ...
Ahmad Ismail's user avatar
0 votes
1 answer
84 views

...
Mike Lowell's user avatar
4 votes
0 answers
65 views

I wrote this code as a reference implementation for this challenge. How can I make it more readable and/or efficient? The goal is to take an integer and create patterns like the following: ...
emanresu A's user avatar
4 votes
4 answers
937 views

I have this problem where I've to print a number pyramid by taking input from the user. 1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 5 6 7 8 9 8 7 6 5 I've ...
Manya Garg's user avatar
7 votes
3 answers
592 views

Given a list of integers a 2D graph has to be plotted taking 1st, 3rd, 5th, ... numbers as upward slope and 2nd, 4th, ... numbers as downward slope. I have used a Python list to do it. Is there any ...
Maghil vannan's user avatar
10 votes
1 answer
1k views

...
Anony's user avatar
  • 123
1 vote
2 answers
95 views

Features: messages formatted with clear borders errors sent to stderr colour handling colours can be included in other strings echoed to the screen without having ...
CJ Dennis's user avatar
  • 249
6 votes
1 answer
1k views

I've written a C# program to generate a random maze, and then draw that maze in the Console mode using box-drawing characters, e.g. ─ │ ┌ ┐ ┬ ┼ etc. It works fine, as below, but I'm not convinced that ...
Lou's user avatar
  • 213
3 votes
3 answers
570 views

In the following code I used a while True: loop and implemented break, because I couldn't figure out a cleaner solution than an ...
HTTP402's user avatar
  • 115
5 votes
3 answers
1k views

I'm taking the CS50 course, and we're asked to create a program which takes an input (the total height of the pyramid) and outputs a pyramid of that height. i.e Here’s how the program might work if ...
xdxt's user avatar
  • 75
5 votes
2 answers
440 views

I would like some advice on improving/optimizing a small program I wrote. What it does is run a random walk on a torus manifold with 8 colors that loop around. ...
Chao Somnium's user avatar
6 votes
2 answers
2k views

I currently working on CS50. There is a problem where we need to recreate half-pyramids using hashes (#). The hashes are to substitute blocks like in Mario. This is also the first time I'm using ...
Kevin Mahendra's user avatar
2 votes
0 answers
58 views

I've ported the Analog Clock program written in AEC from Linux to WebAssembly. You can see the live version. ...
FlatAssembler's user avatar
10 votes
2 answers
2k views

I wanted to know how "dark" each character is when printed. I thought that this may be useful when doing ASCII-art to help with shading. I decided to write a program to objectively measure ...
Carcigenicate's user avatar
3 votes
1 answer
2k views

I have written a simple Tic Tac Toe game using some ASCII art. Is there anything I can do to improve upon the logic and structure of the program? ...
WireInTheGhost's user avatar
9 votes
1 answer
4k views

Introduction For the purpose of learning how to work with pictures in Java, I created an ASCII-Art Generator. The program can do two things: Convert pictures into ASCII-Art Convert text into ASCII-...
user avatar
1 vote
1 answer
119 views

Here is an earlier attempt to solve the original problem: Solving Sierpinski Triangle in Haskell I was never satisfied with my solution and found it was awkward and twisty. Here is another attempt to ...
dhu's user avatar
  • 327
5 votes
1 answer
415 views

I hacked a way to print a christmas tree, to use it in the usual seasons greetings email, you know the drill. Next Step is to integrate a multi lines of text in the border left side of the tree. For ...
Circusgimp's user avatar
1 vote
1 answer
522 views

A few days ago I saw a nice video on YouTube with prof Thorsten Altenkirch about recursion and the Tower of Hanoi puzzle. Today I tried to reproduce the code from the video and came to this: ...
Jan Kuiken's user avatar
  • 1,523
4 votes
2 answers
229 views

I am beginner in C++ and I was given this assignment by my teacher. The assignment is to print the following shape: ...
Pattern 's user avatar
5 votes
3 answers
865 views

I have to print the number of stars that increases on each line from the minimum number until it reaches the maximum number, and then decreases until it goes back to the minimum number. After printing ...
user2672739's user avatar
2 votes
0 answers
2k views

I want to know how to improve the design of Canvas drawing implementation. Canvas Drawing This solution is to implement a console-based canvas drawing application. Problem Statement Description ...
Ramanathan Ganesan's user avatar
5 votes
2 answers
1k views

I'm a complete beginner, but I'd like to learn how to program. I really started 2 weeks ago. So I tried the common exercise, aka the multiplication table, but I tried to add little things I learnt ...
Nevralgeek's user avatar
4 votes
1 answer
143 views

In a game of Connect4: we start with an empty grid two players place pieces X and O on the grid the first player to achieve 4 pieces in a line wins! this is a text based console game Here is the code ...
jakstack's user avatar
  • 143
4 votes
0 answers
122 views

This is the problem: Write a function to create a table from CSV data. The input to the function is a list of strings. Each string is formatted as a CSV record. Here’s an example for a ...
Boolood's user avatar
  • 41
4 votes
0 answers
621 views

I've written a pair of functions that can be added to a module or script that will allow the developer to specify a list of options and let the user select with the up/down arrow and return any ...
Rich Moss's user avatar
  • 249
9 votes
1 answer
220 views

As an exercise, I decided to try implementing a Mandelbrot Set viewer that produces ASCII images. Small Example: ...
Carcigenicate's user avatar
1 vote
4 answers
872 views

I have written the following program in C# to display an ASCII pyramid. ...
user avatar
2 votes
2 answers
288 views

I have a program that prints the star pattern. Starr Pattern is: ...
Gufran Hasan's user avatar
7 votes
2 answers
418 views

I am working on a pseudo graphical interface for a Chess engine I wrote. I want to draw a colored Chess board with ASCII pieces. To abstract the pure ...
Darius Duesentrieb's user avatar
1 vote
1 answer
444 views

I created a program in python that reads a file and outputs a frequency graph of the words it contains. Any feedback or tips would be appreciated. ...
Joyal Mathew's user avatar
3 votes
1 answer
840 views

I'm doing the MOOC Java course (CTRL+F "distribution"): The input of the program is a set of exam scores of a course. Each score is an integer. When -1 is entered, the program stops asking for ...
Ameer's user avatar
  • 73
0 votes
2 answers
833 views

I'm printing a diamond shape in Java. It's working fine, but is there a way to re-write this code to make it faster? ...
Victoria's user avatar
8 votes
1 answer
639 views

I am learning Go and as an exercise I did this challenge from Code Golf (without the golfing), where an ASCII art snowman is drawn from a combination of body parts, based on an 8-digit code taken as ...
mkrieger1's user avatar
  • 1,794