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
5 votes
2 answers
556 views

Java - Converting a skip list to the ASCII art

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: ...
1 vote
2 answers
94 views

simple Text Table utility

A small utility to print data in an ascii table TextTable ...
10 votes
2 answers
157 views

A program that calculates how dense each character appears when printed

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 ...
0 votes
1 answer
59 views

Program that prints specified number of matroshka dolls

...
6 votes
1 answer
190 views

ASCII art smoke wisp generator

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: ...
0 votes
2 answers
483 views

Drawing a rectangular playing field

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. ...
3 votes
1 answer
64 views

Drawing a pair of triangular walls for CS50 Mario

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 ...
9 votes
1 answer
1k views

Convert image into ASCII art

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, ...
3 votes
1 answer
131 views

Rendering a cross in ASCII art

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 ...
2 votes
0 answers
42 views

Analog Clock for WebAssembly in AEC

I've ported the Analog Clock program written in AEC from Linux to WebAssembly. You can see the live version. ...
5 votes
1 answer
928 views

Formatting a table using unicode symbols in python

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 ...
3 votes
2 answers
162 views

Alphabet Rangoli

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" ...
2 votes
1 answer
182 views

c++ CLI Ascii image renderer

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. ...
0 votes
1 answer
82 views

Outputting a graphic using functions

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 ...
1 vote
2 answers
1k views

Create an ASCII table from CSV

The following code convert csv to ascii table. ...
55 votes
6 answers
20k views

ASCII text-based RPG game in C++

I started to make a C++ RPG game just for fun. It does have quests but it isn't just one long adventure that lasts like 30 minutes. I would like to know what I did well on and things on which I can do ...
2 votes
2 answers
96 views

Printing a pattern through the use of a dictionary

We had to port a program from c to python. The code works but uses a dictionary to solve the problem. This doesn't feel like the right use of a dictionary. Is there a better way? ...
4 votes
0 answers
47 views

Diagonal square spiral pattern in Vyxal

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: ...
7 votes
3 answers
545 views

Draw a 2d graph using slashes

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 ...
4 votes
4 answers
872 views

Output a pyramid of numbers

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 ...
1 vote
2 answers
65 views

Colour message prettifier in Bash

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 ...
10 votes
1 answer
1k views

Printing a diamond shape in ASCII

...
5 votes
1 answer
1k views

More efficient way to create an ASCII maze using box characters

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 ...
3 votes
3 answers
508 views

Printing dynamic ascii-art shapes based on user input

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

Printing pyramids in C (CS50)

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 ...
5 votes
2 answers
414 views

ASCII Random Walk Algorithm

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. ...
6 votes
2 answers
2k views

Recreate Mario's half-pyramids using hashes (#) from CS50

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 ...
6 votes
2 answers
11k views

Print list items in a rectangular frame

The aim is to have that: list ["Hello", "World", "in", "a", "frame"] And make it printed like this: ...
3 votes
1 answer
2k views

Tic Tac Toe with ASCII art

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? ...
8 votes
1 answer
4k views

ASCII-Art Generator

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-...
3 votes
2 answers
4k views

Print concentric rectangular patterns

I am solving interview questions from here. Problem : Print concentric rectangular pattern in a 2d matrix. The outermost rectangle is formed by A, then the next outermost is formed by A-1 and so on....
10 votes
8 answers
15k views

Printing staircase revisited

What can be more elegant ways to solve the given problem. # ## ### #### Code: ...
5 votes
2 answers
1k views

Printing a multiplication table in C [closed]

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 ...
7 votes
1 answer
788 views

Python 2.7 Tower of Hanoi game with ASCII graphics

The game generates a fixed, "animated" game board via ASCII characters that is reprinted and cleared after each valid move. The format of the input for making moves is described in the script. You ...
1 vote
1 answer
91 views

Using Data.Array to solve Sierpinski in Haskell

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 ...
5 votes
2 answers
815 views

Solving Sierpinski Triangle in Haskell

I am a Haskell beginner with a background in C++ and Python. I have been teaching myself Haskell for about half a year on and off and recently I started doing Hackerrank problems to improve my Haskell ...
5 votes
1 answer
374 views

Pythonic way to draw ascii christmas tree?

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 ...
8 votes
3 answers
5k views

Beginning of simple rogue-like RPG (in console) in C++

I've started to learn programming recently and it's my first more or less "big" project. But coding this project for me is quite hard. I spent a lot of time to understand what I've done and my coding ...
1 vote
1 answer
2k views

Eloquent JavaScript chessboard

Is this a good way to solve the quiz "Chessboard" from http://eloquentjavascript.net/02_program_structure.html ? Write a program that creates a string that represents an 8×8 grid, using newline ...
18 votes
1 answer
6k views

Pretty printing of the numpy ndarrays

Following this idea for pretty printing of numpy ndarrays, I have developed a very primitive prototype: ...
1 vote
1 answer
490 views

Tower of Hanoi, ASCII animation with ANSI escape codes

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: ...
9 votes
1 answer
181 views

ASCII Mandelbrot Set "image" producer

As an exercise, I decided to try implementing a Mandelbrot Set viewer that produces ASCII images. Small Example: ...
5 votes
3 answers
821 views

To print asterisks based on inputs

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 ...
4 votes
2 answers
192 views

Draw an outline of an upward-pointing triangle

I am beginner in C++ and I was given this assignment by my teacher. The assignment is to print the following shape: ...
8 votes
1 answer
3k views

Pretty print a tree

When you're working with trees one of the most useful methods to implement is a clear way to print them, the following is my solution to print a tree in Java: ...
2 votes
0 answers
2k views

Program to draw ASCII art based on commands

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 ...
4 votes
1 answer
121 views

Print a Connect 4 grid based on some rules for each cell

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 ...
4 votes
0 answers
597 views

ASCII-Box PowerShell menu

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 ...
4 votes
0 answers
103 views

Formatting CSV as a table using BDD

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 ...
8 votes
1 answer
1k views

A small Java library for neat printing of binary trees to text console

Given a binary tree (not necessarily a binary search tree), this small Java library implements an algorithm that can neatly print binary trees to text console. Code BinaryTreeNode.java ...