Function Repository Resource:

# DobbleSets

Generate a set of integers that can create Dobble cards

Contributed by: Sander Huisman
 ResourceFunction["DobbleSets"][n] generates n2-n+1 sets, each with n numbers, where each pair of sets only has a single number in common.

## Details

Dobble is also known as Spot It! in some parts of the world.
n should be an integer.
n-1 should be prime or n should be 2, 5, 9 or 10.
ResourceFunction["DobbleSets"][n] creates n2-n+1 sets, each with n numbers, containing the number 1 through n2-n+1.

## Examples

### Basic Examples (2)

Create a small Dobble set:

 In[1]:=
 Out[1]=

Verify that each pair of sets has a single number as overlap:

 In[2]:=
 Out[2]=

### Scope (2)

Large sets can be created for primes + 1:

 In[3]:=
 Out[3]=

Verify that each pair has a single number as overlap:

 In[4]:=
 Out[4]=

### Possible Issues (1)

Not all sizes are possible or are unknown:

 In[5]:=
 Out[5]=

### Neat Examples (1)

Generate a set of Dobble-inspired cards where each two cards have only one symbol in common:

 In[6]:=
 Out[6]=

SHuisman

## Version History

• 1.0.0 – 03 May 2021