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
2 votes
1 answer
122 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. ...
Adalwolf's user avatar
3 votes
1 answer
104 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 ...
norway-yv's user avatar
  • 141
1 vote
1 answer
19 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 ...
markb's user avatar
  • 171
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 ...
Labricecat's user avatar
5 votes
2 answers
171 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 ...
Dexter Thorn's user avatar
  • 2,154
2 votes
1 answer
60 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 ...
random_letter's user avatar
4 votes
0 answers
62 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. ...
coolcoder613's user avatar
0 votes
1 answer
94 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 ...
lester's user avatar
  • 301
2 votes
1 answer
93 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 ...
Mode77's user avatar
  • 641
2 votes
1 answer
218 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 ...
J. Lo's user avatar
  • 53
1 vote
0 answers
37 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 ...
Coupcoup's user avatar
  • 1,067
6 votes
2 answers
529 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 ...
schuelermine's user avatar
3 votes
1 answer
119 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, ...
Jan van Wijk's user avatar
4 votes
1 answer
93 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. ...
Reilas's user avatar
  • 151
3 votes
1 answer
84 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 ...
Katie Grace Porter's user avatar
5 votes
2 answers
872 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 ...
Gabriel Silva Schilive's user avatar
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 ...
South's user avatar
  • 113
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 ...
South's user avatar
  • 113
0 votes
1 answer
145 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. ...
codec's user avatar
  • 27
8 votes
5 answers
1k 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. ...
aschultz's user avatar
  • 349
3 votes
1 answer
89 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 ...
gazoh's user avatar
  • 2,902
2 votes
0 answers
111 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. ...
Ξένη Γήινος's user avatar
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
5 votes
0 answers
68 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,...
user avatar
6 votes
2 answers
223 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 ...
coderodde's user avatar
  • 27k
0 votes
1 answer
146 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 ...
Jay's user avatar
  • 214
1 vote
1 answer
119 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? ...
Ill Magnus's user avatar
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 ...
user avatar
4 votes
3 answers
253 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 ...
RandomCoder59's user avatar
2 votes
1 answer
43 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,...
Jessica's user avatar
  • 818
0 votes
1 answer
488 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 ...
Srini's user avatar
  • 1
4 votes
3 answers
148 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. ...
Brad's user avatar
  • 41
3 votes
2 answers
126 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 ...
Bryan-StackExchange's user avatar
3 votes
0 answers
122 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 ...
eccentricOrange's user avatar
0 votes
0 answers
49 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 ...
AcK's user avatar
  • 141
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. ...
jasmine's user avatar
  • 53
3 votes
2 answers
309 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 ...
Mode77's user avatar
  • 641
5 votes
1 answer
136 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 ...
TheChosenOne94's user avatar
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 ...
Mode77's user avatar
  • 641
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 ...
HARINDA VITHANA's user avatar
4 votes
2 answers
330 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 ...
Rob McCormack's user avatar
9 votes
2 answers
189 views

iChemistry - Learn chemistry with python

I decided to build a quiz type of game for improving chemistry linguistics using python. Currently there is not much variety in terms of questions, but before expanding the question base, I would like ...
RandomCoder59's user avatar
8 votes
2 answers
1k views

Text based chess game in Python

I have reached a significant milestone since the start of my chess game project. I have implemented all basic functionality. There is no castling, en passant and pawn promotion yet but I have ...
RandomCoder59's user avatar
1 vote
1 answer
101 views

Choose item from list

I wrote small console application where you can choose an item from given list of strings. Works fine so far but since I am beginner I have some questions if I am doing this right. My biggest concerns ...
Happy Coconut's user avatar
2 votes
0 answers
271 views

How to make a console menu

Showable ...
bebraed's user avatar
  • 63
1 vote
1 answer
223 views

Select Menu in Command Prompt

I want to make small console app where you can choose an option from a list using the arrows on the keyboard. Here is my code: ...
Happy Coconut's user avatar
5 votes
3 answers
685 views

Simple N Puzzle console game

I am completely new to object oriented programing (OOP). I have also never worked with C# before. The exercise from my book had some requirements that should be ...
Darke's user avatar
  • 163
1 vote
1 answer
156 views

Robot battle game Terminal game code

This is a project for a class and all the requirements are met, I just wanted to do a little more and make this even better. All the changes that I've made are already implemented and I would like to ...
AstralSystem7's user avatar
6 votes
2 answers
944 views

C safe getline()

For a recent project of mine I had to do read input from the console in pure C with no external libraries (in other words, code I've written by myself). I don't like the standard formatted input such ...
404 Name Not Found's user avatar
1 vote
0 answers
170 views

Golang HTTPS certificate expiry checking CLI tool (UPDATED)

I previously submitted this CLI tool to this site for review and have made changes based on comments by the reviewer. I have refactored the code, fixed a bug (the tool will no longer output ...
preetpalS's user avatar

1
2 3 4 5
17