The Wayback Machine - https://web.archive.org/web/20240118173147/https://www.geeksforgeeks.org/puzzle-38-tic-tac-toe-puzzle/
Open In App
Related Articles

Puzzle 38 | (Tic Tac Toe Puzzle)

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

Statement:
The game of Tic-Tac-Toe is being played between two players and it is in below state after six moves.

p38ttt

Can you answer following questions?

  1. Who will win the game, O or X?
  2. Which was the sixth mark and at which position?

Assume that both the players are intelligent enough.

 
Solution:
O will win the game. The sixth mark was X in square 9.

 
Explanation:
The 7th mark must be placed in square 5 which is the win situation for both X and O. Hence, the 6th mark must be placed in a line already containing two of the opponents marks. There are two such possibilities – the 6th mark would have been either O in square 7 or X in square 9.

As we know both the players are intelligent enough, the 6th mark could not be O in square 7. Instead, he would have placed O in square 5 and would have won.

Hence, the sixth mark must be X placed in square 9. And the seventh mark will be O. Thus O will win the game.

 
This article has been contributed by Vikash Kumar.

 

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 19 Jan, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads