1. Home
  2. Explore
  3. Mathematics
  4. Dobble Card Game Math

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Dobble Card Game Math

Transcript

This is the game of Dobble, a card game for apparently negative six players. I have no idea how that works, but I do know how the game works and it's super interesting. So the way you play Dobble is you draw cards from the deck. Give me a second. Right, so you deal two cards at random. I've just picked two arbitrary cards and you've got to spot which is the matching symbol that's on both of them and you are correct. It is the anchor.

Not gonna lie, took me longer than I expected. But that's the challenge, right? You've got to be able to quickly spot which icon is the same on both of them and this time it's the dog. There you go. How's that? The question now is, how do you make a set of cards such that any two cards you pick are guaranteed to have one and only one symbol in common? For example, the hand. Before we start though, we have to rule out the bad ways of doing this. So for example, if you wanted to make a version of this game with seven, As I was saying, if you want to make what I'm now calling in general a mono-matching game, because there's always exactly one match between any two cards, you could do that some bad ways. So if you have seven blank cards, you could just put the same symbol on all of them and

call it a day. That technically fulfills the requirements. I mean, you could pad it out with other just distracting symbols, but all you've really got now is a glorified version of Find the Atom, which to be honest isn't every spotting a thing game just a version of Find the Atom and or atoms. The other extreme is to just have a unique symbol for every single pair of cards. And so seven choose two is 21. And so for each pair of cards, you give it a unique one of 21 different symbols and technically that works. That is a very nice mono matching game. If you did that for double there are 55 cards in a double deck so 55 choose 2 is 1485. You would need about one and a half thousand different symbols. They actually do it with

57. So the question now becomes not just how can you make a game like double it's how can you make a game like double well. This video came about because my friend and fellow YouTuber, Steve Mould, challenged me to explain the maths of Dobble. I challenge you to explain the maths of Dobble. See? We're actually both nearing a million subscribers, and so we've got this reciprocal challenge thing going on until we get to a million subs. So thank you very much to Steve, and thanks to my sponsors for this video, KiwiCo. They make these kind of construction kits where it inspires curiosity in young people and indeed old people alike. So at the end of the video there'll be more about this

and you can see me try to build some headphones. Off you go. Slick! Okay let's start by coming up with actually an optimal way to make a seven card game of mono match. And optimal can be defined as uses the minimum number of symbols but yet is the maximum amount of fun to play, which means the symbols that match need to be sufficiently surprising or unpredictable for each pair of cards. So we've got our seven cards and the bad way of doing this was just to have individual links between every pair of cards and each link, those lines, represents a symbol that will go on those cards, but like we said before, we don't want to use 21 symbols. We can actually start to rearrange the cards to use symbols on more than two cards. You can actually get three cards to a line, and if you're very careful at rearranging them, you can

get it down to seven lines. So you can have seven card mono match using only seven symbols. And the structure we have discovered is actually a mathematical object called the phanoplane. There you go, plane, because it kind of comes out of geometry, meaning a surface, sort of. And the phanoplane is actually an example of a finite projective plane. And in terms of finite geometry, we mean kind of like discrete. So there are only certain points where you can draw a line, which in our case is where the cards are. There's only a finite number of cards. But because we now know the maths involved, we can scale up to a bigger version of a finite projective plane and see if we can crack the underlying logic behind double.

I'm going to start by laying out 49 of the cards in a 7x7 grid which makes it a bit easier to see the structure of where the lines are. So this top row here you can see they've all got that lightning bolt symbol. We've then got a consistent symbol across every other single horizontal row. We can then be nice and systematic with the columns and the diagonal. So if you start for each of the ones in the top row and come directly down, you will get all of the columns. You can then, instead of going directly down, if you go one across, you'll get the diagonal. So there's the main diagonal here. Every single one of those has got the car in it. If you start on this card, you've got your main diagonal coming down here, the maple leaves. But when you hit the edge, it wraps around and there's our bonus maple leaf. And then likewise you've got the four leaf clovers coming down here and the last bit

over there. And so we have all the diagonals which are one across each time. Then instead of just going down one across one, you go down one across two. So there you go, carrot to carrot, down one across two, carrot, down one across two, carrot, down one, wraps around across two, there's the carrot. And so we can put in all of those parallel diagonal lines. And then likewise, across three, across four, across five and across six. So if we count them we've got the horizontal lines, we've then got seven straight downs or diagonals which is a total of eight different directions which is why every card has eight symbols on it and this would be a perfectly playable version of double but we're not after perfectly playable we're after all optimal. And at the moment this is what's called an affine plane where any two points have a line that joins them but

