Questions tagged [console]
Use this tag for programs that interact with their user by means of a character-based console or terminal
843
questions
127
votes
6
answers
17k
views
How clean is my snow?
I just wrote a snow animation in Python. I think this is fairly clean but I have a few things that I don't like.
...
36
votes
3
answers
11k
views
Ensuring user input is an integer in a range
I have isolated a little bit of code that was causing a small debate between myself and another user. I have taken some of the things that he said and meshed it with the code that was being reviewed ...
32
votes
4
answers
15k
views
Loading... animating dots in C
I've recently wanted to make a "Loading..." display in C where the dots print one at a time in order and then reset:
Suprisingly, there isn't much on the internet for doing this well, so I figured I ...
32
votes
3
answers
3k
views
"Compliment giver" mini-program
I'm fairly new to programming and I decided to make a small C# console program for practice. The program asks for user input and gives a random "compliment", it also has a small chance to give a bonus ...
31
votes
5
answers
8k
views
Print an ASCII diamond
This takes a width specified by user and prints a diamond of that width. It uses only three for loops, but could I reduce that further? Is there a more elegant ...
31
votes
5
answers
4k
views
A completely repetitive console prompt, a completely repetitive console prompt
So I wrote this for my Mandelbrot Generator, to collect and use input from the user, and I made it dynamic enough to be useful anywhere.
I'm really interested in all critiques of it, as I'm going to ...
31
votes
6
answers
84k
views
Parsing console application arguments [closed]
In our console app, the parsing of application arguments is done like so:
...
31
votes
1
answer
2k
views
Using argparse module within cmd interface
I've created an application that uses a cmd interface. It has multiple levels, and the number of available commands and their complexity is growing. As such, I need to generalise argument parsing - of ...
26
votes
5
answers
29k
views
Non-AI Tic-Tac-Toe program
I'm fairly new to C++ and to game programming itself. Today I decided to build a multiplayer Tic Tac Toe program using only elemental C++ syntax/data structures. I also implemented a text interface ...
25
votes
10
answers
47k
views
Text-based adventure game with too many conditional statements
For a school project, I am creating a text-based adventure game in C++. I have shown my code to my teacher and he is stating my code is not entirely logical in sequence and that I should make my ...
24
votes
4
answers
1k
views
"Up" script for moving up directories quickly
A long time ago I created a script for moving up directories very quickly in the command line using the command up. You can find usage notes here.
It's a very ...
22
votes
6
answers
54k
views
Simple text-based RPG in Java
I was looking for suggestions on how to improve the general flow of this code, as well as minimizing if / switch conditionals. ...
22
votes
2
answers
4k
views
Dungeon Crawl game for the terminal
I am learning C++ and I attempted to do one exercise I found: Dungeon Crawl. The goal of this game is to reach the treasure by moving your character along the board.
The exercise asks not to use ...
21
votes
4
answers
7k
views
Rock, Paper, Scissors in C++
I have a fair few years experience with programming, and am currently working in a software development role, writing internal web applications in C#.
This is the first C++ code I have ever written, ...
20
votes
1
answer
7k
views
Autocompleting console input
Yesterday I stumbled upon a Stack Overflow question that asked if it was possible to implement Tab-triggered auto-completion in a console application.
I thought that was an interesting idea, so I ...