Questions tagged [console]
Use this tag for programs that interact with their user by means of a character-based console or terminal
811
questions
-1
votes
0
answers
13
views
Best Practices For A Console Menu App
I am quite fresh to c# and creating programs. I wrote a very basic program which allows you to go through menu selections via arrowkeys and select your selection along with sending you to a sub menu ...
1
vote
2
answers
122
views
Thread-safe int wrapper in c#
My system is a .NET Core 7 console app, which starts some background threads. I need to pass some int values (counters, etc.) between the main and background ...
9
votes
3
answers
3k
views
Recreating Minesweeper
First, I have to say that this game lacks 5 features that I don't care:
Flags
Chording
Timer
Actual mouse movement
Good graphics
When starting the program, the player is meeted with a "Choose ...
3
votes
1
answer
155
views
Yet another CLI Hangman game
...with properly packaged/type-hinted code, automated testing, and no dependencies. Do note that this package requires Python 3.12 or later.
Only pyproject.toml and ...
2
votes
1
answer
102
views
Tic-tac-toe game for Windows console
I am doing C++ for over a year and this is my game I tried making tic-tac-toe. And it's also my first program that uses multiple source files.
main.cpp
...
2
votes
1
answer
668
views
Little CLI game in C++ with random words
the game is quite simple, you have to constantly guess the letters of a hidden word, but has a limited number of wrong attempts. The word you are looking for should be a random word from Wikipedia. I ...
0
votes
1
answer
72
views
wtpdmt - Windows thread preemption duration measurement tool (C++)
I have this repository. The idea is that the user may measure for how long the thread is preempted with given priority class/thread priority.
CommandLineParser.h:
<...
4
votes
2
answers
207
views
A Python terminal
This is the code for Pylect, a Python terminal I worked on a while ago which also caused my Desktop to get destroyed because of bad code. I use it infrequently but I would like a review for the code ...
0
votes
1
answer
132
views
Calling the base method from overriden method to add some functionality
I have a small Linked list program which I created for just brushing up the concepts.
Following is my Node class
...
2
votes
1
answer
204
views
A very basic calculator in C#
I'm trying to learn C#, I made this calculator with my current knowledge. It works as I intended, but I'd appreciate some input on my code.
...
3
votes
1
answer
135
views
Highly flexible tic-tac-toe terminal game in python
I have created a two-file tic-tac-toe game, with board.py containing most of the internal workings of the playing board. I intended to have ...
1
vote
1
answer
48
views
Javascript CLI to boot iOS simulators, install project, extract data, and merge into JSON
I'm a DIY "dev" - so I really create things that I need or think they'll end up helping others.
I wrote this Swift Package so the iOS community could get device bezel radius' to help with UI ...
11
votes
2
answers
2k
views
CAT: Cat Approved TUIs
Cat
Hello everyone! I am working on this TUI framework which aims to abstract the ncurses library. I was wondering how understandable it is, and what I can improve! Any feedback is welcome!!
My ...
5
votes
2
answers
185
views
Simple vocabulary trainer based on flashcards
Motivation
When I was young, I had to learn english in school and I was really bad. My father told me to write words on little cards, with a word on the one side and its foreign counterpart on the ...
2
votes
1
answer
73
views
TicTacToe OOP approach in Kotlin
I wrote a terminal-based TicTacToe game in Kotlin to practice both Kotlin and OOP. Any feedback on structure and code would be appreciated.
Board.kt
...
4
votes
0
answers
67
views
Manage have-read and want-to-read books and series
I am building this program to keep track of the books I have read and the series I want to read, and I would like help on improving the user interface.
...
0
votes
1
answer
105
views
The simple calculator in Ruby
I wrote the simple calculator in Ruby. This is my first program in this language. I've switched recently from Python to Ruby. What do you think about my work? Thanks
...
2
votes
1
answer
110
views
Command-line parser with built-in error checking
Simple command-line option parser with automatic setting of variables and built-in error checking.
The story is I was working on another new project that had a lot of configurable options, as they ...
2
votes
1
answer
304
views
Model-View-Presenter (MVP) pattern implementation
To learn more about design patterns, particularly the Model-View-Presenter (MVP) pattern, I am currently creating a CLI weight tracker application in Python. I would like you to review the code to ...
1
vote
0
answers
47
views
Python CLI tool - automatic mapping from models to parameters with Click
I was working on a small python CLI tool using the Click library for the first time and realized I was defining parameters and mappings from them to objects/classes in multiple places and anytime I ...
6
votes
2
answers
537
views
A simple CLI arbitrary-precision Mandelbrot set calculator (for a single point)
I wrote the following C code that takes a couple of arguments on the command line and calculates a given number of iterations of the Mandelbrot set complex mapping using MPFR arbitrary precision ...
3
votes
1
answer
133
views
Implementing Model-View-Presenter in a console program
I'm designing a board game with my wife, and am writing a console based program that can track and analyze the statistics of playtests to see if the game is balanced, what the dominant strategies are, ...
4
votes
1
answer
106
views
Basic CLI BlackJack Game in Java
I am looking to see which aspects of this code could use improvement.
In both design, and basic implementation and coding.
I'm using IntelliJ and Java SE 20.
...
3
votes
1
answer
94
views
Terminal Based Blackjack
This is my attempt at a terminal based blackjack game. Currently, the game does not support betting, although I intend to add it in the future.
I would very much appreciate general feedback, but I am ...
5
votes
2
answers
879
views
Skeleton for a command-line program that takes files in C
First. If this question is not allowed, I am sorry. Please, tell me so, and I will try to delete this. If it is, I will delete this paragraph.
Personal-ish note/Motivation
I was studying assembly ...
5
votes
3
answers
1k
views
Currency Converter (calling an api in c#)
I am in my first week of programming and I created a currency converter. I want to use real time exchange rates through an api when sending the result. This code itself works just fine. But, being new ...
5
votes
5
answers
1k
views
unit converter (3 days of C#)
I am new to programming. I picked up a C# course from freeCodeCamp.org a few days ago and today I created my first code from scratch. I know probably it's not the best optimized but it works. Some ...
0
votes
1
answer
152
views
Text based naval game
here is the second game I have made. its not easy and I was hoping someone could test it and bring some improvements to the table. fun project for learning.
...
8
votes
5
answers
2k
views
Python code using *args to print warnings in color
I have this code, which works for the simple tasks I want. But I have questions.
...
3
votes
1
answer
97
views
Python command line password generator
After giving a couple of well-received answers to similar questions, I thought I'd try to come up with my own solution.
I believe that a good password generator can and should be quite simple without ...
2
votes
0
answers
127
views
Truly cryptographically secure password generator in Python, version 2
Following suggestions from answers from my previous question, I have completely rewrote my script, to make it more concise and Pythonic, truly cryptographically secure, and added more functionality.
...
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 ...
5
votes
0
answers
70
views
CLI reading logger in Python
EDIT
Updated code
This is my first real project in Python, and also my first time using sql databases. The purpose was initially to provide a very simple interface to track my reading hours using logs,...
6
votes
2
answers
226
views
ds - A directory switcher via tags in Windows command line
I have this repository.
The idea is that there is a file tags sitting in the users home directory, and which contains the tag declarations of the format ...
0
votes
1
answer
152
views
Revisiting beginner problem: Bank account
I've been writing c# for about 4-5 years now mostly at school/uni. I consider it my most fluent language, but I am always learning. I decided to re-try a beginner project with the skills I've learned ...
1
vote
1
answer
133
views
swap two different length group of variable in array
The code below swaps two different-length groups of variables of the same array in the same array.
Is there any other method to achieve this that is less heavy or less redundant?
...
3
votes
1
answer
35
views
Open the best Reddit posts with Nim
I wanted to try out the Nim language so I wrote a simple program to retrieve the top \$n\$ messages on a given subreddit in a given time frame and open them in the default browser.
I would really ...
4
votes
3
answers
305
views
Fully-functioning chess game in Python
This post is in succession to this question. I have implemented all functionalities like castling, en-passant, pawn promotion etc. 50 move rule and 3-move repetition is pending.
I would like my code ...
2
votes
1
answer
47
views
URL link scraper and analyser
I recently wrote a testing tool (called plink) for retrieving all the links from a website (and then retreiving links from the linked pages, and so on).
Essentially,...
1
vote
3
answers
830
views
Write SQL Server table to Parquet file
This is a C# console application that creates Parquet file for SQL Server table.
Given a 5GB SQL table, it takes nearly 65 minutes, so for our bigger tables (up to 500GB), it may end up taking days to ...
4
votes
3
answers
238
views
Word-guessing game
The objective of the game is to guess a five-lettered word in five guesses or less. When the user (player) enters a word, the application will inform the user whether their guess was correct or not. ...
3
votes
2
answers
130
views
Processing a very long single line of comma-separated (?) floating point numbers
I have a sample svg file from the graphics program Inkscape. My objective is to collect every third pair from a very long line of floating point numbers. That seems simple enough. The larger objective ...
3
votes
0
answers
155
views
System to automatically login to my university's Wi-Fi network using HTTP request
What is this?
My university's Wi-Fi network requires students to visit a specific URL and login to the network before we can use the actual internet. This project replicates that same process by ...
0
votes
0
answers
67
views
Windows console based card solitaire (Klondike)
I have written a solitaire card game for the windows console.
It's the Klondike version with 4 cards in each of the 7 piles
(see https://en.wikipedia.org/wiki/Klondike_(solitaire)).
The piles must be ...
5
votes
4
answers
3k
views
Dividing two numbers then handle the divide by zero exception with try/catch
I am new to coding, I hope you can help me to improve my code :)
First of all: The code works correctly.
...
3
votes
2
answers
313
views
(Rev. 2) Command-line Tower of Hanoi game
This is a follow-up from Command-line Tower of Hanoi game -- many thanks to those whose reviwed it.
By request, the project is also available on GitHub. Forks and bug reports are welcomed.
Compiled ...
5
votes
1
answer
140
views
C# console app to subscribe to Chuck Norris API
I'm a newbie when it comes to programming. I'm working on a console app that subscribes to ChuckNorris JSON API and displays the results.
I believe I took into account all possible scenarios. Do you ...
5
votes
2
answers
1k
views
Command-line Tower of Hanoi game
This code has been revised. See (Rev. 2) Command-line Tower of Hanoi game
Compiled with g++ 9.4.0. makefile included. Any ...
7
votes
4
answers
1k
views
Calculate average values for each day of the week for each Meter
I have a program with these two methods. One method to import a set of data from a CSV within the given time period and store them in a dictionary. Here the data in CSV file is stored in following ...
4
votes
2
answers
420
views
Simple and secure Python console menu without conditionals or match case statements
I'm writing a basic tutorial for a simple console menu for Python. I think it is secure, since the input() is controlled by a ...