there's no vanishing points. If we want to go to the full projective plane we can get some extra cards for free. If we took all the horizontal parallel lines we could say that they meet at some distant vanishing point. So parallel lines converge infinitely far away and this contains all the symbols from those lines. Likewise we could do that going straight down. This is the card which has all the symbols from the vertical lines. Then we can fill in all the extra vanishing points for all the other directions. Technically on a projective plane all the points at infinity are themselves on a line which is perfect for this game because we do need one more symbol on all of these. So if you pick two cards from the vanishing points they themselves have have a symbol in common and I've deliberately picked those to all be the terrifying clown symbol. because I wanted that to

be as far away from me as possible. And so infinitely far away, mathematically speaking, felt about right. So that's how double works. You've got your n squared grid, which has n plus one different directions, because there's the horizontal and then n different ways you can go down. And on top of that, you've got your n plus one banishing points, which is why for double, you've got 49 here plus the extra eight, 57 Hang on a minute. Whoa, whoa. If you have a look on the back of Double, there's actually only 55 cards in a set. So while they have used this mathematical structure, this is the proper game of Double, right? They've not actually used all of the cards. This card doesn't exist, and this card doesn't exist. And by doesn't exist, I mean you don't get it with your Double set. You've got to make it yourself. So I've added in the

extra doble cards. And so there's the extra doble missing card there. And we've got, there's the extra doble missing card, which has got this combination of symbols. And you can work that out because you know all the lines that go through that point. So you just put all the missing symbols together. Um, and there you are. So, actually, if you do own a set of Double and you do make these extra two Doeful cards, you've increased the total amount of Spotted by 3.6% for free! Just make them yourself! For the record, I was not able to find out why on earth they don't include those two extra cards. There are theories that it's to do with how you manufacture cards, but I don't buy that. And... There's another version of Dobble. There's a junior kids version of Dobble which uses a

5x5 grid to get a projective plane which means they could have 31 cards for their six symbols but they only include 30 of them. So there you are. For some reason they just don't like including all the cards. Now I need to make it very clear that that system of using a grid to generate the projective plane for this mono match game does work for the doubles we've seen so far. However, it's not the only way to go about it. Let's say you wanted to make a 21 card mono match game. So you start with your 4x4 grid, you've then got 17, 18, 19, 20 and 21 cards if you include the vanishing points that are infinitely far away. The problem now is If you start putting in your lines, and we'll start with the top left corner

here, you do your horizontal line, so you have the same symbol across all of those. You then go and do, let's say, the straight down line, so you do the same symbol on all of those, and the diagonal one. Same symbol on all of those. You're thinking, oh this is going really well. This first card filling in nicely. But then when you try to do the next line, which is down one and across two, you go here. Then you go down one and across two and it takes you off the side and you come back on here. And you've now overlapped. Huh. that's not good. What this means is this card and this card are going to have two different symbols that match. They're going to have the yellow symbol and the green symbol in common. And it's because our system of doing the horizontal line first and then doing all of

the diagonals simply doesn't generate a nice projective plane in this situation. That only works if you're using a prime numbered sized grid to generate your game, which happens to be the case of this and, I'll get it, the kids' version of, um, Some quick side facts, double is based on a grid of n equals seven, double junior a grid of n equals five, and we call these numbers the order of the resulting finite projective plane. What I was just trying to draw would have been a finite projective plane of order n equals four, and while the technique I was using to generate them does not work in this case, it is actually possible. Here's a picture I found on Wolfram of a finite projective plane of of order.

The question now is for which orders can you actually get a finite projective plane by whatever method? And it turns out you can definitely get one if your order is a power of a prime number. And we currently don't know about other cases. No one has ever found a finite projective plane which has an order which is not a power of a prime, but no one has ever managed to prove that they don't exist. It's one of the most important open questions in combinatorics and indeed mono matching games. So there you are, some cutting-edge mathematics. So just because the maths works in one specific situation doesn't mean it works in general and actually it's not even the only way to understand the maths of Dobble. I say the maths of Dobble like it's one set definite thing like there's the game and and there's the maths of the game, but no, mathematics is just a way

