Questions tagged [console]

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

Filter by
Sorted by
Tagged with
6 votes
1 answer
1k views

Snake console game in C++

I reviewed this question to a snake game console implementation: My first C++ game (snake console game) I enjoyed refactoring this code and presenting a solution using more C++ features/classes. I ...
Sandro4912's user avatar
  • 3,066
5 votes
1 answer
259 views

Termios/Xterm line editor for APL interpreter

As an interesting sub-part of an interpreter -- just the Read part of the REPL -- I present my raw-mode line-oriented editor that I intend to use for my APL interpreter. (The Eval part has been posted ...
luser droog's user avatar
  • 2,018
5 votes
3 answers
592 views

Console Application Customizer - GetBootstrap v2.0

GetBootstrap-2.0 update from GetBootstrap-1.0.0.2 I just update my console application customizer and add some new features like disable minimize, maximize and close button, new color and simple ...
Onel Sarmiento's user avatar
3 votes
2 answers
236 views

Calculator Program improvements

I'm pretty new to programming and made a few programs so far. I recently made a Calculator program and I hope you guys could tell me what I could do to improve. ...
the 's user avatar
  • 49
2 votes
3 answers
5k views

My BlackJack Game in C# Console

what do you think of my BlackJack game in regards in Object-Oriented Programming? My code is at https://github.com/ngaisteve1/BlackJack A follow-up question is available: Follow-Up ...
Steve Ngai's user avatar
2 votes
1 answer
98 views

A trivial command line utility for trimming whitespace from lines in C - follow-up 2

The previous iteration at A trivial command line utility for trimming whitespace from lines in C - follow-up Note: the next iteration at A trivial command line utility for trimming whitespace from ...
coderodde's user avatar
  • 28k
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.6k
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
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
16 votes
1 answer
2k views

Hangman game logicistics and cleanliness

I recently started working on my code's cleanliness/logistics and would appreciate it if you could give me some tips on how to improve certain things. Here's a simple console Hangman game I've made: ...
user902934's user avatar
13 votes
2 answers
159 views

"Drone Racer" now shipping in your local area

This question is a follow-up of this one; where I present a software to plan and manage drone races. I might come with a new question about the SQL part in a few days as well. The code can still be ...
301_Moved_Permanently's user avatar
13 votes
1 answer
19k views

Command-line noughts and crosses

I've just got a Raspberry Pi, so I thought I'd try my hand at some Python. This is my first ever Python program (hurrah!). It's a very simple command-line implementation of noughts and crosses. The ...
Tharwen's user avatar
  • 295
12 votes
4 answers
12k views

Console-based table structure

Personally I often prefer console applications over GUI applications. However, sometimes it is quite a challenge to display everything well-aligned. Therefore I decided to create a console-based table ...
766F6964's user avatar
  • 901
11 votes
1 answer
271 views

Binary Bayes network classifier in Java - Part I/II

I was working on the binary Bayesian network classifier I asked about earlier. See also Part II/II. See also the next iteration of Part I. TERMINOLOGY We are given a directed acyclic graph (dag) \$...
coderodde's user avatar
  • 28k
11 votes
4 answers
15k views

Simple C++ calculator which follows BOMDAS rules

This was my first attempt at making a C++ calculator. The user basically inputs an expression (I'll use \$1+1*(9*(11-1))\$ as an example) and the program searches for and creates a vector for ...
Sky Lightna's user avatar
10 votes
2 answers
21k views

Pretty-print Pascal's triangle

...
matheussilvapb's user avatar
9 votes
8 answers
4k views

Temperature conversion application

I'm two months in a programming course and our instructor told us we should think about building real-world applications as to gain valuable experience. I got the idea of doing a simple temperature ...
Neil Meyer's user avatar
7 votes
2 answers
1k views

Initializaing and running Console application

In most of my applications I think my core code is quite good organized and uses only dependency injection for everything. However as far as the initiailzation is concerned I find it's a huge chaos ...
t3chb0t's user avatar
  • 44.3k
6 votes
2 answers
2k views

Terminal based game

Looking to build a terminal based game. I am assuming X-Term like terminal. This means: I can use the X-Term control codes to clear and move around the screen. I can use ...
Martin York's user avatar
6 votes
1 answer
2k views

CLIGL - A library for command line graphics

About a year ago I wrote a small library for drawing graphics on the windows command line. I mostly used it for small projects, like a raycaster and a raytracer. I just rediscovered it today, at the ...
Ethan Bierlein's user avatar
6 votes
1 answer
7k views

Generic menu class for console applications

Expanding the title: my goal (for hobby project) was to create simple, generic (customizable) and cross-platform menu class for console applications (mostly simple, text-based games). That's what I ...
Toreno96's user avatar
  • 163
6 votes
1 answer
2k views

Console-based BlackJack in C# - Follow-Up

I have done some code-refactoring of my console-based BlackJack in C#. Finally found a better solution to solve Ace problems (double Aces should be value 22 and third Ace should be value 1). I still ...
Steve Ngai's user avatar
4 votes
1 answer
67 views

Terminal Base Snake

Based on this Framework Terminal based game: Part 2 A game that uses std::cout to print the board and std::cin to get keyboard ...
Martin York's user avatar
4 votes
1 answer
79 views

Terminal based game: Part 2

Follow up to: Terminal based game Finished up the framework. Still sticking with the X-Term based version. As I want a very simple framework to use for teaching (not this part initially). But my next ...
Martin York's user avatar
3 votes
1 answer
151 views

Newspaper Bill Calculator CLI with Python (2 of 3, CLI)

Code is posted after explanation. Due to the size of the project, this is being posted in three separate posts. This also ensures each post is more focused. Post 1 of 3, Core: Newspaper Bill ...
eccentricOrange's user avatar
3 votes
1 answer
102 views

Bash manual page selection menu

I wrote the following script in the hopes of streamlining the finding and reading of multiple manual pages. Since I am always looking up different utilities' manual pages I thought this would a good ...
I0_ol's user avatar
  • 379
2 votes
2 answers
133 views

ds4mac - directory switcher for macOS/Linux: the tag engine

I have this program in GitHub. It is used for switching to directories via custom tags. Here is the tag engine: com::github::coderodde::ds4mac::DirectoryTagEntry.h: ...
coderodde's user avatar
  • 28k
2 votes
2 answers
559 views

Console single player blackjack versus a dealer again

This is the second pass on this. pass one A single player versus a dealer. It does not perform bets - it only track wins and losses and has no splitting. Other than that I tried to get it all in. I ...
paparazzo's user avatar
  • 5,976
1 vote
1 answer
50 views

UPDATE on Newspaper Bill Calculator CLI with Python (2 of 3, CLI)

Code is posted after explanation. Due to the size of the project, this is being posted in three separate posts. This also ensures each post is more focused. Post 1 of 3, Core: UPDATE 1 on Newspaper ...
eccentricOrange's user avatar
1 vote
1 answer
68 views

A telephone book command line program in ANSI C - follow-up

(See the next iteration.) This question is a slight improvement over A telephone book command line program in ANSI C I have incorporated almost all points stated by Toby Speight. Now I have this: ...
coderodde's user avatar
  • 28k
0 votes
1 answer
124 views

Termios line editor for APL - part 2

This is the completely re-worked version of the APL line editor using termios raw mode. (Earlier version) All switch constructs have been replaced with tables of ...
luser droog's user avatar
  • 2,018
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
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
19 votes
2 answers
2k views

Hangman on the C++ommand line

I'm wondering if my code is just a tad too long to post here, but if the only consequence seems to be getting high-level reviews, then that's perfectly fine. This is my implementation of Hangman in C+...
vvye's user avatar
  • 699
14 votes
1 answer
713 views

Ncurses Snake game

I decided to write a little snake game in c++ to practice and as an opportunity to learn ncurses. It turned out to be much bigger than I anticipated but since I've never really written anything big, I'...
Sergey Kasmy's user avatar
12 votes
1 answer
4k views

Racetrack in Java

Racetrack: The August community challenge is to implement a program that plays the Racetrack game. Each player starts with an integer position on a square grid. On each turn, the current player can ...
erichamion's user avatar
12 votes
3 answers
2k views

Finding largest prime factor from inputted number

This is my first C# console application. This program asks for an input of a number, and finds the highest prime factor of that number. Please review my code. Have I used things right? Is my code ...
Abandoned Account's user avatar
11 votes
3 answers
3k views

My first C++ game (snake console game)

I finally finished the code for a snake game I was working on. I would like it if you were to give me some advice as to things that can be improved. ...
Nadpher's user avatar
  • 889
11 votes
3 answers
1k views

CC C# calculator

This is my basic C# calculator; I'm sure there is much that can be improved. This design is based on Bjarne Stroustrup's C++ calculator, a purposely be-bugged version of which can be found at his ...
user avatar
11 votes
1 answer
3k views

Send command and get response from Windows CMD prompt silently

Note - The response to reviews in this post is here. The need: Simply stated: _popen() for Windows I needed a method to programmatically send commands to the ...
ryyker's user avatar
  • 338
11 votes
1 answer
85 views

Local source control

I've written my own local "source control". Rather than using a commit-based system, when you're ready to release a version, you can run a command which will create a ...
Ethan Bierlein's user avatar
10 votes
4 answers
1k views

Another attempt at a Blackjack game

This is a follow up question to this one. I have been working on this game for some time, and now I would like it to be reviewed. Most importantly, I want to know about my code readability, ...
user avatar
10 votes
5 answers
2k views

Petals Around the Rose

I have been working on a program that walks you through "Petals Around the Rose". I would like anyone to review it and point out any bad coding practices, as well as efficiency problems. ...
TheCoffeeCup's user avatar
  • 9,454
10 votes
2 answers
313 views

Tic-Tac-Toe console application (as foundation for Ultimate Tic-Tac-Toe)

For the purpose of becoming better at C++ programming, I wanted to program Ultimate Tic-Tac-Toe as a console application for Windows in C++. However, I thought it would be sensible to create the plain ...
Ben Groeneveld's user avatar
10 votes
1 answer
2k views

Read stdin like a dictator

Rags. Introduction All too often I find myself wanting to allow only a certain list of characters to be written to stdin, and only recently did I actually bother ...
cat's user avatar
  • 977
10 votes
3 answers
5k views

Tic-Tac-Toe code using c#

I am a beginner coder and was wondering how to improve my c# console code. It makes a tic-tac-toe game. ...
PARTH's user avatar
  • 145
10 votes
4 answers
3k views

Converting GTA Vice City ADF audio files to MP3

I wrote a tiny command line tool that converts ADF audio files from the Grand Theft Auto - Vice City game to MP3 files that can be played outside the game. The ADF file format stores the game ...
glampert's user avatar
  • 17.1k
10 votes
3 answers
2k views

Python command-line program that generates passwords

I took my code from this answer by me, I found it useful, so I developed it further, and here is the result. This script generates cryptographically secure passwords. The characters used by the ...
Ξένη Γήινος's user avatar
10 votes
1 answer
243 views

Random Number Generator with Loads of Useless(-ish) Features

For fun, and to refresh my memory on Boost's program_options library, I have written a program with the goal of randomly generating numbers with loads of useless(-ish) features. I have termed it ...
esote's user avatar
  • 3,770