Dominoes are tiles or pieces that are 1×2 rectangular shaped with each 1×1 square marked spot that indicates typically variety between 0 and 6. The precise origin of dominoes remains a mystery; though the Egyptian tomb has been dated back to the earliest domino sets around 1355 BC. Even the fact that is still less clear is when and where various games involving dominoes arose.

Today, the sport of Dominoes is immensely popular around the world, with annual tournaments including the globe Domino Tournament, World Championship Domino Tournament, Domino USA, and Federation International de Domino. The sport is typically played by two or four players who act laying down dominoes in an exceedingly chain with the numbers matching at each adjacency.

Traditional dominoes sets consist of all 28 pairs of numbers between 0 and 6 that are unordered (a “double-6” set). Larger domino sets include all numbers between 0 and 9 (double-9s) and everyone number between 0 and 12 (double-12s). In this paper, a general version of the game has been considered in which the numbers on either side of a domino can tackle any value, so the quantity of tiles is unrestricted.

In Section 2, the generalized dominoes game is formalized for one or more players and they can play under both cooperative and competitive play moods. In Section 3, we explore the cooperative version of the sport. Specifically, we show that single-player (cooperative) dominoes are in P, while p-player cooperative dominoes are NP-complete for any p ≥ 2.

In Section 4, we show that competitive dominoes are PSPACE-complete, similarly to a competitive team variant. The form of our proofs is rather like those for the related cards of UNO; see Section 2.4. Finally, we list some open problems in Section 5.

### Related Article

- How You Will Play Domino Online Game?
- The Domino Effect and Benefits of Playing Dominoes Game Set
- double 12 dominoes in a set and the Rules to Play

** Classic Domino Theory**

According to the classic domino theory, the typical domino set consists of 28 dominoes. Each domino may be a rectangular tile made from two faces, where each face contains an integer value from 0 to six. (Typically, the domino’s faces are marked by dots kind of like the faces of a die.)

An entire set of dominoes consists of all possible pairs of numbers, including doubles, without repetition. The game of dominoes1 is normally played with two or four players. In the four-player game, the players have to sit around a flat table. They have to follow the clockwise order to play and players sitting across from one another form a team.

Within the two-player game, each player forms his/her team. At the start, the dominoes are randomly and evenly distributed, and the first player places any single domino. On each subsequent turn, a player plays exactly one domino by matching one amongst its faces to 1 of the 2 ends of the current chain of the game dominoes; one domino will extend the chain of the game. Figure 2 shows an example of a domino chain. Matching requires identically labeled domino faces.

If a player cannot match any of his/her dominoes to this chain, s/he can pass his/her turn. The game ends when one player runs out of dominoes, during which case the player along with his team wins the game, or the chain with both the ends become “blocked” together.

An end is blocked if none of the remaining dominoes is matched therewith end. When the players find there are no blocks left and they will find no move the team becomes the one with the tiniest sum of all face values on their un-played tiles.

**Generalized Domino Theory**

In generalized domino theory, we consider a generalized version of dominoes during which each domino can have any integer (or symbol) on each end. Otherwise, play is identical: the primary play can be any tile, and every subsequent tile is played if it matches an end of the chain. A player can easily win only when he plays all of his dominoes and he can also lose due to not playing any of his dominoes.

Importantly, we do not allow players to pass (an assumption also manufactured from cooperative UNO). We also do not assume that every player has an identical number of tiles at the start of the sport. Formally, a domino consists of two numbers, one on either end of the oblong piece. A domino is often described as a multi-set, ∈ P(S), where S = is that the set of symbols within the current game.

We sit down with individual domino pieces with one uppercase letter like X =. At the start of the sport, a player I receives a multi-set of dominoes Ti. In particular, we allow each player to receive quite one copy of the identical domino; we are going to only use this flexibility to create “null” players after we have more than two players.

