Top "Playing-cards" questions

Programming questions involving digitally-represented playing cards.

How to initialize a static array?

I have seen different approaches to define a static array in Java. Either: String[] suit = new String[] { "spades", "hearts", "diamonds", "…

java arrays static playing-cards
Card Shuffling in C#

I am trying to write a code for a project that lists the contents of a deck of cards, asks …

c# .net shuffle playing-cards
7 Card Poker Hand Evaluator

Does anyone know a fast algorithm for evaluating 7 card poker hands? Something which is more efficient than simply brute-force checking …

algorithm poker playing-cards
Correctly using LINQ to shuffle a deck

I am attempting to write a simple card game. In an effort to come up with a good shuffling algorithm …

c# linq list playing-cards
Javascript- Lodash shuffle vs. Math.Random()

I'm in the process of coding a simple BlackJack game in Javascript. So far, I have an array like this: …

javascript random lodash shuffle playing-cards
I need help generating a deck of cards in C++

I am trying to generate a deck of cards using C++. I have already written all of the code, but …

c++ playing-cards
OOP Design for Card Game Classes

What would be the best approach when designing the following classes applying design patterns? Deck - addCard, deal, shuffle, getTopCard, …

java oop design-patterns playing-cards
Game architecture and design strategy for a multiplayer card game

I am relatively new to game development so I decided I wanted to create a hobby project from scratch for …

c# .net design-patterns playing-cards