Giter VIP home page Giter VIP logo

pokershowdown's Introduction

PokerShowDown

PreRequisites

This application requires .NET Core 2.2 or higher

Installation

Clone

  • Clone this repo to your local machine using https://github.com/mikeberezowski/PokerShowDown.git

From the root directory navigate to PokerApp\PokerConsoleApp

$ cd PokerApp\PokerConsoleApp
$ dotnet run

Features

The current implementation only accepts a single Showdown in a text file.
The current implementation handles a single Showdown with up to 10 players.
Only the following Poker hands are calculated:
Flush
Three of a kind
One Pair
High Card

Usage

If you don't provide an input file a test file will be used (AppData\testData.txt)

There is a windows batch file which will run several test files. From the application directory run runtests.bat

$ .\runtests.bat

You can provide an input file in a .txt format

$ dotnet run input.txt

The file data is in two lines:
<Player Name>
<Player Hand>

Where <Player Name> is a string denoting the player's name and <Player Hand> is a comma separated list of the cards in the following format:
8S, 4D, 9H, 10C
Where the first digits represent the card value: 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A The last digit is a single character representing the suit:
H = Hearts
D = Diamonds
C = Clubs
S = Spades

Example:
PlayerOne
4D, 5D, 4C, 4S, JD

Documentation

Please see the documentation found in the /Documentation folder within the repository

pokershowdown's People

Contributors

mikeberezowski avatar

Stargazers

David Garcia avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.