Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Poker Library (Make your own poker game)

[Image: h1SRrCH.png][Image: s8rMaKl.png]


Poker Library

This library would be a good start if you decide to make a poker game.


shuffle algorithms


The github source is subject to change and new features and may differ from this example.

Github link: https://github.com/TheBarret/GameLibrary

Have fun :D -B
That's a pretty neat library.
Interesting to see different things on HF.

Is there any plan to make more for different games?

May I also suggest that you use/fix the Git Ignore? It's kinda not ideal to have some items on the github.
I'm no git expert but it'd make it a bit nicer.
[Image: PVoDiqS.png]
This is quite neat dude!

Do you have any other projects we could see?
(Feb 5, 2017 10:51 PM)phunted Wrote:  This is quite neat dude!

Do you have any other projects we could see?

Im not that fast :P i just do whatever crosses my path. 😎
(Feb 5, 2017 10:55 PM)Barret Wrote:  Im not that fast :P i just do whatever crosses my path. 😎

Just joined, will chat around there often!
If you wonder what happens if two players have identical hands (except suit ofc), one should use the HandValue() function to get an definitive winner, if this turns out to be same, it would be a draw.
You should clean the solution before uploading to GitHub and put the DLL under Releases.

Anyways, since there are a ton of card games it would be nice if you made a lib to handle and shuffle cards and shit like that, so that it would be easy to build games on top of.

The code looks good nonetheless, I can't really find much I have a comment on.

For this part:
https://github.com/TheBarret/Poker.Libra...er/Hand.vb
Cant you use a switch statement instead of a ton of else if statements? I think you could even use reflection to slim the code down and make it more dynamic.
(Feb 6, 2017 12:17 PM)Ninja Wrote:  You should clean the solution before uploading to GitHub and put the DLL under Releases.

Anyways, since there are a ton of card games it would be nice if you made a lib to handle and shuffle cards and shit like that, so that it would be easy to build games on top of.

The code looks good nonetheless, I can't really find much I have a comment on.

For this part:
https://github.com/TheBarret/Poker.Libra...er/Hand.vb
Cant you use a switch statement instead of a ton of else if statements? I think you could even use reflection to slim the code down and make it more dynamic.

Define "clean" in solution?
(Feb 6, 2017 12:29 PM)Barret Wrote:  Define "clean" in solution?

Right click the solution in VS and click on "Clean Solution". It deletes the contents of the debug and release folder and all that.
(Feb 6, 2017 12:33 PM)Ninja Wrote:  Right click the solution in VS and click on "Clean Solution". It deletes the contents of the debug and release folder and all that.

Not one of my main priorities to be honest.
(Feb 6, 2017 12:39 PM)Barret Wrote:  Not one of my main priorities to be honest.

I am just saying. Its no big deal.
(Feb 6, 2017 12:33 PM)Ninja Wrote:  Right click the solution in VS and click on "Clean Solution". It deletes the contents of the debug and release folder and all that.

Those folders shouldn't even be tracked in the first place. Gitignores is the solution to this.

@Barret I see you have a gitignore in your repo, but it is quite lacking. ;p You can just use one of the templates from https://github.com/github/gitignore for easy use. Visual studio gitignore: https://github.com/github/gitignore/blob....gitignore
(Feb 6, 2017 03:44 PM)ubbelol Wrote:  Those folders shouldn't even be tracked in the first place. Gitignores is the solution to this.

@Barret I see you have a gitignore in your repo, but it is quite lacking. ;p You can just use one of the templates from https://github.com/github/gitignore for easy use. Visual studio gitignore: https://github.com/github/gitignore/blob....gitignore

*sigh*, why is this such a problem? I mean really, are we arguing over a folder that contains a few files that nobody would use or bother.
(Feb 6, 2017 03:47 PM)Barret Wrote:  *sigh*, why is this such a problem? I mean really, are we arguing over a folder that contains a few files that nobody would use or bother.

Its not really a problem for small projects like this no. It starts becoming an issue when you have a ton of nuget packages or copying a bunch of stuff into bin folders etc.

Either way, shouldn't be too much work just copying in the premade gitignore into a folder before pushing it to github when doing a new project. :)
(Feb 6, 2017 03:56 PM)ubbelol Wrote:  Its not really a problem for small projects like this no. It starts becoming an issue when you have a ton of nuget packages or copying a bunch of stuff into bin folders etc.

Either way, shouldn't be too much work just copying in the premade gitignore into a folder before pushing it to github when doing a new project. :)

Alright let me clarify this real quick and straight, i never wanted to use github, but you guys insisted, so i did. Now you guys want me to go over small details that i really don't give a damn about. It seem almost you guys are looking for something minor and then start a whole conversation about that small detail that is not even vital to know and i bet not even half the ppl here that downloaded the source noticed that detail until you came along and started to blow this stuff up over nothing. So stop it, i dont care and if starts to be a problem ill solve it there and then, but for the love of god stop ant fucking my threads. Agreed?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by phisnNov 11, 2020 08:44 AM 1 166 Nov 11, 2020 08:44 AM
Last Post: HFDone
[C] by UZHAMar 2, 2016 11:40 AM 3 107 Mar 2, 2016 11:40 AM
Last Post: UZHA
[C] by CECIJ®May 13, 2015 06:09 PM 4 152 May 13, 2015 06:09 PM
Last Post: Corios