Questions tagged [console]
Use this tag for programs that interact with their user by means of a character-based console or terminal
848 questions
8
votes
5
answers
2k
views
Console-based Casino Game in C++
I made a casino game that runs in the console for my grade 10 final project, and I received a 93% as my grade. I'm looking for feedback in areas such as syntax, user experience and efficiency. I would ...
7
votes
1
answer
740
views
JSON powered C++ CLI Engine
I decided to create cli(s) in C++. For instance a music player which will play music from my library via commands player play muse or ...
9
votes
2
answers
991
views
A simple C++ function converting the environment variables in main() to an unordered_map
I had this program:
...
9
votes
3
answers
2k
views
Command Line Hangman game
I've completed a Hangman game in Python and was wondering about the formatting of this code. There were several functions that I switched around while making this, and there were several times where I ...
5
votes
2
answers
121
views
Command-line Tool That Reads a Text File and Calculates Basic Statistics
TLDR: First time dev in Go moving from Java and I need feedback on my simple CLI Tool.
I wanted to get competent in Go as a very junior developer, so this is my first basic project in go. I set a goal ...
4
votes
1
answer
151
views
Replace node type in Drupal
In Drupal 11 or greater, this code is used to change the node type of a node. How would you improve the code if at all?
...
11
votes
6
answers
1k
views
fsize: A Command-Line Tool for Checking File Sizes
I have created a cross-platform CLI tool to quickly retrieve file size and present it to the user in different units of data. The whole program is written in C and for Windows Win32 API is used to ...
4
votes
2
answers
824
views
Cross platform raw input handling in C/C++ for Linux and Windows
For some of my terminal videogames I need to accept input in raw mode, which can be done in Windows by using the nonstandard function getch coming from the header <...
4
votes
1
answer
101
views
File list and monitor
I recently was given a take home assignment for a job interview. The task was specified like so:
...
3
votes
0
answers
73
views
Advice on decomplecting and decoupling my tic tac toe implementation
I am hoping to find out what you think about my implementation of tic-tac-toe.
It is complete and working as expected with many tests, but the logic in the main module where I have the play-game main ...
8
votes
3
answers
565
views
Simple console calculator app. Looking for structure/best practices tips
I'm very much new to coding. The template for a .NET Console app opens up blank. I added lines like
using System.ComponentModel.Design;
...
4
votes
1
answer
62
views
4
votes
1
answer
115
views
Command-line parser for multiple subcommands
Explanation
I have done another command-line parser here -- I am kinda obsessed. It was really verbose for the user of the parser, it grew complicated quickly with option parsing and a regular command-...
2
votes
1
answer
38
views
Created a Scala (Native-compatible) program that scores words in Scrabble. Any refactor tips?
As said in the title, I used Scala to make a simple little program that takes a formatted input string representing a word in Scrabble and spits out its score, including a message explaining where the ...
6
votes
2
answers
128
views
Simple tile navigation system
I haven't done any programming in quite a bit of time, and I tried to make a program where a player navigates up, down, left and right on a grid. I haven't used a tutorial for that, and I'm not ...