Skip to content

A C/C++ playground for exploring diverse concepts like algorithms, game engines, CMake, and more. This evolving repository is a space for experimentation, designed to deepen understanding of C++ while encouraging growth and innovation.

Notifications You must be signed in to change notification settings

ibra-kdbra/Cpp_Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

C++ Projects PlayGround

      I hope this repository continues to grow and teaches me
       new things about this fascinating programming language
      ._._._._._._._._._._._._._._._._._._._._._._._._._._._._.


         *   .   `   .  ` *  `  .   *   .   `   .   `   .   +   
                  ________        *    .      .     *   .
                /   _____  \    .    *     `     .  `   .     *
               |  /     \   |       .  `  .   *   .   +   .  `  
               |  |      Β―Β―Β― _||__||_   `    .   ,   `   .   *
               |  |       __ Β―||Β―Β―||Β―   PLAYGROUND  .  *    .  
                \  \_____/  |       .  `  *   .  +   .  `  *  ,
                 \_________/    .  *   .   `   .  ` *  `  .  
        *  .  `  .   *   .   +   .  `   *   .   `   .  ` *  `  .  

      .~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

πŸ“š Table of Contents

  - Overview

  - Side Note

🧾 Projects Titles
A-I I-R S-Z
Atari Games Introspective Regular Expression Convertors
Beneficial C Programming Javascript Compiler SFML Multithread Verlet
Chess 3D JsonConverter Simple Code
Chess-Engine Key to Value Simple Turso
Collatz Conjecture MarbleMarcher Simplesdl2 Game Template
CPP20 Develop Matrix ScreenSaver Static Page Generator
Customized Operators MiniShell SystemMonitor
Define Evil Mojan Template Language Generator
Design Patterns Mothbar Thread Pool
Dump C++ OfxAsync TokenizerTok
FileLockSocket OpenGL Examples Trigonometric Functions
GenXPassword Pipes ScreenSaver Volumetric Clouds
Hangman POng ViteFA Config
InjectHook Random Utility Tools WordProc

Overview

This repository serves as a personal playground for experimenting with various C++ projects. It includes original implementations, as well as forked or cloned repositories from other developers with my own improvements where applicable. Each project aims to explore different concepts and features of the C++ programming language.

Side note:

Projects are organized alphabetically for easy navigation. Each corresponding README file provides specific details, usage instructions, and credits for any borrowed code.

Projects

A collection of classic Atari-inspired games, implemented in C++:

  1. 2048 - (β…°)

    2048_AI is a set of AI strategies that play the popular 2048 tile-merging game.

    Try it on the website

  2. Snake - (β…°)

    A classic snake game made in C++ using SFML library.

  3. Tetris - (β…°)

    Simple Tetrisβ„’ β€” one of the smallest Tetris implementations in the world! Utilizing only ANSI escape sequences to draw the board.

  Preview:

2048 preview

tetris preview snake preview

Compile and execute C "scripts" in one go!

A shell script designed to streamline the process of compiling and executing C (and C++) scripts with unparalleled speed. This tool allows users to run C code directly from the command line or via shebang, making it as convenient as running shell scripts. With support for multiple files and customizable compiler options.

A simple 3D chess game that depends on GLFW and GLM, with U-R-C-F for game controls.

A Chess Engine implemented in C++17.

Learn more about the Collatz Conjecture.

A program that attempts to solve the Collatz Conjecture question, which asks whether repeating two simple arithmetic operations will eventually transform every positive integer into one.

A versatile collection of compile-time optimized tools for C++ programming.

This library uses the latest C++ features available in GCC, Clang and Visual Studio 2019 and 2022.

Co-Cpp19 contains numerous sublibraries and is splitted into many small headers. This aims to enable the "pay only what you use policy" of C++ at compile time.

Implements custom operators for C++.

Like what?

In C++, one cannot create new operators such as <> or |&. However, you can create a variable named x of a newly created type with an irrelevant name and overload the operators < and > so that you can write < x >, creating new operators of sorts.

A macro library for the morally compromised C and C++ programmer.

It's an MIT-licensed collection of clean, modular, well-documented macro hacks with full unit test coverage.

Why?

Complex macros are useful when pushing the limits of what C/C++ can do. For example, you could use #define EVIL macros to construct a domain-specific language that is technically C or C++ (compiled by any normal compiler) but looks and feels quite different. An extreme example of this is Python++, where many of these ideas originated. #define EVIL was created to split out and clean up the reusable bits of Python++.

Object-Oriented Design(OOD) patterns implemented in C++ based on the book Head First Design Patterns: A Brain-Friendly Guide.

Implemented design patterns:

  • Abstract Factory Pattern
  • Command Pattern
  • Decorator Pattern
  • Factory Method Pattern
  • Observer Pattern
  • Singleton Pattern
  • Strategy Pattern

Dump C++ Itanium ABI from ELF objects.

A tool used to inspect C++ binaries for debug symbols (Learn more) and virtual function tables (Learn more) information.

Transfer files quickly and securely!

The project utilizes PBKDF2 for key derivation, employs AES-256-GCM for encryption/decryption, and uses SHA3-256 for integrity checks.

Shuffled random and customizable password generator.

Features

  • Support for languages: Arabic, English, Spanish, French, Japenese.
  • Generates passwords of variable length, from 1 to 512 characters.
  • Support for custom characters.
  • TrayIcon Available
  • Modular source code
  • Cross-Platform
    • Windows, macOS and Linux.

A simple Hangman game created using C++ and SFML.

What is the Hangman game? Learn more

Features:

  • Word and hint loading from a CSV file.
  • Hangman image updates based on incorrect guesses.
  • Sound effects for win and lose conditions.

Preview:

 guess guess

 guess

A lightweight C++ library designed for function interception within injected DLLs, providing a streamlined approach to modifying application behavior at runtime. It is ideal for educational purposes, debugging, and dynamic software analysis.

Introspective is a header file that brings reflection to any class that wants it, regardless of whether the reflected member is a constant, a static variable, or an instance member function. It records declaration order, (function) type, and address, passing them along unchanged during compile-time, with the ultimate goal of making interaction with embedded scripting languages like Lua a little less of a hassle.

The goal of the project development was to learn the mechanisms of compilers. The project contains five parts:

  1. A lexer
  2. A parser
  3. An interpreter
  4. A compiler
  5. A virtual machine

The designed programming language is similar to JavaScript but much simpler. Code samples can be found in each part's test case folder.

A C++ library providing a std::string parser for JavaScript Object Notation (JSON). The STL containers are used to represent the JSON entities: Object, Array, and Value.

k2v (key-to-value) is a very very simple config file format. It's simple, rigid, without super cow power, and maybe stupid. It only designed for one purpose:

  • Get the value of the key.

Marble Marcher is a video game demo that uses a fractal physics engine, and fully procedural rendering to produce beautiful, and unique gameplay unlike anything you've seen before.

The goal of the game is to reach the flag as quickly as possible, but be careful not to fall off the level or get crushed by the fractal! There are 24 levels to unlock.

A Matrix terminal screen saver made in C.

 Preview:

 

Minishell is a simplified shell program that emulates a Unix-like shell environment. It is built using C and provides a basic command line interface (CLI) where users can interact with the system, execute commands, and manage environment variables. This project also includes implementations of several built-in commands such as cd, echo, env, and more.

  Features:

  • Command parsing and execution
  • Signal handling
  • Heredoc support
  • Environment variable management
  • Execution of external commands
  • Error handling
  • Readline integration
  • Compilation and Makefile

A simple, minimal & performant text editor written in C with only C's Standard Library.

With Syntax highlighting supported for:

  • C/C++
  • JavaScript
  • Python
  • SQL

Preview:

mojan

A small bar utility written in C for FreeBSD, which displays information such as the current desktop, clock, and volume. It works by creating FIFO pipes to receive data, and updates the bar in real-time using XCB for interaction with the X server.

  Features:

  • Clock display
  • Desktop indicator
  • Volume display
  • FIFO communication
  • Real-time bar updates

An openFrameworks addon compatible with versions 0.9.8 to 0.10.1, designed to simplify multi-threading through a straightforward wrapper around ofThread.

A collection of examples created while taking a Computer Graphics course to better understand OpenGL and apply techniques learned from the literature.

  Preview:

 
 

A Pipes terminal screen saver made in C.

 Preview:

 

A Pong (learn more) clone for Linux written in C++ using SDL 2.0.

  Preview:

 

This subdirectory provides an overview of several converters used for instrument conversion between different formats such as BNK, IBK, and OPN. Each converter serves a specific purpose in processing sound patches and instrument banks.

  Implemented converters:

  • OPN Dumper Converter
  • BNK Patch Converters
  • CSV Patch Set Converter
  • IBK to OPL

This project includes three converters:

  • Regular Expression to Deterministic Finite Automata
  • Regular Expression to Non-deterministic Finite Automata
  • Regular Expression to Epsilon Non-deterministic Finite Automata

Demonstrates a multithreaded particle simulation using the Verlet integration method for calculating particle motion, with optimized collision detection and interaction. It leverages SFML for rendering and handling the GUI.

Key Features:

  • Multithreading
  • Verlet Integration
  • Optimized Collision Detection
  • SFML (Simple and Fast Multimedia Library)

  Preview:

 

An experimental 3D/game engine technology partially based on the Urho3D codebase.

A collection of algorithms and data structures implemented in C++ for educational purposes and practical applications.

Brief View of Contents:

  • ALgorithms
  • Data Structures
  • Plain Approaches

Preivew:

draw tree A* Four Wheels

Images above showcase the GUI of a Binary Tree implementation, as detailed in the Plain Approaches section, as well as A* implementation on Four Wheels problem as detailed in the Algorithms section.

A template for a future game that I am currently working on.

  Preview:

 

staticpagegen is a tool used to generate static pages for directory hierarchies, using the simplest possible form for the protocols it supports.

This project contains the result of the second project of the Udacity C++ Nanodegree Program. The project involves creating a system monitor for the Linux Operating System, which depends on the ncurses library.

A small POSIX shell script for generating C/C++ code structures, build system files, and more.

A terminal file manager implemented in C++20 using the ncurses library.

  Preview:

  preview

A thread pool is a software design pattern for achieving concurrency of execution in a computer program (learn more). This project is a simple async thread pool implementation in C++.

A simple, dependency-free, single-header source code tokenizer written in ANSI C. It features an easy-to-use interface for manipulating tokens and concatenating them back into a string.

A small program that lets you visualize multiple trigonometric functions, built in C++ using OpenGL and GLUT.

  Preview:

 

ViteFA_config is a highly efficient configuration management system implemented in C. It is designed to handle over 100,000 concurrent agent connections with sub-second propagation of configuration changes. The system uses MySQL for storage and relies on libshmcache for shared memory management. The shared memory type is configured to mmap, and recycle_valid_entries must be set to false for the cache.

A real-time GPU volumetric clouds renderer via OpenGL, based on The Real-time Volumetric Cloudscapes of Horizon: Zero Dawn by Andrew Schneider.

  Preview:

  Collage of real-time render results from the volumetric clouds renderer

An attempt to write a word processor using C++20, Qt5, and CMake as the build system.

About

A C/C++ playground for exploring diverse concepts like algorithms, game engines, CMake, and more. This evolving repository is a space for experimentation, designed to deepen understanding of C++ while encouraging growth and innovation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published