of exploring and expressing and exploiting patterns and there's always more than one way to describe something. So you can't just say this is a finite projective plane, even though you can understand the logic behind it as a finite projective plane there are other ways of doing it. So I first came across Double in 2012. Someone called Martin Whitworth saw it in a small shop, bought it and they reverse engineered the mathematics. This is before it blew up and became a massive game and became renamed as Spotted in America. What on America? Say what you see there. This is back when it was quite a niche game and Martin got obsessed with working out how it functioned and they came and did a presentation at the 2012 Math Jam Weekend which is where people get together and share cool bits of mathematics and even then after they pointed out the projective plane stuff they said there's another way

to understand how Doppel works. So if you get all the cards and you put them into a giant circle and then you look at the positions of where one specific symbol is, you can arrange them in such a way that they are at the positions 0, so the zeroth position right at the top, 1, 3, 13, 32, 36, 43 and 52. And those positions have the interesting property that If you take the difference between any two of them, you get a unique number that's different to all the other ones.

And in fact, you get every possible difference is in there somewhere, which has the side effect that if you rotate those positions one position over, they will only overlap with the original positions in one place. Rotate again, single overlap. Rotate again, single overlap. In fact, for the other 56 positions, there will always be one and only one overlap. So this is another way to generate the game. You put your icons at those positions, you rotate it around for every single icon, job done. Not a projective plane in sight. So maths isn't like the definitive answer, it's just a way of understanding the logic behind it. So it turns out double has the same underlying logic as a finite projective plane, which is the same underlying logic as something called a cyclic difference set and it's been around as a game for a lot longer than we thought. I say

game but you can judge for yourself. This is from the American Mathematical Monthly from May 1906 in their Diophantine Analysis section, problem number 142. Let n be an integer greater than 1 and set p equal to n times n minus 1 plus one, etc, etc, etc, etc. And they're setting up the same problem. They're basically saying, how would you design double? But back then, no messing around. Now, it's all fun and games and I've got hilarious props and all this stuff to make maths fun. Back then, no. Let n be an integer. That's how you get people hooked. What an opening, my goodness.

This is exactly the same problem. They're basically asking people to come up with a cyclical different set and it was solved a little bit later in May 1907. Someone wrote in with the answer and there it is, there's the table. So the case for eight, which is the equivalent to our 7x7 grid plus the 7 plus the 1, which is what we got for double. Their numbering system is just offset by 1 when they're looking at these groups and they're the values 0, 1, 3, 13, 32, 36, 43, 52. They cracked it! So exactly the same bit of mathematics had already been discovered in a totally different situation. And you don't even need any of that mathematics to make a mono match game. I actually came across this game which has exactly the same gameplay but completely different mathematics going on behind the scene. This is the earlier

example of a mono match game. Catch the match. Catch the Match is absolutely a mono match game, the same as Double, but it works slightly differently. So there's only 15 cards and all of the cards, they all have the same pictures. So you can see every single card has the same things on it, but the colours change. So to play Catch the Match, you've got to spot the same thing on both cards with the same colouring. Now, I'd never come across this game before. No one I spoke to has seen it before. To be fair, I only spoke to mathematicians. But I was like, okay, I've got to work out how this game functions. So I sent it to Martin. I figured they would enjoy looking into another version of this. And they cracked it. So all of the different icons have eight colorings each, one of which is unique on a single card, and the other seven are on two cards. They're the ones. that match and if you arrange

the cards in a circle you can join up the ones that have the same colouring for each of the different pictures and you get this fantastic kind of a pattern if you overlay them all at once you get a complete graph you get every single link so what they've done with catch the match is the version I was very dismissive of earlier where you just have a unique picture for every single pairing except they've hidden it by clumping them into just 15 different pictures and then each picture has different colorings but each coloring of each picture is a unique pair. I'm not sure if that's genius or lazy. If step one in maths is understand the pattern, step two is exploit the pattern or think how can I mess around with this? And so that's what mathematicians did next. Someone called Martin Harris realized that you could take the idea of your cyclic difference

set and write some code to find numbers with the slightly different property that instead of every single difference appearing once, every single difference appeared twice. They were then able to find such a set and generate Double-Double. So their version of Double-Double or Duo Match, I guess in my terminology, every single pair of cards has two cards that match. Amazing. I'll link to it below. Christian Lawson Perfect realized that if you took the finite projective plane behind Classic Double, not only are there 57 cards but there are 57 of the symbols and on the projective plane you can flip between edges and nodes and so they realized once you've got 57 double cards you could make another set of meta double that has pictures of double cards on them and why stop there you can have

