A command line poker simulator made in C++.

Related tags

Game c-plus-poker
Overview

C Plus Poker (C++ Poker)

Introduction

This is a C++ console application that simulates the scoring of a Poker game. Unlike typical Poker, this application allows for any number of players and numbers of cards other than 5. It was developed in Visual Studio Code with the C/C++ extension for VS Code. I used MSYS2 for Windows to provide Mingw-w64, which provides things like g++ and gdb for building and debugging. This repository also contains my .vscode folder, which contains my build and debugging instructions. My path for Mingw-w64 is located at "C:\msys64\mingw64\bin", but this can be changed.

For detailed instructions on how to copy my development setting, you can refer to VS Code's documentation on using GCC with MinGW.

Deliverables

UPDATE: This section has been edited to reflect the new state of the repository. poker.exe and "testing\handsmaker.exe" have been removed from the repository, and v1.0.0 has been put out as a release build. You can find it under releases. It must be run from the command line like so:

.\CPlusPoker.exe [-optional flags]

Testing

To very quickly test large amounts of sample data, I wrote a seperate program "testing\handsmaker.cpp", which generates hands and creates a random "hands.txt" file. These files can then be used for testing with the main program to observe and note any inconsistencies.

Running

As mentioned earlier, the program can be run with optional flags. The usage is as follows:

Flag Params Effect
-h Displays usage information and any optional flags.
-d [dir] Used to specify the path to file "hands.txt". Otherwise, uses default file in root directory.
-p Prints out full output of game, including each player's hand and hand ranking.
-t Prints out ties in winners list.

Here are some examples:

.\CPlusPoker.exe -p -d testing\hands.txt

This runs the program with game print out, no ties shown, and specifies the test file generated by "testing\handsmaker.exe" as the target file.

.\CPlusPoker.exe -t

This runs the program with only the winners list, ties shown, and uses the default file.

.\CPlusPoker.exe -h

This shows the usage in the console and terminates.

Conclusion

This concludes the overview of C Plus Poker.

Start time: Tuesday, October 19, 2021, 6:46:56 PM EST

Stop time: Wednesday, October 20, 2021, 6:34:05 PM EST

Releases(v1.0.0)
Owner
Zach Schickler
UCF MS Student
Zach Schickler
Orbiter is a spaceflight simulator based on Newtonian mechanics.

Orbiter Space Flight Simulator Orbiter is a spaceflight simulator based on Newtonian mechanics. Its playground is our solar system with many of its ma

null 1.3k Jun 23, 2022
Open-source repository of Orbiter Space Flight Simulator

Orbiter Space Flight Simulator Orbiter is a spaceflight simulator based on Newtonian mechanics. Its playground is our solar system with many of its ma

Orbiter Space Flight Simulator 1.3k Jul 1, 2022
Project 1945 is a top down scroller game made with SDL2, CMake and programmed in C as a project of study for the Italian Videogames Academy for the 3rd year course of Videogames programming.

Project 1945 is a top down scroller game made with SDL2, CMake and programmed in C as a project of study for the Italian Videogames Academy for the 3rd year course of Videogames programming. The game is based on the old videogame 1945: The Final Front of the 2002.

null 17 Sep 27, 2021
tiny game made in ~15 hours on stream

A small game made entirely on live stream over about 15 hours. I intend to add more documentation and clarify some of the code and assets over the next few days.

Noel Berry 171 Jun 19, 2022
Third-person survival game for Unreal Engine 4 made entirely in C++.

Third-person survival game for Unreal Engine 4 made entirely in C++. Originally built as a 6 section tutorial series, now available as open-source C++ sample project.

Tom Looman 2.6k Jul 2, 2022
A procedural sprite animation tool made with the nCine

SpookyGhost A procedural sprite animation tool made with the nCine. You can read the manual online or you can access it by pressing F1 in the program.

SpookyGhost 192 May 23, 2022
A (broken) SDL2 game made in 48 hours

Twini-Golf Twini-Golf is a game created in 48 hours for the 2021 GMTK Game Jam using C++ and SDL2. It can be played on itch.io. Screenshots Background

PolyMars 150 Jun 24, 2022
A simple snake game made in C language.

My-snake-game This is my first game more to come! to play the game execute the snake.exe and press X to start. W to go up / D to go right / A to go le

Ayman Baioumy 3 Sep 14, 2021
Multiplayer ludo game made in Unity

LUDO Multiplayer ludo game made in Unity This a multi-plaayer game. But due to lack of budget I am not able to make it online multi-player. So users h

Soumavo Dey 21 Mar 11, 2022
Small cheat I made for Back 4 Blood during the open beta of the game (Aug 12th to 16th, 2021)

Small cheat I made for Back 4 Blood during the open beta of the game (Aug 12th to 16th, 2021). This is meant as a reference only. I do not condone cheating in any way, it is merely a side project for fun.

null 7 May 16, 2022
My first Game was made by C++

Project_GallowsGame My first Game was made by C++ The game is created for a one-time launch a Hangman game) 1)File ".gitignore.txt" help dont see Game

null 3 Feb 4, 2022
A game made for the Game (Engineless) Jam using Raylib

Fastest Pizza Delivery A fun little 3D game made for the Game (Engineless) Jam. It is still is development but the basic gameplay is something l

Ryuzaki 2 Apr 3, 2022
A free, undetected CS:GO Cheat I made

CS-GO-Cheat A free, undetected CS:GO Cheat I made How to use the CS:GO Cheat [+] - Download it, then compile the cheat [+] - Put both the loader.exe a

gupr0x4 2 Sep 15, 2021
A Splitgate Internal Cheat I made

Splitgate-Cheat A Splitgate Internal Cheat I made How to use the Splitgate Internal Cheat [+] - Download it, then compile the cheat [+] - Put both the

xEnething 6 May 12, 2022
Pure C Arcade game. Cross between pong and breakout, made it by accident

LameBall I accidentally made this game while testing some code. It's kind of a cross between Pong and Breakout, mixed with Squash/Racquetball. >> DOWN

Phil Bagshaw 2 Sep 17, 2021
Building Escape is a simple room escape game made with Unreal Engine 4.27 and C++.

Building-Escape Building Escape is a simple room escape game made with Unreal Engine and C++. The main purpose of the game is to find a way to escape

Christine Coomans 2 Dec 13, 2021
A simple 2d snake game made using opengl in c++

opengl-snakegame A simple 2d snake game made using opengl in c++ Demo Keyboard Controls P - To resume/start or pause the game R - To restart the game

Dhruv Sawarkar 2 Dec 8, 2021
A Minecraft like game with basic rendering, movement, block placement.. All made from scratch

Voxel-Game-Demo A Minecraft like game with basic rendering, movement, block placement.. All made from scratch Downlod Pre-compiled binaries (executabl

null 1 Dec 30, 2021
Sequential impulses physics engine made for learning purposes

A 3D physics engine that uses Separating Axis Test for collision detection, the clipping method for generating contact manifold, contact point reducti

Ahmad Saleh 1 Nov 24, 2021