Skip to main content

All Questions

Tagged with
5 votes
1 answer
194 views

Parsing command-line arguments with getopt in C++

I did not find anything to parse command-line arguments in C++ (which was surprising), so I fell back to getopt() which has served me well in C (I am currently not ...
Harith's user avatar
  • 9,462
4 votes
1 answer
79 views

Terminal based game: Part 3 (Using templated game)

Working from previous posts In this post: Terminal based game: Part 2 I introduced the concept of a Game object. To build a game like Terminal Base Snake you could ...
Loki Astari's user avatar
  • 95.4k
4 votes
1 answer
76 views

Terminal Base Snake

Based on this Framework Terminal based game: Part 2 A game that uses std::cout to print the board and std::cin to get keyboard ...
Loki Astari's user avatar
  • 95.4k
4 votes
1 answer
91 views

Terminal based game: Part 2

Follow up to: Terminal based game Finished up the framework. Still sticking with the X-Term based version. As I want a very simple framework to use for teaching (not this part initially). But my next ...
Loki Astari's user avatar
  • 95.4k
6 votes
2 answers
2k views

Terminal based game

Looking to build a terminal based game. I am assuming X-Term like terminal. This means: I can use the X-Term control codes to clear and move around the screen. I can use ...
Loki Astari's user avatar
  • 95.4k
4 votes
1 answer
100 views

Parametric - a simple program argument parser

I've made a little header-only library for handling user input for console applications, I'd really appreciate it if you guys took a short look at it and told me what you think. The goal of the ...
Goubermouche's user avatar
8 votes
4 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 ...
Le_Square's user avatar
2 votes
1 answer
135 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 ...
NikolaTeslaPaga's user avatar
2 votes
1 answer
694 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 ...
Tobias Grothe's user avatar
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
2 votes
1 answer
177 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
  • 663
6 votes
2 answers
231 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
  • 28.9k
3 votes
2 answers
333 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
  • 663
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
  • 663
2 votes
0 answers
384 views

How to make a console menu

Showable ...
bebraed's user avatar
  • 63

15 30 50 per page
1
2 3 4 5
10