Skip to main content
Home
plus.maths.org

Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Main navigation

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • For

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

      Popular topics and tags

      Shapes

      • Geometry
      • Vectors and matrices
      • Topology
      • Networks and graph theory
      • Fractals

      Numbers

      • Number theory
      • Arithmetic
      • Prime numbers
      • Fermat's last theorem
      • Cryptography

      Computing and information

      • Quantum computing
      • Complexity
      • Information theory
      • Artificial intelligence and machine learning
      • Algorithm

      Data and probability

      • Statistics
      • Probability and uncertainty
      • Randomness

      Abstract structures

      • Symmetry
      • Algebra and group theory
      • Vectors and matrices

      Physics

      • Fluid dynamics
      • Quantum physics
      • General relativity, gravity and black holes
      • Entropy and thermodynamics
      • String theory and quantum gravity

      Arts, humanities and sport

      • History and philosophy of mathematics
      • Art and Music
      • Language
      • Sport

      Logic, proof and strategy

      • Logic
      • Proof
      • Game theory

      Calculus and analysis

      • Differential equations
      • Calculus

      Towards applications

      • Mathematical modelling
      • Dynamical systems and Chaos

      Applications

      • Medicine and health
      • Epidemiology
      • Biology
      • Economics and finance
      • Engineering and architecture
      • Weather forecasting
      • Climate change

      Understanding of mathematics

      • Public understanding of mathematics
      • Education

      Get your maths quickly

      • Maths in a minute

      Main menu

    • Home
    • Articles
    • Collections
    • Podcasts
    • Maths in a minute
    • Puzzles
    • Videos
    • Topics and tags
    • Audiences

      • cat icon
        Curiosity
      • newspaper icon
        Media
      • graduation icon
        Education
      • briefcase icon
        Policy

      Secondary menu

    • My list
    • About Plus
    • Sponsors
    • Subscribe
    • Contact Us
    • Log in
    • tac tac toe

      Tic-tac-toe, the other way around!

      2 October, 2014

      We have just learnt a really nice fact about the game of tic-tac-toe. As you may know, tic-tac-toe always results in a draw if both players make the best moves possible at every step of the game. To force a draw you need to follow a particular strategy, which isn't too hard, but tedious to write down (see here).

      But now imagine you play tic-tac-toe the other way around, so that the first person to get three in a row loses the game. Again the game will end in a draw if both players play optimally. But this time the strategy for the first player is really easy: at your first move, choose the central square, and after that simply mirror your opponent's moves. By "mirror" we mean that you choose the square that is diametrically opposite the last square the opponent chose: if the opponent chose the top right corner, you choose the bottom left one, if they chose the middle top one, you choose the middle bottom one, and so on.

      The same works in a version of tic-tac-toe that has, not 3x3, but nxn squares, where n is an odd number (if n is even there is no central square). Again we play the version in which the player who first gets n in a row loses. If the first player adopts the strategy above, they will never lose.

      It's not too difficult to see why this strategy works. Let's call the player who goes first A and the other one B. After A takes the central square at the first move, B goes next and A mirrors B from then on. This means that whatever configuration of squares A has taken, B has taken the mirror image of the same configuration first. In particular, if A was forced to take n squares in a row, then B must have taken n squares in a row at the previous move, so B would have lost before A even got to make the supposed losing move. Nice!

      About this article

      This article was inspired by content on our sister site Wild Maths, which encourages students to explore maths beyond the classroom and designed to nurture mathematical creativity. The site is aimed at 7 to 16 year-olds, but open to all. It provides games, investigations, stories and spaces to explore, where discoveries are to be made. Some have starting points, some a big question and others offer you a free space to investigate.

      Read more about...
      strategy
      game theory
      creativity
      • Log in or register to post comments

      Anonymous

      3 October 2014

      Permalink

      "lose" not "loose"

      • Log in or register to post comments

      Anonymous

      4 October 2014

      Permalink

      There's another interesting Tic-Tac-Toe variation called Notakto. Like this version, the object is to avoid getting 3 in a row, but in Notakto, both players are playing X. Working out a winning strategy is an interesting exercise.

      • Log in or register to post comments

      Anonymous

      6 October 2014

      Permalink

      Numerical Tic Tac Toe is a variation invented by the mathematician Ronald Graham. 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).

      You can try this (free) game on android devices:

      http://tinyurl.com/m5oqdkk

      • Log in or register to post comments

      Anonymous

      11 October 2014

      Permalink

      How not to lose when going first.
      First move :
      Place a cross in the centre square
      Subsequent moves:
      If you can complete three crosses in a line, do so. If not, place your cross in a square adjacent to your opponent’s last move.

      How not to lose when going second.
      First move :
      If opponent takes the centre square take a corner square, else take the centre square.
      Subsequent moves:
      If you can complete three in a line, do so.
      Else, if your opponent has two crosses in an open line, block that line.
      Else enter your move in an adjacent square to your opponent's last move.

      • Log in or register to post comments

      Read more about...

      strategy
      game theory
      creativity
      University of Cambridge logo

      Plus Magazine is part of the family of activities in the Millennium Mathematics Project.
      Copyright © 1997 - 2025. University of Cambridge. All rights reserved.

      Terms