Tic-tac-toe
Game
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, one with Xs and the other with Os. A player wins when they mark all three spaces of a row, column, or diagonal of the grid, whereupon they traditionally draw a line through those three marks to indicate the win. It is a solved game, with a forced draw assuming best play from both players.
Related work
- Web tic-tac-toe Oct 2025
Web tic-tac-toe is a browser game of noughts and crosses in plain HTML, CSS and JavaScript, with no framework or build step.
- XO Dec 2024
XO is tic-tac-toe in the terminal, written in Python. The human plays X and picks squares by number, 0 to 8, and a computer player plays O.
In the knowledge graph
Tic-tac-toe and the 2 things it is linked to. Open any dot for its page, or explore it in the full graph.
As data
Everything on this page is read from triples in the knowledge graph. These are the 5 it states about Tic-tac-toe, and 1 more its ontology implies; the console runs SPARQL over the whole graph, here in your browser.
@prefix id: <https://ask.chaipat.cc/id/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix cj: <https://ask.chaipat.cc/ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . @prefix schema: <https://schema.org/> . id:TicTacToe a cj:Game ; rdfs:label "Tic-tac-toe" ; skos:altLabel "tic-tac-toe" , "noughts and crosses" ; schema:sameAs <https://en.wikipedia.org/wiki/Tic-tac-toe> .