Questions tagged [console]

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

Filter by
Sorted by
Tagged with
-1 votes
0 answers
25 views

How to random the questions for my quiz game in C# Console App [closed]

I create a quiz game app. The user will answer 3 subjects and it is a multiple choices. After the user answers 10 questions per subject, it will display the score per subject and also the overall ...
user avatar
2 votes
1 answer
39 views

Python CLI math game

I'm a self-taught programmer starting out with Python and my latest project is this game: It runs in the console, displays an equation, takes the user's answer, and increases your score if it's ...
user avatar
  • 23
3 votes
1 answer
66 views

Console Slot Machine written in C#

This is my console simulation of the Slot Machine in C#. Please take a look at this code and point out possible ways of improvement. ...
user avatar
  • 39
3 votes
1 answer
85 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 ...
user avatar
2 votes
0 answers
82 views

Command line framework for VBA compiler app, written in twinBASIC :o

Ok compiler is a bit of a stretch... I'm working on a package manager for VBA code, written primarily in python. One fiddly step of the pipeline involves "compiling" packages; this is the ...
user avatar
  • 1,998
2 votes
1 answer
54 views

c++ CLI Ascii image renderer

I am wondering if this is written well or not, I am just a beginner and would like some feedback what should I improve on. Thanks. ...
user avatar
3 votes
1 answer
76 views

ATM Console Program with Java

I am a freshman Computer Engineering student. Variable names are pretty straightforward; I believe it would be easy to understand. Program explanation: First you have to create an account and deposit ...
user avatar
3 votes
1 answer
76 views

Inspect console directly on a web page

Occasionally, I do some web dev on computers where "inspect" is disabled, which can make debugging JavaScript (a language that is really good at dodging errors) a real pain. I've created a ...
user avatar
1 vote
1 answer
121 views

Calculate the average score of students

Problem : Imagine you are a developer and get a job in which you need to create a program for a teacher. He needs a program written in c# that calculates the average score of his students. So he wants ...
user avatar
2 votes
0 answers
53 views

Simple CLI File Encryption

This program is designed to work on the command line by piping stdin to stdout and encrypting or decrypting the input using a symmetric key. Any suggestions for improvement would be greatly ...
user avatar
4 votes
2 answers
104 views

ds - directory switcher - a *nix command line utility for tagging the directories and switching between them via tags (Perl + bash)

I have this program for tagging directories and switching between the folders via tags. The front end is written in Bash (version 4.4.23) and the back end in Perl (5.26.1). Critique request Since this ...
user avatar
  • 25.3k
5 votes
1 answer
87 views

Text-based Tic-Tac-Toe in C

I have written a text-based tic-tac-toe game in C. Are there any ways I can further improve the code? It uses an ENUM to indicate the player type and two bitfields to indicate the board. ...
user avatar
6 votes
2 answers
164 views

Command Line Parser for my VBA package manager written in Python

As the title suggests, I'm creating a package manager for VBA which is modelled loosely on conda/ poetry, allowing you to install VBA modules potentially into "environments", but certainly ...
user avatar
  • 1,998
1 vote
1 answer
41 views

CLI Generator & Parser

I have written a module that allows the developer to generate a CLI and parse given arguments. I am fairly new to C and would love to hear feedback on my code to improve it. All feedback is welcome ...
user avatar
1 vote
1 answer
37 views

Define multiple buttons for Windows commands

I'm teaching myself Python. I wrote this code for work to help me troubleshoot end users PCs. It opens a GUI with a selection of buttons. It's written in python using pyinstaller to convert it to an ...
user avatar
2 votes
1 answer
183 views

Ping pong game (console)

I've made a 2 player game in c# console that is a ping pong game. I've made it in more or less 4 hours and in my opinion it is the best performing game I've made so far. Just to let you know, I am a ...
user avatar
2 votes
4 answers
79 views

The user-facing part of the code base, using Python's argparse package

This question is a sequel to one I asked the other day. The previous question examined the core of my repo; this one examines the user-facing part. If you're curious to see what the repo as a whole is ...
user avatar
5 votes
1 answer
150 views

Rust CLI tool to synchronize files to S3

Learning Rust, I've written a small CLI tool which will Fetch the existing data in S3 Iterate through local folders Upload the files which don't exist in S3 I'd be keen to hear anything I might have ...
user avatar
5 votes
2 answers
388 views

Mine sweeping game for the terminal

Over the holidays I was bored due to lockdown and implemented a mine sweeping game for the terminal. Any feedback is welcome. ...
user avatar
2 votes
2 answers
91 views

C99 - An alphanumeric random char generator

I have built a very small program that is a command line utility for generating alphanumeric characters of a certain length (up to a max. length) called randchars. <...
user avatar
5 votes
1 answer
186 views

I made a little mastermind game in C# to exercise - do I take the right approach?

I'm very new in C#, and the best way to learn, is to do exercises. As I tried to find a challenging exercise, I created this little game called MasterMind. The rules are very simple, and are explained ...
user avatar
  • 53
4 votes
2 answers
288 views

Simple console application to practice OOP and file layout

I am not used to work with OOP so I decided to make a simple console "walk" game to focus on the OOP and the general game design process. I tried to make it as robust as possible but I feel ...
user avatar
  • 139
0 votes
1 answer
62 views

Line-wise input, EOF handling, and behavioral differences between implementations of getchar

I've implemented a menu system where all input calls ultimately go through io_getline, a function which reads a line of input up to the max buffer size or newline (...
user avatar
2 votes
0 answers
50 views

Implement easy CLI options in C using a single-file header

I'm a computer science student, and in 2 of my courses this semester we are writing short C programs to demonstrate the things we are learning about. All of these programs require command-line flags &...
user avatar
1 vote
2 answers
503 views

