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 n^{d} 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.

- Historic
- Variants in higher dimensions
- 3D Tic-tac-toe
- Misère games
- Misere Tic-tac-toe
- Notakto
- Variants with bigger boards
- Quixo
- Unrestricted n-in-a-row
- Amőba
- Isomorphic games
- Number Scrabble
- Word Tic-tac-toe
- Other variants
- Numerical Tic-Tac-Toe
- Check Lines
- Twice crosses-circles
- Quantum Tic-Tac-Toe
- Wild Tic-Tac-Toe
- SOS
- Treblecross
- Revenge n-in-a-row
- Random turn Tic-Tac-Toe
- Quick Tic-Tac-Toe
- References

Many board games share the element of trying to be the first to get *n*-in-a-row, including three men's morris, nine men's morris, pente, gomoku, Qubic, Connect Four, Quarto, Gobblet, Order and Chaos, Toss Across, and Mojo.

Variants of tic-tac-toe date back several millennia.^{ [3] }

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] }

In misère tic-tac-toe, the player wins if the opponent gets *n* in a row.^{ [11] }^{ [12] }^{ [13] }^{ [14] } This game is also known as avoidance tic tac toe,^{ [12] } toe-tac-tic,^{ [12] }^{ [15] } inverse tic tac toe,^{ [13] } or reverse tic tac toe.^{ [14] } 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] }^{ [13] }

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.^{ [16] } It also can be played on one or multiple boards.^{ [17] }

The game Quixo is played on a five-by-five board of cubes with two players or teams.^{ [18] } 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.^{ [18] }^{ [19] }^{ [20] }^{ [21] }

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] }

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.^{ [22] }

There is a game that is isomorphic to tic-tac-toe, but on the surface appears completely different. It is called Pick15^{ [23] } or Number Scrabble.^{ [24] } 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.^{ [23] }^{ [25] } If all the numbers are used and no one gets three numbers that add up to 15 then the game is a draw.^{ [23] } 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.^{ [26] }

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.^{ [27] }

Numerical Tic Tac Toe is a variation invented by the mathematician Ronald Graham.^{ [28] } 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).^{ [29] } This game can be generalized to a n × n board.^{ [29] }

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.^{ [30] }

- 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.
^{ [31] }

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.^{ [32] }

In wild tic-tac-toe, players can choose to place either an X or O on each move.^{ [7] }^{ [33] }^{ [34] }^{ [35] } 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^{ [36] } or Devil's tic-tac-toe.^{[ citation needed ]}

In the game SOS, the players on each turn choose to play a "S" or an "O" in an empty square.^{ [37] } If a player makes the sequence *SOS* vertically, horizontally or diagonally they get a point and also take another turn.^{ [38] } The player with the most points (SOSs) is the winner.^{ [37] }^{ [38] }

In Treblecross, both players play with the same symbol (an X^{ [13] } or black chip^{ [39] }). The game is played on a 1-by-*n* board with k equal to 3.^{ [13] } The player who makes a three in a row of Xs (or black chips) wins the game.^{ [13] }^{ [39] }

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.^{ [40] }^{ [13] }

In the game random turn tic-tac-toe, a coin flip determines whose turn it is.^{ [7] }

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.^{ [41] }

**Tic-tac-toe**, **noughts and crosses**, or **Xs and Os** is a paper-and-pencil game for two players who take turns marking the spaces in a three-by-three grid with *X* or *O*. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner. It is a solved game, with a forced draw assuming best play from both players.

**TacTix** is a two-player strategy game invented by Piet Hein, a poet well known for dabbling in math and science, best known for his game Hex.

**Three men's morris** is an abstract strategy game played on a three by three board that is similar to tic-tac-toe. It is also related to six men's morris and nine men's morris. A player wins by forming a mill, that is, three of their own pieces in a row.

Combinatorial game theory has several ways of measuring **game complexity**. This article describes five of them: state-space complexity, game tree size, decision complexity, game-tree complexity, and computational complexity.

