Skip to main content

All Questions

Tagged with
-3 votes
1 answer
82 views

Determine the mapping related to a machine which shuffles cards [closed]

A friend of mine told me about this problem. Given a indexed sequence of 13 cards from Ace to King, there is a machine which shuffles them and gives a certain (indexed) output sequence. Now inserting ...
user1170874's user avatar
0 votes
0 answers
107 views

Maximize the score of a card game

About the game This game consist on a deck of 24 cards. Each has a color (there are only 3 colors) and a number (from 1 to 8), and each card is unique. Every turn you are given cards (randomly) from ...
Agustín Núñez's user avatar
3 votes
2 answers
87 views

Dividing distinguishable cards into distinguishable hands where some hands cannot contain some cards

I am making a computer program to play cards, for this algorithm to work I need to deal cards out randomly. However, I know that some people cannot have some cards due to the rules of the card game. ...
jorisperrenet's user avatar
3 votes
4 answers
276 views

Shuffle a poker deck between 4 players, with least required entropy

We are shuffling a standard poker deck of 52 cards between 4 players, each getting 13 cards. The order of cards for a particular player does not matter. A naive algorithm is to first shuffle the whole ...
Rok Kralj's user avatar
  • 336
0 votes
0 answers
59 views

Directed Cyclic Graph Probability Model?

I'm attempting to write a program (as a personal project for fun) that calculates probability of the game Secret Hitler as it's being played. It's a party game that's based on social manipulation. It ...
nlivingstone's user avatar
0 votes
1 answer
50 views

Play Cards Game Tournament Algorithm

I am currently trying to find algorithm to minimize the total time of a tournament. The game requires $2$ teams of $2$ players in each team (total $4$ players). Then, the perfect number of ...
user3188039's user avatar
2 votes
1 answer
484 views

Beggar-my-neighbour possible games [closed]

How many Beggar-my-neighbour possible games are there? There are 5 types of card: a, b, c, d, e. In a bundle of 52 cards there are 4 cards of type a, 4 of type b, 4 of type c, 4 of type d and 36 of ...
Stypox's user avatar
  • 123
0 votes
0 answers
56 views

Inversions of a Deck of Cards

Suppose I have a deck of cards in some ordering. Consider all of the other possible orderings of this same deck relative to the first one. Is there a bound we can put on the maximum number of ...
T. Fo's user avatar
  • 652
0 votes
2 answers
802 views

Returning a deck of cards to its original state with overhand shuffle

I am trying to figure out the minimum number of shuffles needed to return a deck to its original state based on the number of blocks within each shuffle. The number of cards in each block must add up ...
user221's user avatar
3 votes
0 answers
63 views

Find most varied match assignments for a 4-player card game

I'm a programmer and confronted with a particularly hard (at least for me) problem I couldn't find an answer for. This is not a school task or anything. It is something I need personally. I've ...
domin's user avatar
  • 139
0 votes
1 answer
94 views

Is this the correct way to calculate probability?

I'm trying to create an AI for a game I develop but I run into the problem of trying to figure out how to calculate probability. The probability I'm trying to calculate is what is the probability ...
J Scott Anderson's user avatar
2 votes
0 answers
72 views

Ideal Card Game

I have invented a very interesting card game. All the cards from 2 to 10 (in four colours) are divided evenly between the two players (the deck is shuffled before dealing the cards, of course). Now ...
Voso's user avatar
  • 21
3 votes
1 answer
95 views

A card game with a long path

I recently played an online card game in which the cards were spread on the table. The goal was for me to pick up as many as possible, subject to the following rule: After picking up the first card, ...
Thomas Ahle's user avatar
  • 4,814
11 votes
1 answer
704 views

Algorithm for a deck manipulation

Let's say you have a randomised deck of $N$ different cards. An $M$-action ($M\le N$) is defined as follows: you look at the top $M$ cards of the deck, put as many of them as you choose on top of the ...
Paddy Mo's user avatar
  • 113
1 vote
2 answers
5k views

algorithm explanation for card trick

I have been studying algorithms for a project im developing, and found this card trick, can any matemathical guru help me understand the algorithm behind?? card trick thanks a lot!
manuelBetancurt's user avatar