Tic-tac-toe is an instance of an m,n,k-game, where two players alternate taking turns on an m×n board until one of them gets k in a row.[1]Harary's generalized tic-tac-toe is an even broader generalization. The game can also be generalized as a nd game.[2] The game can be generalised even further from the above variants by playing on an arbitrary hypergraph where rows are hyperedges and cells are vertices.
Variants of tic-tac-toe date back several millennia.[3]
Historic
An early variation of tic-tac-toe was played in the Roman Empire, around the first century BC.[4] It was called Terni Lapilli and instead of having any number of pieces, each player only had three; thus, they had to move them around to empty spaces to keep playing. The game's grid markings have been found chalked all over Rome.[5] However, according to Claudia Zaslavsky's book Tic Tac Toe: And Other Three-In-A Row Games from Ancient Egypt to the Modern Computer, Tic-tac-toe could be traced back to ancient Egypt.[6][7] Another closely related ancient game is three men's morris, which is also played on a simple grid and requires three pieces in a row to finish.[8]
Three-dimensional tic-tac-toe on a 3×3×3 board. In this game, the first player has an easy win by playing in the centre if two people are playing.
One can play on a board of 4x4 squares, winning in several ways. Winning can include: four in a straight line, four in a diagonal line, four in a diamond, or four to make a square. Another variant, Qubic, is played on a 4×4×4 board; it was solved by Oren Patashnik in 1980 (the first player can force a win).[9] Higher-dimensional variations are also possible.[10]
The 3D tic tac toe variant does not always appear as 3 dimensional board. Some variants have different forms. For example in the case of Gobblet-like variant, Gobblet Gobblers[11] and Otrio,[12] the third element appears as variation in marker sizes (small, medium, large). Players can 'steal' the opponent spot by placing larger marker at the top of the opponent smaller marker or just simply competing with overlapping spot.
Misère games
Misere Tic-tac-toe
In misère tic-tac-toe, the player wins if the opponent gets n in a row.[13][14][15][16] This game is also known as avoidance tic tac toe,[14] toe-tac-tic,[14][17] inverse tic tac toe,[15] or reverse tic tac toe.[16] A 3×3 game is a draw. More generally, the first player can draw or win on any board (of any dimension) whose side length is odd, by playing first in the central cell and then mirroring the opponent's moves.[10][15]
Notakto
Notakto is a misere and impartial form of tic tac toe. This means unlike in misere tic tac toe, in Notakto, both players play as the same symbol, X.[18] It also can be played on one or multiple boards.[19]
Variants with bigger boards
Quixo
The game Quixo is played on a five-by-five board of cubes with two players or teams.[20] On a player's turn, they select a blank cube or a cube with their symbol on it that is at the edge of the board. If a blank cube was selected, the cube is turned to be the player's symbol (either an X or O). The game ends when one player gets five in a row.[20][21][22][23]
Unrestricted n-in-a-row
Unrestricted n-in-a-row is played on an infinite tic-tac-toe board where the goal is for one player to get n in a row.[2]
Amőba
The game called Amőba (amoeba) in Hungary is played on squared paper; it is a five-in-a-row variant. The winner of a match gets to fence in the completed game with a tight continuous line resulting in an amoeba-looking shape, hence the name.[24]
Ultimate tic-tac-toe
In Ultimate tic-tac-toe, the board is composed of a large tic-tac-toe board where each cell contains another standard tic-tac-toe board. A move in the smaller boards determines the location of the next move in the larger board.[25]
Isomorphic games
Number Scrabble
There is a game that is isomorphic to tic-tac-toe, but on the surface appears completely different. It is called Pick15[26] or Number Scrabble.[27] Two players in turn say a number between one and nine. A particular number may not be repeated. The game is won by the player who has said three numbers whose sum is 15.[26][28] If all the numbers are used and no one gets three numbers that add up to 15 then the game is a draw.[26] Plotting these numbers on a 3×3 magic square shows that the game exactly corresponds with tic-tac-toe, since three numbers will be arranged in a straight line if and only if they total 15.[29]
Word Tic-tac-toe
eat
bee
less
→e
air
bits
lip
→i
soda
book
lot
→o
↙
s
↓
a
↓
b
↓
l
↘
t
Another isomorphic game uses a list of nine carefully chosen words, for instance "eat", "bee", "less", "air", "bits", "lip", "soda", "book", and "lot". Each player picks one word in turn and to win, a player must select three words with the same letter. The words may be plotted on a tic-tac-toe grid in such a way that a three in a row line wins.[30]
Dexterity Variants
Tic tac toe can be played by integrating element of dexterity to place the markers. Objects such as balls can be thrown to a grid (which can be made from other objects such as glasses) to get three marks in a row, leaving elements of probability for the markers to be landed at the intended spot and stimulating physical exercises.[31][32][33]
Other Variants
Numerical Tic-Tac-Toe
Numerical Tic Tac Toe is a variation invented by the mathematician Ronald Graham.[34] The numbers 1 to 9 are used in this game. The first player plays with the odd numbers, the second player plays with the even numbers. All numbers can be used only once. The player who puts down 15 points in a line wins (sum of 3 numbers).[35] This game can be generalized to a n × n board.[35]
Check Lines
In the 1970s, there was a two-player game made by Tri-ang Toys & Games called Check Lines, in which the board consisted of eleven holes arranged in a geometrical pattern of twelve straight lines each containing three of the holes. Each player had exactly five tokens and played in turn placing one token in any of the holes. The winner was the first player whose tokens were arranged in two lines of three (which by definition were intersecting lines). If neither player had won by the tenth turn, subsequent turns consisted of moving one of one's own tokens to the remaining empty hole, with the constraint that this move could only be from an adjacent hole.[36]
Twice crosses-circles
Programmed in 1989, the algorithm was previously tested on the Elektronika MK-52. There is also a variant of the game with the classic 3×3 field, in which it is necessary to make two rows to win, while the opposing algorithm only needs one.[37]
Quantum Tic-Tac-Toe
Quantum tic tac toe allows players to place a quantum superposition of numbers on the board, i.e. the players' moves are "superpositions" of plays in the original classical game. This variation was invented by Allan Goff of Novatia Labs.[38]
Wild Tic-Tac-Toe
In wild tic-tac-toe, players can choose to place either an X or O on each move.[7][39][40][41] It can be played as a normal game where the player who makes three in a row wins or a misere game where they would lose.[7] This game is also called your-choice tic-tac-toe[42] or Devil's tic-tac-toe.[citation needed]
SOS
In the game SOS, the players on each turn choose to play a "S" or an "O" in an empty square.[43] If a player makes the sequence SOS vertically, horizontally or diagonally they get a point and also take another turn.[44] The player with the most points (SOSs) is the winner.[43][44]
Treblecross
In Treblecross, both players play with the same symbol (an X[15] or black chip[45]). The game is played on a 1-by-n board with k equal to 3.[15] The player who makes a three in a row of Xs (or black chips) wins the game.[15][45]
Revenge n-in-a-row
In revenge n-in-a-row, the player who makes an n-in-a-row wins unless the opponent can make an n-in-a-row in the next move where they lose.[46][15]
Random turn Tic-Tac-Toe
In the game random turn tic-tac-toe, a coin flip determines whose turn it is.[7]
Quick Tic-Tac-Toe
In quick-tac-toe,[clarification needed] on each turn the players can play their mark in any squares they want provided that all the marks are in the same vertical or horizontal row. The winner is the player who places the last mark.[47]
^Oren Patashnik, "Qubic: 4 x 4 x 4 Tic-Tac-Toe", Mathematical Magazine 53 (1980) 202–216.
^ abGolomb, Solomon W.; Hales, Alfred W. (2002), "Hypercube tic-tac-toe", More games of no chance (Berkeley, CA, 2000), Math. Sci. Res. Inst. Publ., vol. 42, Cambridge: Cambridge Univ. Press, pp. 167–182, MR1973012.
^McFeetors, P. Janelle; Palfy, Kylie (1 May 2017). "We're in Math Class Playing Games, Not Playing Games in Math Class". Mathematics Teaching in the Middle School. 22 (9): 534–544. doi:10.5951/mathteacmiddscho.22.9.0534.
^Kubota, Runa; Troillet, Lucien; Matsuzaki, Kiminori (December 2022). "Three Player Otrio will be Strongly Solved". 2022 International Conference on Technologies and Applications of Artificial Intelligence (TAAI). pp. 30–35. doi:10.1109/TAAI57707.2022.00015. ISBN979-8-3503-9950-9. S2CID257408458.
^Michon, John A. (1967-01-01). "The Game of JAM: An Isomorph of Tic-Tac-Toe". The American Journal of Psychology. 80 (1): 137–140. doi:10.2307/1420555. JSTOR1420555. PMID6036351.
^"TicTacToe Magic"(PDF). Archived(PDF) from the original on December 20, 2016. Retrieved December 17, 2016.
^Goff, Allan (November 2006). "Quantum tic-tac-toe: A teaching metaphor for superposition in quantum mechanics". American Journal of Physics. 74 (11). College Park, MD: American Association of Physics Teachers: 962–973. Bibcode:2006AmJPh..74..962G. doi:10.1119/1.2213635. ISSN0002-9505.
^W., Weisstein, Eric. "Tic-Tac-Toe". mathworld.wolfram.com. Archived from the original on 2016-12-10. Retrieved 2016-12-12.{{cite web}}: CS1 maint: multiple names: authors list (link)