**3D tic-tac-toe**, also known by the trade name **Qubic**, is an abstract strategy board game, generally for two players. It is similar in concept to traditional tic-tac-toe but is played in a cubical array of cells, usually 4x4x4. Players take turns placing their markers in blank cells in the array. The first player to achieve four of their own markers in a row wins. The winning row can be horizontal, vertical, or diagonal on a single board as in regular tic-tac-toe, or vertically in a column, or a diagonal line through four boards.

In mathematics, the **Hales–Jewett theorem** is a fundamental combinatorial result of Ramsey theory named after Alfred W. Hales and Robert I. Jewett, concerning the degree to which high-dimensional objects must necessarily exhibit some combinatorial structure; it is impossible for such objects to be "completely random".

**Toss Across** is a game first introduced in 1969 by the now defunct Ideal Toy Company. The game was designed by Marvin Glass and Associates and created by Hank Kramer, Larry Reiner and Walter Moe, and is now distributed by Mattel. It is a game in which participants play tic-tac-toe by lobbing small beanbags at targets in an attempt to change the targets to their desired letter. As in traditional tic-tac-toe, the first player to get three of their letters in a row wins the game. There are other similar games to Toss Across known under different names, such as Tic Tac Throw.

**Score Four** is a "three dimensional" abstract strategy game, similar to Connect Four. It was first sold under the name "Score Four" by Funtastic in 1968. Lakeside issued 4 different versions in the 1970s. Later Hasbro sold the game as "**Connect Four Advanced**" in the UK.

**Harary's generalized tic-tac-toe** or **animal tic-tac-toe** is a generalization of the game tic-tac-toe, defining the game as a race to complete a particular polyomino on a square grid of varying size, rather than being limited to "in a row" constructions. It was devised by Frank Harary in March 1977, and is a broader definition than that of an m,n,k-game.

**Dara** is a two-player abstract strategy board game played in several countries of West Africa. In Nigeria it is played by the Dakarkari people. It is popular in Niger among the Zarma, who call it **dili**, and it is also played in Burkina Faso. In the Hausa language, the game is called **doki** which means horse. It is an alignment game related to tic-tac-toe, but far more complex. The game was invented in the 19th century or earlier. The game is also known as **derrah** and is very similar to Wali and Dama Tuareg.

**Achi** is a two-player abstract strategy game from Ghana. It is also called tapatan. It is related to tic-tac-toe, but even more related to three men's morris, Nine Holes, Tant Fant, Shisima, and Dara, because pieces are moved on the board to create the 3-in-a-row. Achi is an alignment game.

**Zillions of Games** is a commercial general game playing system developed by Jeff Mallett and Mark Lefler in 1998. The game rules are specified with S-expressions, Zillions rule language. It was designed to handle mostly abstract strategy board games or puzzles. After parsing the rules of the game, the system's artificial intelligence can automatically play one or more players. It treats puzzles as solitaire games and its AI can be used to solve them.

* Hip Hop Squares* is an American television game show originally hosted by Peter Rosenberg, which debuted on MTV2 on May 22, 2012. The show is a licensed format of CBS Television Distribution's

**Ultimate tic-tac-toe** is a board game composed of nine tic-tac-toe boards arranged in a 3 × 3 grid. Players take turns playing on the smaller tic-tac-toe boards until one of them wins on the larger tic-tac-toe board. Compared to traditional tic-tac-toe, strategy in this game is conceptually more difficult and has proven more challenging for computers.

**Notakto** is a tic-tac-toe variant, also known as **neutral** or **impartial tic-tac-toe**. The game is a combination of the games tic-tac-toe and Nim, played across one or several boards with both of the players playing the same piece. The game ends when all the boards contain a three-in-a-row of Xs, at which point the player to have made the last move loses the game. However, in this game, unlike tic-tac-toe, there will always be a player who wins any game of Notakto.

**Number Scrabble** is a mathematical game where players take turns to select numbers from 1 to 9 without repeating any numbers previously used, and the first player with a sum of exactly 15 using any three of their number selections wins the game. The game is isomorphic to tic-tac-toe, as can be seen if the game is mapped onto a magic square.

**Wild tic-tac-toe** is an impartial game similar to tic-tac-toe. However, in this game players can choose to place either X or O on each move. This game can also be played in its misere form where if a player creates a three-in-a-row of marks, that player loses the game.

A ** n^{d} game** (or

**Treblecross** is a degenerate tic-tac toe variant. The game is an octal game, played on a one-dimensional board and both players play using the same piece. Each player on their turn plays a piece in an unoccupied space. The game is won if a player on their turn makes a line of three pieces in a row.

A **strong positional game** is a kind of positional game. Like most positional games, it is described by its set of *positions* and its family of *winning-sets*. It is played by two players, called First and Second, who alternately take previously-untaken positions.

- ↑ Pham, Duc-Nghia; Park, Seong-Bae (2014-11-12).
*PRICAI 2014: Trends in Artificial Intelligence: 13th Pacific Rim International Conference on Artificial Intelligence, PRICAI 2014, Gold Coast, QLD, Australia, December 1-5, 2014, Proceedings*. Springer. ISBN 9783319135601. Archived from the original on 2017-08-23. - 1 2 Beck, József (2008).
*Combinatorial Games: Tic-Tac-Toe Theory*. Cambridge University Press. ISBN 9780521461009. - ↑ Epstein, Richard A. (2014-06-28).
*The Theory of Gambling and Statistical Logic, Revised Edition*. Gulf Professional Publishing. ISBN 9780080571843. Archived from the original on 2016-12-21. - ↑ Kisačanin, Branislav; Gelautz, Margrit (2014-11-26).
*Advances in Embedded Computer Vision*. Springer. ISBN 9783319093871. Archived from the original on 2017-11-30. - ↑ "Roman Board Games -- Terni Lapilli". www.aerobiologicalengineering.com. Archived from the original on 2016-12-01. Retrieved 2016-12-03.
- ↑ Zaslavsky, Claudia (1982).
*Tic Tac Toe: And Other Three-In-A Row Games from Ancient Egypt to the Modern Computer*. Crowell. ISBN 0-690-04316-3.`{{cite book}}`

: CS1 maint: url-status (link) - 1 2 3 4 Epstein, Richard A. (2012-12-28).
*The Theory of Gambling and Statistical Logic*. Academic Press. ISBN 9780123978707. Archived from the original on 2017-11-30. - ↑ Canisius College – Morris Games Archived 2013-03-13 at the Wayback Machine
- ↑ Oren Patashnik, "Qubic: 4 x 4 x 4 Tic-Tac-Toe",
*Mathematical Magazine*53 (1980) 202–216. - 1 2 Golomb, 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, MR 1973012 . - ↑ Averbach, Bonnie; Chein, Orin (1980),
*Problem Solving Through Recreational Mathematics*, Dover, p. 252, ISBN 9780486131740 . - 1 2 3 "Tic-tac-toe (Math Lair)". mathlair.allfunandgames.ca. Archived from the original on 2016-12-20. Retrieved 2016-12-03.
- 1 2 3 4 5 6 7 Ma, Wei Ji. "Generalized Tic-tac-toe". www.weijima.com. Archived from the original on 2017-11-30. Retrieved 2016-12-11.
- 1 2 Armstrong, Tricia (2016-12-18).
*The Whole-Brain Solution: Thinking Tools to Help Students Observe, Make Connections and Solve Problems*. Pembroke Publishers Limited. ISBN 9781551381565. Archived from the original on 2017-11-30. - ↑ Silverman, David L. (1991).
*Your Move: Logic, Math and Word Puzzles for Enthusiasts*. Courier Corporation. ISBN 9780486267319. - ↑ Cram, Scott. "How to Play and Win Notakto". Archived from the original on 2016-11-25. Retrieved 2016-12-02.
- ↑ Cram, Scott. "Secrets of Nim (Notakto)". Archived from the original on 2016-11-25. Retrieved 2016-12-12.
- 1 2 "Quixo (R)". www.math.uaa.alaska.edu. Archived from the original on 2015-09-04. Retrieved 2016-12-18.
- ↑ "Quixo - Games - Galapemy". www.galapemy.com. Archived from the original on 2016-12-20. Retrieved 2016-12-18.
- ↑ "Quixio" (PDF). Archived (PDF) from the original on September 8, 2014. Retrieved December 18, 2016.
- ↑ Golladay, Sonja Musser (2007-01-01).
*Los Libros de Acedrex Dados E Tablas: Historical, Artistic and Metaphysical Dimensions of Alfonso X's "Book of Games"*. ISBN 9780549274346. Archived from the original on 2017-02-15. - ↑ "Amőba (játék)",
*Wikipédia*(in Hungarian), 2019-02-15, retrieved 2020-11-18 - 1 2 3 Juul, Jesper (2011-08-19).
*Half-Real: Video Games Between Real Rules and Fictional Worlds*. MIT Press. ISBN 9780262516518. Archived from the original on 2017-11-30. - ↑ 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. JSTOR 1420555. PMID 6036351. - ↑ "TicTacToe Magic" (PDF). Archived (PDF) from the original on December 20, 2016. Retrieved December 17, 2016.
- ↑ "Oh Boy! I Get to do Math!: Tic-Tac-Toe as a Magic Square". Oh Boy! I Get to do Math!. 2015-05-30. Archived from the original on 2016-12-21. Retrieved 2016-12-17.
- ↑ Schumer, Peter D.,
*Mathematical Journeys*. - ↑ Markowsky, George. "Numerical Tic-Tac-Toe" (PDF). Archived (PDF) from the original on December 20, 2016. Retrieved December 3, 2016.
- 1 2 Sandlund, Bryce; Staley, Kerrick; Dixon, Michael; Butler, Steve. "Numerical Tic-Tac-Toe on the 4 × 4 Board" (PDF). Archived (PDF) from the original on 2016-10-20.
- ↑ Check Lines Archived 2016-03-04 at the Wayback Machine , BoardGameGeek, retrieved 2013-09-13.
- ↑ Twice crosses-circles
- ↑ Goff, Allan (November 2006). "Quantum tic-tac-toe: A teaching metaphor for superposition in quantum mechanics".
*American Journal of Physics*. College Park, MD: American Association of Physics Teachers.**74**(11): 962–973. Bibcode:2006AmJPh..74..962G. doi:10.1119/1.2213635. ISSN 0002-9505. - ↑ "Puzzles in Education - Wild Tic-Tac-Toe". puzzles.com. Archived from the original on 2016-11-04. Retrieved 2016-11-29.
- ↑ Mendelson, Elliott (2016-02-03).
*Introducing Game Theory and its Applications*. CRC Press. ISBN 9781482285871. Archived from the original on 2017-11-30. - ↑ "Variations of Tic Tac Toe" (PDF). Retrieved December 3, 2016.
- ↑ "Camp Games". americanriverresort.com. Archived from the original on 2016-12-20. Retrieved 2016-12-12.
- 1 2 Harrelson, Angie (2007-07-01).
*Patterns - Literature, Arts, and Science*. Prufrock Press Inc. ISBN 9781593632618. Archived from the original on 2016-12-21. - 1 2 "SoS Game". SlideME. Archived from the original on 2016-12-20. Retrieved 2016-12-04.
- 1 2 Mendelson, Elliott (2004-07-03).
*Introducing Game Theory and its Applications*. CRC Press. ISBN 9781584883005. - ↑ W., Weisstein, Eric. "Tic-Tac-Toe". mathworld.wolfram.com. Archived from the original on 2016-12-10. Retrieved 2016-12-12.
- ↑ Silverman, David L. (1991-01-01).
*Your Move: Logic, Math and Word Puzzles for Enthusiasts*. Courier Corporation. ISBN 9780486267319.

This page is based on this Wikipedia article

Text is available under the CC BY-SA 4.0 license; additional terms may apply.

Images, videos and audio are available under their respective licenses.

Text is available under the CC BY-SA 4.0 license; additional terms may apply.

Images, videos and audio are available under their respective licenses.