Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [console]

A mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

0
votes
1answer
19 views

Stacker game with three blocks

I am pretty new to C# and so i would like to ask you, how i could improve my code. I am currently coding a Visual Studio C# Console Game where you have to stack blocks. Currently you can only Stack 3 ...
2
votes
1answer
158 views

To do list mini project

I tried in this project to apply what I learned from OOP, using classes and properties, please advise for any best practice or any improvement. Conclusion: I have a text file "ToDoList.txt" which has ...
3
votes
2answers
50 views

POSIX shell function for asking questions

I've written a tiny function for asking questions intended for my POSIX shell scripts, where I often need user input. The function takes 2+ arguments, where: Is a string containing the question. , 3....
5
votes
1answer
105 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 ...
6
votes
1answer
76 views

Tic Tac Toe console game in C++ (w/graphic)

I have finished a simple Tic Tac Toe game, and I'd like if anyone was to give advice to how I could improve my code. main.cpp ...
1
vote
1answer
78 views

Calculate average from .txt file

I have made an exercise where I need to calculate the average per row of a .txt file. (see below) ...
4
votes
1answer
62 views

Beginner c# snake game

I just started using c# and I made this snake game in a console application . It is a bit jittery when i run it in visual studio. How could I improve it to be cleaner and less jittery. ...
1
vote
0answers
30 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 ...
11
votes
3answers
2k 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. ...
1
vote
1answer
73 views

Program that deletes near duplicate directories and directories that have .ini like files

The program needs to only keep directories that have at least 1 .osu (.ini like) file with certain restrictions in them. It also needs to delete duplicate .osu files. But since duplicate files are ...
3
votes
2answers
104 views

Number guessing game in C

This is just a little number guessing game. I know it's simple but I am a newbie in C and I think such a little example can be enough for finding simple design flaws that can than be eliminated. If ...
5
votes
1answer
53 views

Batch upload users to nextcloud on docker with bash csv

I have this bash script that adds users to NextCloud from a csv file. It expects to be run from the same directory as the docker-compose.yml file. I'm pretty new to bash scripting and I'm wondering ...
15
votes
3answers
553 views

Modify casing of marked letters

Trying to learn coding in my 30s. Could anybody review my code and give me some feedback if possible? It works, but I am sure there are better ways to solve this problem. The problem: A text is ...
1
vote
2answers
101 views

Simple Console Address Book in C# using Dictionary

I have created a simple C# console app to display an Address Book using Dictionary. I would like to present it in a interview but I am not sure if the code is "interview" worthy. Given below is the ...
5
votes
1answer
50 views

Java program that relaunches itself in OS's terminal application

I wrote a Java program that when its executable .jar is opened manually, it re-opens itself inside the operating system's shell console. The purpose of this is to have a C#-style console application ...
1
vote
4answers
96 views

Program that prints an ASCII pyramid

I have written the following program in C# to display an ASCII pyramid. ...
18
votes
1answer
196 views

Brainfreeze: A Brainfuck compiler in C

BrainFreeze This is my implementation of a brainfuck compiler in C. The instruction to build/run the project (GitHub repo) can be found here. I am first converting the brainfuck source to x86 ...
7
votes
2answers
103 views

Color ASCII drawing class

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 ...
14
votes
1answer
131 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'...
0
votes
0answers
137 views

Bank ATM in C# Console Project

Sort of completed my bank ATM in C# console project. What do you guys think of the structure/design of this whole solution? There are 2 console projects ( Bank Admin and Bank Customer) and the third ...
2
votes
2answers
77 views

TicTacToe game in C++ made with 2D arrays

We have been learning C++ the previous semester and I made this simple TicTacToe game at the end of it. We haven't yet covered topics of vectors, classes, objects, exception handling etc. so with this ...
4
votes
1answer
75 views

C++ Simple Game Beeping Utility

Lately I have been playing a game called Dirty Bomb. I like it very much, and since I was taking a rest of basic C++ OpenGL, i tried to make a simple console utility for it. What i wanted to achieve ...
1
vote
3answers
156 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 ...
0
votes
0answers
60 views

C++ console progress display

I just figured out how to do a building menu with a progression feature in c++ console application. What this code does: It simply offers you a choice to build a building and then prints the ...
4
votes
1answer
17 views

Tagging the directories and switching between them by tags - follow-up (Part 2/2: business logic)

This is the bash script responsible for changing the directories via textual tags. (See here the entire project.) dt_script ...
0
votes
1answer
29 views

Noughts and Crosses Version 3

The code's structure has been changed to make the program more readable. I've also commented and split up the program into blocks for better readability as well. The recursion in the player and ...
1
vote
1answer
32 views

Tagging the directories and switching between them by tags - follow-up (Part 1/2: File management)

This is a rework of a small program for faster(?) switching working directories, and it looks like a pile of crap, I must admit. Could you give me pointers how to make it maintainable? dt_tag_entry....
3
votes
2answers
203 views

Rock, Paper, Scissors. C++

I'm a beginner in programming and I would like to have feedback and tips to improve. He's a simple command line program. It's a Rock, Paper, Scissors game. I guess I could use an enum for the "Attack"...
4
votes
2answers
84 views

Simple person manager console-app

The code below is for a coding challenge for a job. I have everything working as they requested, I've reviewed it myself and believe everything is good. I'm just looking to see if anyone see's ...
3
votes
1answer
169 views

Simple Console Snake game C++

I recently started learning C++ and have made a very simple Console-based Snake Game, I would like to have some feedback on improvements. You might notice the obvious delay in clearing and printing ...
1
vote
2answers
58 views

Note for monitoring buy/sell item list

I'm making note where you can add items that you buy or sell, any suggestions? ...
3
votes
2answers
287 views

Printing out a table in console

This program prints out a table in the console. Suggestions for improvements are welcome. Example output ...
2
votes
0answers
70 views

Command line sliding tile puzzle in C++

I have rolled a simple program for controlling a sliding tile puzzle via command line. I would like to hear comments on how to make it more idiomatic C++17 and efficient. Here is my code: ...
4
votes
0answers
49 views

Wrapping argparse to use configuration file

I want to be able to both provide options through command line and from a configuration file. A single option could be served either by the user or by the configuration. But if is provided by both, ...
0
votes
1answer
126 views

“Food Ordering” program exceeds time limit in test 9

So, I've recently started working on CodeForces to practice from older contests (and maybe even start participating in current ones), but there is one problem that I can't seem to make an efficient ...
4
votes
1answer
86 views

Download a Git repo without .git folder

Coming from Python, JavaScript and PHP, I'd like to learn to write Ruby in the way it's "supposed to". Well-written Python code is called "Pythonic", so I'd like to know how idiomatic my Ruby code is. ...
1
vote
1answer
41 views

Handle connection time outs when loading a web page in a c# console app

The aim of the program is to read the yahoo finance website in order to find potentially profitable stocks based on their past performance. I have some code that works but I think it is of poor ...
1
vote
1answer
33 views

Gather list of all IDs ordered by submission date and ID by parsing file path

This code is to gather a sorted list of IDs (first by ID, then by date) recursively from a directory that submitted a particular type of file (that, as you can tell, includes the word "Magic") and ...
0
votes
1answer
42 views

NodeJS commit message validator

I wrote a commit message validator + CLI in NodeJS. Notes: My greatest concern is that the patten I use to represent the results of a validation is inadequate. Options: Use adhoc enums Create a <...
2
votes
2answers
129 views

Rhythm game finger trainer

Decided to make a small C# console based rhythm game finger trainer with lots of user definable options. I'm very much a beginning programmer, so thought I might learn a lot from it. Especially when ...
10
votes
2answers
1k views

Console snake game in C#

This is my first console application in C# and I think it's unnecessarily wrong and I made some bad practices, but at least it works smoothly. How could I improve this code so that next time I write a ...
2
votes
3answers
209 views

Simple Hangman in PHP

This is the simple game of hangman. Guess letters and six wrong letters means you're dead. This took me about 20 hours. And I learned enough to be certain I could make something better now in half ...
4
votes
2answers
62 views

Simple Python 3 TicTacToe Game

Relatively new here so please let me know if I'm doing something wrong. I'm mostly wondering if there's any additional way I can make this code more efficient. Specifically the moveset and win ...
1
vote
2answers
190 views

BarTender project - exporting printer code templates

Follow-up Code: BarTender project - exporting printer code templates - Follow-up Second Revision: Bartender Project - exporting printer code templates - Follow-up-2 as stated in the question I've ...
0
votes
3answers
76 views

App that sets configuration data

I've been writing my code like this for a really long time now, I am wondering if there is a more efficient way to do this. This is especially after a senior developer said my code was very amateurish....
5
votes
1answer
156 views

Requesting 400 links with multithreading and ThreadPool

I am working on multi-threading application to learn multithreading better. My application has a queue with 400 unique links, 4 threads and each thread is pulling link from the queue and sending a Get ...
2
votes
1answer
58 views

Catty: A mini cat clone in Rust

As part of my journey in learning the Rust programming language, I decided to make a miniature cat clone (catty) in it. The following is my code, which depends on clap for argument parsing (see below)....
2
votes
1answer
94 views

Report on user-input chacters by their type

I'm a first year student at a college that focuses heavily on self learning (SCRUM) without any classical lessons. Because of this, I basically learned everything I know from websites like this. I don'...
1
vote
0answers
34 views

Interactive Linux upgrade script - Follow-up #1

One year ago I asked for a yearly revision of my Interactive Linux upgrade script. There is nothing new to the conditions, therefore please read the original question before you decide to comment and ...
0
votes
1answer
60 views

Text reading and string inputting program [closed]

The Main program. This program pulls from a .txt document with two separate strings, and outputs a .cs program that will display those two string via console when run. It uses a structure.txt file ...