Skip to main content

Questions tagged [console]

Use this tag for programs that interact with their user by means of a character-based console or terminal

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. ...
J Atkin's user avatar
  • 1,800
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 ...
Malachi's user avatar
  • 28.7k
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 ...
syb0rg's user avatar
  • 21.8k
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 ...
user avatar
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 ...
tadamson's user avatar
  • 411
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 ...
Der Kommissar's user avatar
31 votes
6 answers
84k views

Parsing console application arguments [closed]

In our console app, the parsing of application arguments is done like so: ...
frennky's user avatar
  • 449
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 ...
Ramon's user avatar
  • 411
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 ...
leansie's user avatar
  • 361
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 ...
Mako's user avatar
  • 361
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 ...
Joe Z.'s user avatar
  • 343
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. ...
Johnsonite's user avatar
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 ...
Zanzag's user avatar
  • 392
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, ...
Jessica's user avatar
  • 818
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 ...
Mathieu Guindon's user avatar

15 30 50 per page
1
2 3 4 5
57