The game of dominoes progresses as players add dominoes to the present chain of dominoes on the board. This chain of dominoes has two open ends, a left end, and a right end r. If Player 1 features a domino X = ∈ T1, then Player 1 can match X to the left end of this chain if and provided that either ` = a or ` = b (or both). During this case, ` becomes b or a, respectively.

Likewise, X is often matched on the correct if and given that either r = a or r = b, in which case r becomes b or a respectively. In our figures, we follow the tradition of dominoes of the shape (doubles) being oriented perpendicular to the chain, to spotlight that they didn’t change the value of the tip, but this unusual orientation doesn’t change the behavior of these dominoes.

(In some variants of the sport, doubles can branch the chain of dominoes into a tree, but this can be uncommon and not considered here.) One key difference from traditional dominoes is that we assume perfect information, rather than hidden dominoes, to form the optimal strategy well-defined.

For cooperative games, this assumption is smart, as players should share all of their knowledge. For competitive two-player games, this assumption is additionally practical, assuming that the multi-set of all dominoes is thought, as that minus one player’s hand is that of the other player’s hand.

**Cooperative Domino Theory**

**Theory1: Two-player cooperative dominoes are NP-complete.**

First, according to this domino theory, two-player cooperative dominoes are in NP: a certificate may be a move the sequence that causes Player 1 to win. When we will show that two-player cooperative dominoes are NP-hard, we reduce from the Hamiltonian Path; talk over with Figure 1. Suppose G = (V, E) could be a graph and assume that G is straightforward and connected.

Then construct a dominoes instance as follows: T1 = | i ∈ V } and T2 = | in ∈ E} ∪ }. (1) Here we give Player 2 an additional domino so Player 2 can never win, as the domino matches nothing and Player 2 doesn’t start. (If we did not give Player 2 this extra domino, s/he can win within the case where G is that path graph.) Thus, if there’s a winning strategy, then Player 1 wins.

Player 1 is not eligible to place dominoes next to other dominoes that are also belonging to the same Player 1 because the dominoes are not the same and cannot match with each other by construction. Hence, whenever Player 2 plays a domino, Player 1 must place a domino adjacent to that. Therefore, if this game contains a winner, Player 1 wins with a sequence of dominoes that alternates between Player 1 and Player 2. Generally, the chain of dominoes generates the sequence that describes a Hamiltonian path in G; ask Figure 2.

Because Player 1 gets only 1 domino per vertex, each vertex will appear just once as a domino within the chain. If Player 1 wins, then Player 1 plays all of his/her dominoes, and then all vertices will appear.

The tiles that Player 2 plays are the perimeters that connect the vertices within the Hamiltonian path. Likewise, if there’s a Hamiltonian path in G, then Player 1 and Player 2 can play the sequence of dominoes resembling the Hamiltonian path to form Player 1 win. Because the Hamiltonian Path is NP-hard, two-player cooperative dominoes is NP-hard, and then it’s NP-complete.

**Theory 2: One-player dominoes are in P.**

**Proof;** You have to construct the multi-graph G in the place where vertices are corresponding to numbers and edges correspond to dominoes. That is, if we’ve got a domino, then the multi-graph G will have vertices a and b with a position connecting them.

Now we claim the matter reduces to finding an Eulerian path within the multi-graph. If we discover an Eulerian path, then within the order of its edges, we will place the corresponding dominoes. Because two successive edges within the path share a vertex between them, the ends of these corresponding dominoes will have an end in common, therefore the chain is going to be valid.

Conversely, if there is a way to put the dominoes, the resulting chain will correspond to an Eulerian path within the multi-graph. A polynomial-time can be determined by us whether the multi-graph has an Eulerian path: the classic theorem of Euler says that we just must certify all nodes have even degree apart from at the most two nodes, which might have odd degree.

**Competitive domino Theory**

In this section, we discuss competitive dominoes between two or more players. We do that by first analyzing the two-player case, and so we extend the result to the final multiplayer and team variants. Lemma 4; Two-player competitive dominoes are in PSPACE.

**Proof;** We can transform the dominoes game problem into the formula which is in PSPACE [6]. We will specify the possible moves as variables indexed by domino, direction, position, and turn. If there are n total dominoes within the game, then there are two directions, n positions, and n turns. This gives us O (n 3) variables.

The formula starts with alternating quantifiers: for Player 1 to own a winning strategy, there must exist a move by Player 1 1 such, for any move by Player 2 successively 2, there exists a move by Player 1 successively 3, and so on. The formula then encompasses a predicate with four parts. The primary part specifies that Player 1 moves correctly, by checking that there’s just one move per turn.

The second specifies that Player 2 moves correctly, by checking that there’s at the most one move per turn. The third part will immediately specify that the chain is correct, by checking all pairs of dominoes with one another and ignoring those that don’t apply. Finally, the last part of the game will specify Player 1 that won by checking that Player 1 got rid of all of his/her pieces, or Player 2 was stuck at some point.

There are polynomials with many variables and everyone check requires checking a single variable or a pair of variables. Because there are polynomials in many pairs of variables, we can write the formula down in polynomial space.

**Theory: Two-player competitive dominoes are PSPACE-complete.**

**Proof; **it remains to indicate that competitive dominoes are PSPACE hard. We are eligible to do this by reducing from edge bipartite that is directed generalized geography. An instance of BIPARTITE-GG consists of a directed bipartite graph G = (A ∪ B, E) where E ⊆ A × B, and a start vertex ∗ ∈ A. We can see that a token is starting at vertex A and the token is being alternated by two-player along the edges.

In this can only player 1 is eligible to use the edges directly from A to B and the other player may only use edges directed from B to A. Each edge is often played at the most once; a player loses if s/he has no possible moves. It’s PSPACE-complete to determine whether Player 1 includes a winning strategy [5].

Given any such graph G and begin vertex a∗, we construct an instance of two-player competitive dominoes as follows; sit down with Figure 3. For every directed edge (a, b), where ∈ A and b ∈ B, give Player 1 the domino. Similarly, for each directed edge (b, a) ∈ B × A, give Player 2 the domino. We call these dominoes edge dominoes.

a position domino itself doesn’t encode information about the direction of the initial edge: the direction may be recovered by looking at which player owns the sting because Player 1 receives dominoes just for edges pointing from nodes in a very to nodes in B, and Player 2 receives dominoes only for edges pointing from nodes in B to nodes during a.

Each player also receives one nonsense domino which will be connected only to the opposite player’s nonsense domino. Those dominoes aim to eliminate the choice of a player winning by eliminating all their dominoes, and instead specialize in blocking the opponent. It never is smart to play the nonsense domino first (as the opposite player would immediately win), and the nonsense domino can never be played if a player starts with a unique domino, so a player can’t win by playing all dominoes.

BIPARTITE-GG requires Player 1 to begin from some specified node ∗ ∈ A. To reproduce this in our instance of two-player competitive dominoes, we define Player 2 to maneuver first, and provides Player 2 the beginning domino, where 🙂 is a unique value. Additionally, for every node b ∈ B, we give Player 1 the rubbish dominoes and the “garbage” value b 0 and b00 (drawn in figures as squares or triangles) appear only in dominoes belonging to Player 1 so that they will effectively block Pl.

Therefore Player 2 starts with the beginning domino. Because the worth is exclusive, the domino chain can extend only on one end. We will think about this one-way chain as moves in BIPARTITE-GG. The domino ends to keep track of the current vertex that the BIPARTITE-GG is on, and playing a domino changes the current vertex in BIPARTITE-GG.

Additionally, placing a domino means that that domino can’t be used again, which models that BIPARTITE-GG removes directed edges because the players pick them. If Player 1 incorporates a winning strategy within the two-player competitive dominoes case with this arrangement, then the location of the dominoes corresponds to the directed edges that Player 1 has picked up in response to Player 2.

Likewise, if there is a winning strategy in BIPARTITE-GG, then the strategy can be used by the Player for the location of dominoes within the two-player competitive dominoes game. One minor fact is to be considered that the above construction can switch the starting player, but our definition of dominoes required Player 1 to maneuver first. To repair this, simply reverse the roles of Players 1 and a pair within the BIPARTITE-GG instance before applying the reduction.

In this blog, we determined the computational complexity of the sport of dominoes under different variants: single-player, multiplayer cooperative, multiplayer competitive, and team competitive. All variants of multiplayer dominoes were intractable, while the single-player variant was easy. Some details of our model deserve further study.

First, we generally forbade players to pass, but in the case of playing the classic game, players are allowed to pass exactly when a player has no feasible move. Second, we allowed the initial “hands” to own an unequal number of dominoes between the players, but the classic game distributes dominoes evenly.

Third, we allowed arbitrary (multi)sets of dominoes for every player, but the classic game that is played with four-player can distribute a “double-n” set of dominoes (exactly one of each possible domino with a, b ∈ ). Do our results extend to these models? A final direction for future work would be to contemplate the competitive multiplayer game with imperfect information.

Bounded team games with imperfect information are potentially as hard as NEXT TIME. Analyzing dominoes in this setting seems way more difficult, however.