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
Tic-tac-toe (American English), noughts and crosses (Commonwealth English), or Xs and Os (Canadian or Irish English) 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''. ...
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.
As with traditional tic-tac-toe, several commercial sets of apparatus have been sold for the game, and it may also be played with pencil and paper with a hand-drawn board.
The game has been analyzed mathematically and a
first-player-win
In combinatorial game theory, a two-player deterministic perfect information turn-based game is a first-player-win if with perfect play the first player to move can always force a win. Similarly, a game is second-player-win if with perfect play th ...
strategy was developed and published. However, the strategy is too complicated for most human players to memorize and apply.
Pencil and paper
Like traditional 3x3
tic-tac-toe
Tic-tac-toe (American English), noughts and crosses (Commonwealth English), or Xs and Os (Canadian or Irish English) 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 game may be played with pencil and paper. A game board can easily be drawn by hand, with players using the usual "naughts and crosses" to mark their moves.
In the 1970s, 3M Games (a division of
3M Corporation) sold a series of "Paper Games", including "3 Dimensional Tic Tac Toe". Buyers received a pad of 50 sheets with preprinted game boards.
"Qubic"
"Qubic" is the brand name of equipment for the 4x4x4 game that was manufactured and marketed by
Parker Brothers
Parker Brothers (known by Parker outside of North America) was an American toy and game manufacturer which in 1991 became a brand of Hasbro. More than 1,800 games were published under the Parker Brothers name since 1883. Among its products wer ...
, starting in 1964. It was reissued in 1972 with a more modern design. Both versions described the game as "Parker Brothers 3D Tic Tac Toe Game".
In the original issue, the bottom level board was opaque plastic, and the upper three clear, all of simple square design. The 1972 reissue used four clear plastic boards with rounded corners. Whereas pencil and paper play almost always involves just two players, Parker Brothers' rules said that up to three players could play. The circular playing pieces resembled small poker chips in red, blue, and yellow.
The game is no longer manufactured.
Gameplay and analysis
3x3x3, two-player
The 3x3x3 version of the game cannot end in a draw and is easily won by the first player unless a rule is adopted that prevents the first player from taking the center cell. In that case, the game is easily won by the second player. By banning the use of the center cell altogether, the game is easily won by the first player. By including a 3rd player, the perfect game will be played out to a draw. By including stochasticity in the choosing of the side the player must use, the game becomes fair and winnable by all players but is subject to chance. By making the choice of the player piece (x or o) subject to chance, the game becomes fair and winnable by all players.
4x4x4, two-player
On the 4x4x4 board, there are 76 winning lines. On each of the four 4x4 boards, or horizontal planes, there are four columns, four rows, and two diagonals, accounting for 40 lines. There are 16 vertical lines, each ascending from a cell on the bottom board through the corresponding cells on the other boards. There are eight vertically-oriented planes parallel to the sides of the boards, each of these adding two more diagonals (the horizontal and vertical lines of these planes have already been counted). Finally, there are two vertically-oriented planes that include the diagonal lines of the 4x4 boards, and each of these contributes two more diagonal lines—each of these including two corners and two internal cells.
The 16 cells lying on these latter four lines (that is, the eight corner cells and eight internal cells) are each included in seven different winning lines; the other 48 cells (24 face cells and 24 edge cells) are each included in four winning lines.
The corner cells and the internal cells are actually equivalent via an
automorphism; likewise for face and edge cells. The group of automorphisms of the game contains 192 automorphisms. It is made up of combinations of the usual rotations and reflections that reorient or reflect the cube, plus two that scramble the order of cells on each line. If a line comprises cells A, B, C and D in that order, one of these exchanges inner cells for outer ones (such as B, A, D, C) for all lines of the cube, and the other exchanges cells of either the inner or the outer cells ( A, C, B, D or equivalently D, B, C, A) for all lines of the cube. Combinations of these basic automorphisms generate the entire group of 192 as shown by R. Silver in 1967.
3D tic-tac-toe was
weakly solved, meaning that the existence of a winning strategy was proven
but without actually presenting such a strategy, by Eugene Mahalko in 1976. He proved that in two-person play, the first player will win if there are two optimal players.
A more complete analysis, including the announcement of a complete first-player-win strategy, was published by
Oren Patashnik
Oren Patashnik (born 1954) is an American computer scientist. He is notable for co-creating BibTeX, and co-writing '' Concrete Mathematics: A Foundation for Computer Science''. He is a researcher at the Center for Communications Research, La Jol ...
in 1980. Patashnik used a
computer-assisted proof
A computer-assisted proof is a mathematical proof that has been at least partially generated by computer.
Most computer-aided proofs to date have been implementations of large proofs-by-exhaustion of a mathematical theorem. The idea is to use a ...
that consumed 1500 hours of computer time. The strategy comprised move choices for 2929 difficult "strategic" positions, plus assurances that all other positions that could arise could be easily won with a sequence entirely made up of forcing moves. It was further asserted that the strategy had been independently verified. As computer storage became cheaper and the internet made it possible, these positions and moves were made available online.
The game was solved again by
Victor Allis
Louis Victor Allis (born 19 May 1965) is a Dutch computer scientist working in the artificial intelligence (AI) field. In his graduate work, he revealed AI solutions for Connect Four, Qubic, and Gomoku. His dissertation introduced two new game s ...
using
proof-number search.
More general analyses
An examination of multi-dimensional tic-tac-toe of various numbers of dimensions and board sizes was presented in the article "Hypercube Tic-Tac-Toe" by Golomb and Hales.
Another study appears in the book ''Combinatorial Games: Tic-Tac-Toe Theory'' by József Beck.
Computer implementations
Several computer programs that play the game against a human opponent have been written. The earliest of these used console lights and
switches
In electrical engineering, a switch is an electrical component that can disconnect or connect the conducting path in an electrical circuit, interrupting the electric current or diverting it from one conductor to another. The most common type of ...
, text terminals, or similar interaction: the human player would enter moves numerically (for example, using "4 2 3" for fourth level, second row, third column) and the program would respond similarly, as graphics displays were uncommon.
A program written for the
IBM 650 used front panel switches and lights for the user interface.
William Daly Jr. wrote and described a Qubic-playing program as part of his Master's program at the Massachusetts Institute of Technology. The program was written in assembler language for the
TX-0
The TX-0, for ''Transistorized Experimental computer zero'', but affectionately referred to as tixo (pronounced "tix oh"), was an early fully transistorized computer and contained a then-huge 64 K of 18-bit words of magnetic-core memory. Constru ...
computer. It included lookahead to 12 moves and kept a history of previous games with each opponent, modifying its strategy according to their past behavior.
An implementation in
Fortran was written by Robert K. Louden and presented, with an extensive description of its design, in his book ''Programming the IBM 1130 and 1800''. Its strategy involved looking for combinations of one or two free cells shared among two or three rows with particular contents.
A Qubic program in a DEC dialect of BASIC appeared in ''101 BASIC Computer Games'' by
David H. Ahl
David H. Ahl (born May 17, 1939) is an American author who is the founder of ''Creative Computing (magazine), Creative Computing'' magazine. He is also the author of many how-to books, including ''BASIC Computer Games'', the first computer book t ...
. Ahl said the program "showed up," author unknown, on a G.E. timesharing system in 1968.
Atari released a graphical version of the game for the
Atari 2600
The Atari 2600, initially branded as the Atari Video Computer System (Atari VCS) from its release until November 1982, is a home video game console developed and produced by Atari, Inc. Released in September 1977, it popularized microprocesso ...
console and
Atari 8-bit computers in 1978.
The program was written by
Carol Shaw
Carol Shaw (born 1955) is one of the first female game designers and programmers in the video game industry. She is best known for creating the Atari 2600 vertically scrolling shooter ''River Raid'' (1982) for Activision. She worked for Atari, In ...
, who went on to greater fame as the creator of
Activision
Activision Publishing, Inc. is an American video game publisher based in Santa Monica, California. It serves as the publishing business for its parent company, Activision Blizzard, and consists of several subsidiary studios. Activision is one ...
's ''
River Raid
''River Raid'' is a vertically scrolling shooter designed and programmed by Carol Shaw and published by Activision in 1982 for the Atari 2600 video game console. Over a million game cartridges were sold. Activision later ported the title to th ...
''. It uses the standard joystick controller. It can be played by two players against each other, or one player can play against the program on one of eight different difficulty settings. The product code for the Atari game was CX-2618.
[ ]
Three-dimensional tic-tac-toe on a 4x4x4 board (optionally 3x3x3) was included in the
Microsoft
Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washin ...
Windows Entertainment Pack
''Microsoft Entertainment Pack'' , also known as ''Windows Entertainment Pack'' or simply ''WEP'' , is a collection of 16-bit casual computer games for Windows. There were four Entertainment Packs released between 1990 and 1992. These games w ...
in the 1990s under the name ''TicTactics''. In 2010, Microsoft made the game available on its ''
Game Room
Game Room was a social gaming service for the Xbox 360 video game system, Microsoft Windows PCs, and Windows Phone 7. Launched on March 24, 2010, Game Room let players download classic video games and compete against each other for high scores. ...
'' service for its
Xbox 360
The Xbox 360 is a home video game console developed by Microsoft. As the successor to the original Xbox, it is the second console in the Xbox series. It competed with Sony's PlayStation 3 and Nintendo's Wii as part of the seventh generati ...
console.
A program library named Qubist, and front-end for the
GTK 2 window library are a project on SourceForge.
Similar and related games
Besides the related
tic-tac-toe
Tic-tac-toe (American English), noughts and crosses (Commonwealth English), or Xs and Os (Canadian or Irish English) 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''. ...
, a popular variant is a commercial product called "
Score Four
Score Four is a "three dimensional" abstract strategy game, similar to Connect Four (Milton Bradley, 1974). It was first sold under the name "Score Four" by Funtastic in 1968. Lakeside issued 4 different versions in the 1970s. Later Hasbro sold ...
". In Score Four the markers are small spheres with a hole drilled all the way through. The base of the game board provides 16 vertical spikes. To make a move, a player places a sphere on one of the spikes. Thus a move can only be made in a cell wherein all of the cells below it are already occupied.
See also
*
Score Four
Score Four is a "three dimensional" abstract strategy game, similar to Connect Four (Milton Bradley, 1974). It was first sold under the name "Score Four" by Funtastic in 1968. Lakeside issued 4 different versions in the 1970s. Later Hasbro sold ...
*
Quarto (board game)
''Quarto'' is a board game for two players invented by Swiss mathematician Blaise Müller. It is published and copyrighted by Gigamic.
The game is played on a 4×4 board. There are 16 unique pieces to play with, each of which is either:
* tall ...
References
External links
Qubicat
BoardGameGeek
BoardGameGeek (BGG) is an online forum for board gaming hobbyists and a game database that holds reviews, images and videos for over 125,600 different tabletop games, including European-style board games, wargames, and card games. In addition ...
Playable version at Pencil and Paper GamesA downloadable program by Rob Waldteufel that plays Qubic perfectly.
{{Tic-Tac-Toe
*
at Atari Mania
Abstract strategy games
Tic-tac-toe
Parker Brothers games
Three-dimensional board games
Paper-and-pencil games
Tic-tac-toe variants
Solved games