Game's Project - Grade 12 Data Management
Game's Project - Grade 12 Data Management
My game is a 2-4 player card game. What it is about is each player receives 48 divided by the
amount of players of cards in the game face down (so if there are three players each player
receives 16 cards, 2 players receive 12 cards). The 48 cards are of the standard deck without
any aces. Afterwards the first player of the game plays any card they want. Then, the next
player plays a card that is greater than or equal/less than the card at the top of the pile (the pile
is just where all of the cards are going to be placed) . A 2 is worth the least, followed by a 3, all
the way to a king. If the card that is placed is equal.less than the card at the top of the pile, then
proceed to the next person’s turn, if the card that is placed is greater than the top of the pile,
then the player receives a certain amount of cards in the pile.If the card that is placed is 3
greater than the card at the top of the pile (so if a 6 is placed on a 3), then the player would get
back their own card, plus the card at the top of the pile (resulting in one card being gained). If
the card that is placed is 4 greater, then the player would take their own card, plus the top two
cards at the top of the pile (if there is only one card in the pile, then the player would just get
their own card back that they placed and the top of the pile). This is true until it is 5 greater. If
there is any difference bigger than that, the result would be the same as if the card is exactly 5
greater. The game ends until only one person has cards left, and that person is the winner.
There are no draws in this game, as the game ends until only one person has all of the cards.
Because of this, the chances of winning the game is the same for each player, making it to
where the chances of winning the game is 1/(the players in the game). So if there are only 4
players, there is a ¼ chance of winning.
Testing
Here are the results of playing this game with some of my friends Jaskaran and Joseph (though
this was only for a couple of trials, I played with myself for the majority of these trials).
Legend
J=Jack
Q=Queen
K=King
H-heart
S=Spade
C=Clover
D=Diamond
https://docs.google.com/spreadsheets/d/1Fp_PrtfC0ruoB-XMv2ag2005cTJmn92GMhxcCQM7Y
e0/edit#gid=468302613
Permutations
1. All the possible permutations of handing out the 48 cards.
48P48 =1.24139x10^61
2. All the possible permutations of holding a deck that was already handed out in a 4
player game
479001600
12P12 = 479001600
3. All of the permutations, where on a empty pile, two cards are placed and at least of
them is a 6
3(4C1)=12
4(4C1)*11=176
(12+176)*4=752
These cards can then be rearranged in 2P2 ways, so
752*2P2=1504
4. How many different ways can the colour of the cards be held of are there of holding a
specific combination of 7 red cards and 9 black cards (so in all of the ways, the cards
used are the same, it is just the order that is changed)
PS, I’m only looking at colour permutations, not the cards themselves
16P16/(9!*7!)=11440
5. How many different ways are there of arranging any combination of 7 red cards and 9
black cards so that while holding them in a row, exactly one pair of red cards are side by
side.
24P7*24P9= 8.28*10^20
8.28*10^20*1260=1.04*10^24
Question 5 in the combinations section shows how I got the 1260, in this equation.
6. How many permutations are there of the first two players placing their cards at the
start of the game, for all games (meaning that their is no specific combination of cards
that the players have to hold).
48P2=2256
7. How many permutations are there in a three player game of the 1st two players placing
their 1st and 2nd cards, if the players only have one specific deck and no card is gained
by any player.
16P2*16P2=57600
Combinations
1. All of the combinations of cards that could be played on the first 10 turns
assuming no one gained any cards
48C10=6504715896
THere are 48 different cards, and each player would receive 12 different cards, making it to
were there are 12 items chosen out of a total of 48.
48C12=6.9668534x10^10
3. All the combinations where the card that is placed is not at least 3 greater than the
card at the top of the pile, which results in no cards gained at the start of the
game.
Case 1 a 2 is placed on the first turn
4(4C1*2+3C1) =44
The times 4 is the 4 different combinations of the 2’s, 4C1 are the four different combinations of
the numbers/face cards that are not 2 and are not at least greater than three, and then 3C1 are
the different combinations of the 2 that have not yet been placed.
4(4C1*3+3C1) =60
4(4C1*4+3C1) =76
4(4C1*5+3C1)=92
4(4C1*6+3C1) =108
4(4C1*7+3C1)=124
4(4C1*8+3C1)=140
4(4C1*9+3C1)=156
4(4C1*10+3C1)=172
4(4C1*11+3C1()=188
4(4C1*11+3C1)=188
44+60+76+92+108+124+140+156+172+188*3=1536
4. If you have two 7s, four 2’s and two five’s, how many different combinations can
be made to produce a sum with these numbers.
3C1*4C2*5C1*4C4*3C1*4C2-1=1584
5. How many different ways are there of arranging a specific combination of 7 red
cards and 9 black cards so that while holding them in a row, exactly one pair of
red cards are side by side.
There are 10 different ways of placing the one pair side by side alongside the 9 black cards (one
pair is the red cards that are side by side with 0 black cards to the left, another pair is 1 black
card to the left of the red cards, all the way up to 9 black cards to the left)
In between these gaps, there are 9C5=126 ways of placing the leftover red cards
126*10=1260
Therefore for each combination of these cards, there are 1260 of arranging them if we only take
the colour into account as long as only one pair of the red cards
6. How many combinations are there of placing 3 face cards in the first three turns in
an empty pile
Mutually exclusive
1. What is the probability that a number that will be placed is 2 or 3 greater than the
card at the top of the pile or a 2 or 3
Case 2 J
4C1=4
4C1*2=8
Case 2 or 3 is the top card
(4C1+3C1)*2=14
4-K
4*(4C1*2)*10=400
400+14+4+72/2256=490/2256
=0.22
THerefore, there is a 22%
2. What is the probability that a the number that will be placed is at
least 4 greater than the top of pile or a 2, 3 or 4
4C1*8=32
4+8+12+16+20+24+28+32=144
4*(4C1*3)*9=436
(144+132+436)/2256
=0.32
(4C1*(3C1+4C1*3))*4=240
4C1*(4C1*4)*8=512
512+240=752
4*(4C1*2)*10=320
320+56=376
752+376/2256=1128/2256
1128/2256=½
Case 1 a 2, is placed,
Case 2 a 3 is placed
Let A bet event of placing a 10, and let event B of choosing a 3 on the first turn.
THere are 48 total possibilities, Which would make n(S) be 48. And there are 4 10’s. And 4 3’s,
so n(A)=4 and n(B)=4
5. What is the probability that a 7 or a composite number is placed on the first turn of
the game
Composite numbers
4*5=20
(4+20)/48=24/48
24/48=½
Ways of a multiple 3
4*3=12
Ways of a multiple of 2
4*5=20
Duplicates
4C1=4
(12+20-4)/48=(28/48)
7/16
2. What is the probability of choosing a prime number or a number less than 6 after
assuming there is a card at the top of the pile.
(4C1*(3C1+4C1*3))*4=240
Case 2, a 4, 6, 8, 9, 10, J, Q, K
4C1*(4C1*4)*8=512
512+240=752
Less than 6
Case 1 a 2, 3, 4, or 5 is placed
4*(3C1+4C1*3)*4=240
4*(4C1*4)*8=128
240+64=368
Duplicates
Case 1 a 2, 3, 5, is top of pile
(4C1*(3C1+4C1*2))*3=60
Case 2
A 4, or6-k is top of pile
4C1(4C1*3)*9=432
432+60=492
752+368-492/2256 =628/2256
628/2256=0.28
3. What is the probability that a card that is placed after the top of the pile is at
exactly 4 greater than the top card or odd.
Total set = 48*47=2256
Exactly 4 greater
(4C1*4C1)*8=128
Odd cards
Case 2 a 2, 4, 6, 8, 10, J, Q, K
8*(4C1)(4C1)*4=512
Duplicates
128+512+240-32/2256=848/2256
848/2256=0.38
4. What is the probability that a card that is placed after the top of the pile is at least
5 greater than the top card or even.
2256
At least 5 greater
4C1*7=28
Even
Case 1 a 2, 4, 6, 8, 10 is the top card
4*(3C1+4*(4C1))*5=380
Case 2, a 3, 5, 7, 9, Q, J or K
7*(4C1)(4C1)*5=560
380+112+560-64=988
Duplicates
4*(4C1)*2=32
4*4C1*2=32
32+16+32=80
(988-80)/2256=0.40
5. What is the probability of placing either a heart or a face card for the very first
card.
Let A be the event of choosing a heart, and event B be the event of choosing a face card
There are 48 possible cards, so n(S)=48. There are 12 heart cards in total, so n(A)=12. There
are 12 face cards, so n(B)=12, and there are 3 cards that have both heart and faces, n(A and
B)= 3.
48*48=2304
4*12*12=576
576/2304=¼
2. What is the probability of the same number/face being played at the start of the game
and the next time when there is an empty pile
48*48=2304
4*4=16
16/2304=1/144
3. What is the probability of a 5 of spades or a even number being placed at the start of
the game and the the next time there there is an empty pile a 5 is placed or a even
number
48*48=2304
(21*24)/2304=0.22
4.What is the probability of placing a King at the first turn and a odd number on the next
time there is an empty pile in the game
48*48=2304
4*(5C1*4C1)=80
80/2304=0.03
5.What is the probability of placing a King or queen at the first turn and a odd number the
next time there is an empty pile in the game
48*48=2304
8*(5C1*4C1)=160
160/2304=0.06
6.What is the probability of a 5 being placed at the start of the game and a ten being
placed at the next time there is an empty pile in the game or vice versa.
48*48=2304
4*4*2=32
32/2304=0.14
7.What is the probability that the first two players both play the card that is the leftmost
in their deck at the start of the game in a three player game.
Let A be the event of them both choosing the card leftmost in their deck. There is only one way
of this happening, so n(A)=1. Additionally there are 16C1x16C1, total possible outcomes which
is 256, so n(S)=256
P(A) = n(A)/n(S)
p(A)= 1/256
This makes it to where our probability is 1/256
8. What is the probability of a 6 being placed at the start of the game and a 2 being placed
the next time there is an empty pile
48*48=2304
4*4=16
16/2304=0.007
Total cases if cards are gained in the 1st of the two turns 47*48=2256
Total cases if cards are gained in the 2nd of the two turns.
47*46=2162
Gaining a card in the first of the two turns
Case 1 a J Q or K is placed is placed
(4C1*48)*3=576
4C1(4C1*8C1+3C1)=140
4C1(4C1*7C1+3C1)=124
4C1(4C1*6C1+3C1)=108
16+32+36+48+64+80+92+108+124+140=740
2. What is the probability of not gaining a card after a 5 of hearts is placed in the next two
turns
44+56+72+88+104+120/2162=
=484/2162
=0.22
Total cases if a card is gained in the first turn after the five of hearts 47*48=2256
4P1(35P1)=140
4P1(32P1)=128
;
Case 4 a 5 is placed first
3(24P1)=72
(140+128+112+72+80+64)/2162
=596/2162
There are
1152/2256
(596/2162)+(1152/2256)=0.79
Therefore, there is about a 79% chance of placing a card and gaining at least one card within
the next two turns after placing a 5 of hearts
4. What is the probability gaining at least one card after a 5 of hearts is placed (and no
cards are gained after that 5 is placed)
What is the probability of a Queen and then a king being placed right afterwards at the very start
of the game.
Let event A be placing a Queen on the first turn, and event B be placing a king.on the second
turn
There are 4 Queen’s out a total of 48 cards, making P(A) be 4/48, or 1/12. There are 4 kings
and since there are 47 possible cards in total, P(B|A) is 4/47.
Therefore
P(A and B) = 4x4/(48x47)
P(A and B) = 16/2256
P(A and B) =1/141
Theoretical Probability
1.What is the probability of a twelve and a 10 being placed back to back on a empty pile
(4/48)*(4/47)=0.007
Therefore there is a 0.7% chance.
2.What is the probability of an even number being placed on the 2 of three first three turns.
20C2*16C1/48C3=0.18
3.What is the probability of an odd number being placed on the first turn
16/48=⅓
4. What is the probability of a face card being placed in the second turn if a non-face card is
placed first turn
12/(48-1)=12/47
4*4*4*5/(48*47)=0.14
6. What is the probability of a card being gained within the first two turns
48*47=2256
4*(36)=144
4*(28)=112
(144+128+112+96+80+64+48+32+16)/2256=0.32
7. What is the probability of a Jack or a 2 being the first card of the game
8/48=⅙
Empirical probability
All the numbers gotten here are from the game itself, there are no calculations in this section.
Let event A be the event of a face card being the first turn
P(A)= 9/10
2. What is the probability that the same person will play all of the cards of a specific
face/number
Let event A be the event of the same person will play all of the cards of a specific face/number
P(A)= 1/10
Therefore there is a 10% chance of this happening
P(A)=3/10
Therefore, there is a 30% chance of this happening
4. What is the probability that the game last more than 16 turns
Let event A be the event of the game lasting more than 16 turns
P(A)=7/10
P(A)=10/10
6. What is the probability that two kings are placed back to back by two different people in a
game
Let event A be the event of two kings being placed back to back by two different people
P(A)=6/10
P(A)=⅗
7. What is the probability that exactly two cards are gained at least one in the game
Let event A be the event of exactly two cards being gained at least once
P(A)=9/10
8. What is the probability 5 being placed back to back by two different people
Let event A be the event of two 5’s being placed back to back by two different people
P(A)=2/10
P(A)=⅕
Comments
I played this game with two of my friends named Jaskaran and Joseph.
A couple of comments that were made by the people that played this game is that the game can
take a long while to complete. As the game ends when everyone gets eliminated, and since
each player can only place one card each turn, then, for example in a four player game, the
players that gets eliminated needs to take at least 12 turns. Another comment is that the game
makes you think about the best strategy of how to get the most amount of cards and if possible,
and to try and not to lose valuable cards which your opponent can then use. Another comment
that was made was that.it was hard to remember some of the rules, specifically the rules where
in order to gain cards, you need to place a card that is at least 3 greater, which the people who
played this game said that it was hard to memorize. An additional comment was that the player
with the most face cards usually wins, as face cards cannot be taken, and the same card can be
used over and over again. This meant that for the majority of the game, the winner is obvious.
Improvement
One way to make improvements to the game is to decrease the amount of cards. An example is
only using the number cards (36 cards), which would make the game shorter. Another
improvement that could be made is to make it to where after each cycle of turns (so in a three
player game, it would be 3 turns, one by each player), a random card from another deck could
be added into the game. This would solve the problem of the winning strategy depending on
how many face cards their are. An additional rule that could be added as well, is to change the
rule to where the player loses the card that they place even if it leads to them gaining cards.
THis would make it to where more strategy is involved, and one would have to be careful about
which cards that they placed. The positives of this game is that it makes the players think of
what game they should play, and once the beginning phase is over, there are a lot of turns
where people gain or lose cards.
Conclusion
In conclusion, my card game that is based off of Uno and War contains many math in it it and
the game itself had some positive aspects to it as well as some limitations.