playing-cards Questions

4

I am currently helping teach a Computer Programming class. (I am in my Senior Year in High School, TA-ing for my Computer Programming teacher.) Right now the students are learning about bit-wise op...
Monied asked 6/8, 2015 at 9:44

9

I am trying to write a code for a project that lists the contents of a deck of cards, asks how much times the person wants to shuffle the deck, and then shuffles them. It has to use a method to cre...
Romulus asked 19/7, 2009 at 19:20

5

Solved

this is my first question ever. Just to clarify, I did check to see if there were any questions that could have helped me before asking this. Apologies in advance if I do anything incorrectly, I'm ...
Gallup asked 25/7, 2018 at 7:27

9

Solved

Does anyone know a fast algorithm for evaluating 7 card poker hands? Something which is more efficient than simply brute-force checking a every 21 5-card combination of hands from a set of 7. Chee...
Aegeus asked 13/5, 2010 at 19:59

4

Solved

How can I loop through all combinations of n playing cards in a standard deck of 52 cards?
Katydid asked 22/2, 2011 at 10:4

1

Solved

I'm looking to make a function that would assign a value to a specific shuffle of cards. The function has to be bijective. The deck has 52 cards so there are 52! different shuffles, therefore the...
Pontefract asked 5/1, 2018 at 12:17

3

Solved

I am attempting to write a simple card game. In an effort to come up with a good shuffling algorithm I came across Jeff Atwood's post on Coding Horror. However When I view the contents of the obje...
Emulsoid asked 5/10, 2013 at 18:55

1

Solved

I'm in the process of coding a simple BlackJack game in Javascript. So far, I have an array like this: var deckArray = [ "card1", "card2",...,"card52" ] I have a "deal" function set up like thi...
Rowe asked 10/10, 2016 at 23:28

3

I'm writing a program that evaluates the integer values of 4 playing cards (numbers 1-13), and displays a solution that equals 24. I have a large if statement that I've written for this and have re...
Brunhilda asked 6/5, 2015 at 15:10

2

Solved

I am trying to represent standard playing cards in F#. My goal is to implement a clone of Microsoft Solitaire (the one that comes with Windows) , a game in which Cards' Suit, Face, and Color are im...
Veer asked 12/3, 2015 at 4:4

5

Solved

When I need to shuffle a deck of poker cards in Java/Android, I use Collections.shuffle(List<?> list), of course. I've ever been doing this and the results seemed acceptable. But they aren't....
Logicize asked 3/5, 2013 at 14:44

4

Solved

I'm writing a code for a deck of cards which shuffles the deck of cards. I tested the code but I don't really know if it's actually doing what it's supposed to be doing correctly? What do you think...
Beachlamar asked 6/8, 2012 at 21:1

3

I have a working F# program that runs Dominion, a card game. I would like to use a genetic algorithm to determine optimal strategies for playing. However, I don't know much about AI or genetic algo...

3

Solved

Is it possible to add constant field values to F# discriminated unions? Can I do something like this? type Suit | Clubs("C") | Diamonds("D") | Hearts("H") | Spades("S") with override this.T...
Proposition asked 30/4, 2012 at 12:39

3

Solved

The problem consists in choosing the best option at every moment of the game following these rules: You can only pick the leftmost or the rightmost card. Your opponent will ALWAYS pick first, and...
Radiometer asked 12/1, 2012 at 6:1

2

Solved

I have seen different approaches to define a static array in Java. Either: String[] suit = new String[] { "spades", "hearts", "diamonds", "clubs" }; ...or only String[] suit = { "spade...
Counterpunch asked 8/8, 2011 at 9:37

6

Solved

I'm considering writing a computer adaptation of a semi-popular card game. I'd like to make it function without a central server, and I'm trying to come up with a scheme that will make cheating imp...
Adagietto asked 1/7, 2011 at 20:1

5

Solved

this is my first time at stack overflow so I'm sorry if the format doesn't fit quite right with the site. I just recently started learning programming, almost 2 weeks have passed since. I'm learnin...
Stifling asked 2/6, 2011 at 13:57

6

Solved

I have been playing around with writing some simple card games in Python for fun and I would like to add a graphical user interface (GUI) to the games. Which library would you recommend for writing...
Aid asked 12/3, 2009 at 0:53

4

Solved

I am a Clojure newbie. I am trying to get two copies of a vector of card suits. The non-DRY way that I can come up with is (def suits [:clubs :diamonds :hearts :spades]) (def two-times (concat sui...
Inadvertent asked 23/4, 2010 at 18:34

3

Solved

Questions Is there a best value to stay on so that I win the greatest percentage of games possible? If so, what is it? Edit: Is there an exact probability of winning that can be calculated for a ...
Misdirect asked 20/2, 2010 at 7:39

2

Solved

I am relatively new to game development so I decided I wanted to create a hobby project from scratch for both experience and entertainment. The specific game is similar to poker known as Three Card...
Thurman asked 3/3, 2009 at 3:36
1

© 2022 - 2024 — McMap. All rights reserved.