meta meta double where each of the 57 cards has eight of the meta double cards which each feature eight double cards that all feature eight symbols and of course Christian has made a website where you can go and generate these yourselves to any level of recursion you want. It is DrosterDouble. Now with DoubleDouble and DrosterDouble I thought I better get involved. I'm gonna make my own ridiculous version and I'm gonna go get this very carefully for myself because you see I went big.

Behold my invention MonoMatch Myriad. I took 10,303 symbols and generated 10,303 playing cards which each have 102 symbols on them and if you take any two let's grab this one here car oh I've only printed out 101 because I thought any more than that would be bordering on ridiculous. But if you take any two of these, you can try and spot the symbol which is the same on both. There you are. I'll give you a moment. See if you can spot it.

Did you spot it? It turns out it is. Let me see. Actually, I've gotten pretty good at this game. I think it's... the happy little... oh it is, it's a happy little house. So there's a happy little house there and there's a happy little house... where... ah there it is down there, right? And so there you are, that's the match. In fact if I go back to the previous shot, there it is, right? And you might wonder how I got so good at that. Funny story. So... I designed the 10,303 cards. I then picked 101 to send to my friend Lisa who actually got these made for me and she did such an amazing job. I got them back, I pulled them out and I spotted the happy little house and then I got out another two and I had a close look at those and I spotted the happy little house and I got out another two and spotted the happy little house. Turns out when I picked the 101 cards to send to

get printed when I was writing my code to generate them I had to draw them like without because all of them have like a line around them but they didn't want to have a line on the ones that were being printed so I just set a thing that the first 101 was saved twice with and without the pentagon as the outline and the other the rest are all normal but of course they were all from the top row of the grid the 101 by 101 grid that I used to generate these and guess what symbol is on every single card from the top row it's the happy little house so I've accidentally made spot the atom myriad edition it's so embarrassing and I was so close to not admitting what I had done but you know it's on brand So there you are, I've now got a 101

card version of Spot the Happy Little House. However, I did genuinely make all 10,303 digital versions of these. I'm just an idiot when I sent them to get printed. So here's what I'm gonna do. I can't make them all available for download for ridiculous licensing and whatnot issues. However, I can get them checked. So first of all, I'm going to do a behind the scenes on how I actually made these. It'll be on my second channel. You can go and watch that right now. And I'm gonna send a unique set of three digitally to every single person who supports me on Patreon. If you support me on Patreon at the end of April, the very last day of April, the first day of May, I'm gonna email a unique set of three to every single person so you can check it and verify it. It's gonna be approved by crowdfunding. So,

make sure you're spotting me on Patreon, you'll get your own unique set of three and you can go through and you can play, you can play Monomatch Myriad the way the creator intended. You know I might just send some of these to Steve Mould to thank him for the fantastic idea for this video but before that I'll get it myself. I'm gonna thank the sponsor KiwiCo who make these construction kits designed to inspire creativity in children of all ages. And friends of mine who have procreated have raved about these. And I've got a lot of nieces and nephews I want to encourage to take a kind of, you know, making tinkering approach to life. And so I got a bunch of these kits sent out and they loved them. They were building globes, they were designing patterns. One of them made a pizza. Kids. But yeah, they had an amazing time and they were genuinely, they

were also raving about them. So there you are. If you've got some young people that you want to encourage their creativity, get them building things, tinkering with things, you can get these subscription boxes. And if you go to kiwico.com slash standupmaths, I highly recommend them. I had a great time building a set of headphones that I got to do. And I mean, this is right up my street. I love it. But the point is, you can use this to trick young people into becoming engineers. So, get onto it. KiwiCo.com slash StandUpMaths. Now, I... You know what I am? I'm gonna send... Because these are almost as much fun. I mean, spot the house. I mean, these are great, but they can't compete.

For spot the house. So I'm gonna send some of these to Steve and see if he can sign off on if I've met his challenge. Do go check out Steve Mould's channel and give him a subscribe so we can get to a million. And while I was making this video, my friend Ben Sparks mentioned some of his mass communication students at the University of Bath were also working on a video about Dobble for one of their projects. I watched it, it's really good. They cover some things I don't and when they talk about the projective plane, they use the lines to represent the cards and the nodes represent the symbols and it still works. So check out their video and if you've got any time left over, I guess Steve as well. Hey, smiley house. Cool.

Smiley house. Smiley house, they're all Smiley house. I don't think so.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent