A ''n''
''d'' game (or ''n''
''k'' game) is a
generalization
A generalization is a form of abstraction whereby common properties of specific instances are formulated as general concepts or claims. Generalizations posit the existence of a domain or set of elements, as well as one or more common characteri ...
of the game
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''. T ...
to higher dimensions.
It is a game played on a ''n''
''d'' hypercube
In geometry, a hypercube is an ''n''-dimensional analogue of a square () and a cube (). It is a closed, compact, convex figure whose 1- skeleton consists of groups of opposite parallel line segments aligned in each of the space's dimensions, ...
with 2 players.
If one player creates a line of length ''n'' of their symbol (X or O) they win the game. However, if all ''n''
''d'' spaces are filled then the game is a draw.
Tic-tac-toe is the game where ''n'' equals 3 and ''d'' equals 2 (3, 2).
Qubic
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 pla ...
is the game.
The or games are trivially won by the first player as there is only one space ( and ). A game with and cannot be won if both players are playing well as an opponent's piece will block the one-dimensional line.
There are a total of winning lines in a ''n''
''d'' game.
See also
*
References
Tic-tac-toe
{{game-stub