I Made a Simple BattleShip Game On C# Console

I made a simple battleship in C# console with a little AI ( just a little ) and The goal of this practice is improving my knowledge about OOP. Game Rules: 1.You Attack To The Enemy then he Attacked ...
user avatar
7 votes
1 answer
187 views

C# Console Snake Game

I was busy writing an answer for this question when I realized that I was busy creating a new solution without explaining what the original poster did wrong, again. So I decided to rather post what I ...
user avatar
  • 2,247
3 votes
2 answers
186 views

I made a Simple Score Game in C# Console

I've created a simple score game. The goal is improving my knowledge about OOP. This is my Main method: ...
user avatar
1 vote
1 answer
256 views

Beginner CRUD Console Application

I wrote this basic CRUD app + simple report so I could practice talking to a db directly. I purposefully avoided repository pattern and Entity Framework and only used a library to show the coming data ...
user avatar
2 votes
1 answer
49 views

Implementing a News Ticker

I implemented a console version of a news ticker and I will be glad for a code review. It takes a text from the user and displays it for a given period. How may I get it better? ...
user avatar
5 votes
2 answers
883 views

Hangman game coded in C++

I have completed my hangman project in C++. I would like your thoughts and improvements on my implementation. Here is the code: ...
user avatar
2 votes
1 answer
35 views

Arithmetic quiz on the command line

I am writing a program that asks questions, takes the user's input, and responds according to whether the answer they gave is correct or not. I am looking to improve my code with respect to ...
user avatar
  • 21
3 votes
2 answers
175 views

Print a Menu in the Command Line following SOLID

Problem Description I am building a library that helps me building TUI Apps more faster, for example printing TUI Menus and other components. I would like to get feedback on my design decisions to see ...
user avatar
1 vote
2 answers
49 views

Colour message prettifier in Bash

Features: messages formatted with clear borders errors sent to stderr colour handling colours can be included in other strings echoed to the screen without having ...
user avatar
  • 229
2 votes
2 answers
68 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: ...
user avatar
  • 25.3k
0 votes
0 answers
23 views

ds4mac - directory switcher for macOS/Linux: the script

I have this program in GitHub. It is used for switching to directories via custom tags. Here is the main bash script: ...
user avatar
  • 25.3k
1 vote
2 answers
105 views

Search for text in a file

I have this implementation of Grep where I use re.search: ...
user avatar
2 votes
1 answer
164 views

Terminal python tic-tac-toe game

As someone that started to learn basic python programming, I decided to make a Python tic-tac-toe game for the terminal, to develop my OOP skills. I would like to know if my code has a lot of ...
user avatar
4 votes
1 answer
183 views

More efficient way to create an ASCII maze using box characters

I've written a C# program to generate a random maze, and then draw that maze in the Console mode using box-drawing characters, e.g. ─ │ ┌ ┐ ┬ ┼ etc. It works fine, as below, but I'm not convinced that ...
user avatar
  • 191
7 votes
2 answers
138 views

Ncurses listview control

I am currently developing a terminal-based listview control, that uses ncurses for rendering. The main goal for the listview was to be intuitive, performant, and reusable for other projects. An ...
user avatar
  • 795
3 votes
2 answers
164 views

CLI-Client for interacting with daemon

I have a daemon which I am able to interact with through a cli-client. The daemon will perform some tasks in future e.g. monitoring the rate at which files are added to a directory. Right now when I ...
user avatar
  • 131
7 votes
1 answer
212 views

Stop cheating on home exams using python

Background I am teaching a course at university level, and have lately been working on creating a home exam for my students. However, the institute has given clear instructions that collaboration is ...
user avatar
3 votes
1 answer
63 views

Ask for user input and again on the same line

A function that asks for user input according to some criteria and again on the same line if the criteria is not met. It requires that escape character sequences be enable. ...
user avatar
9 votes
2 answers
987 views

Terminal Typing Game

A few weeks ago, I developed a terminal game that increases your typing speed. The game is all about typing, providing difficulty levels from easy to hard. I feel like this terminal game won't become ...
user avatar
  • 243
3 votes
1 answer
52 views

Simple command line API client for getting quotes

Was given a take-home test as part of a job interview, which I failed due to a supposed lack of tests, logging, error handling and packaging. But I did touch upon all of these.. suggested time spent ...
user avatar
  • 299
1 vote
1 answer
39 views

C scrabble counter with piping input

I want to start making some command line programs in C, this is a fork of something else I made but is more suitable to this site. My big question is there a better way to pipe commands? I think the ...
user avatar
  • 35
2 votes
1 answer
111 views

A simple console in Rust that stores variables runs commands

I'm a C/C++ programmer and this is my first Rust program. A heavy simplification of the console system like used in Quake and Source engine games, that lets you set variables and run commands. I'm ...
user avatar
2 votes
1 answer
196 views

Minesweeper in C# Console - Board Implementation

I created a simple minesweeper game in c#, and wanted to know how to improve it. I didn't really understand how to make it so everything besides the zero opens up. How would I make my class Board ...
user avatar
  • 125
0 votes
1 answer
300 views

for loop in one line (for python -c)

I want to use python -c to remove wheel files from the dist/ directory in my project. (*) Actually, I use the following command: ...
user avatar
0 votes
2 answers
105 views

C# to C++: Basic Console Replication

I'm working on converting my basic cryptocurrency miner from C# to C++ for performance reasons (I've been told that C++ is faster in many aspects). However, that aside, the focus of this post is to ...
user avatar
3 votes
2 answers
85 views

Console TicTacToe in C

Would you be so kind as to review my TicTacToe implementation I wrote in C? I wrote this blind (not looking up other implementations). You can find it on Github here. Any input and/or suggestions ...
user avatar
  • 175

1
2 3 4 5
15