Wild Tic Tac Toe

Logic Level 2

Wild tic-tac-toe is like traditional tic-tac-toe except that on each turn, a player may place an X or an O. The first person to get a row, column, or diagonal of three Xs or Os wins the game.

If Wild tic-tac-toe is played optimally, who should win?

This particular game ends on victory for player 2. The moves (and which player made them) are marked. This particular game ends on victory for player 2. The moves (and which player made them) are marked.

Player one Player two The game should end in a tie

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

David Vreken
May 7, 2018

Relevant wiki: Combinatorial Games - Winning Positions

Player 1 can always win by starting in the center and then always playing the same letter directly opposite of Player 2 until a winning move presents itself.

Let's say Player 1 places an X in the center. If any player places another X anywhere, the other player can place a 3rd X and win. So now both players must only use Os for optimal play.

If Player 2 places an O in any of the corners, Player 1 can place an O in the opposite corner, and then no matter where Player 2 places an X or O Player 1 can place a 3rd X or O and win.

Player 2 can prolong the game by placing Os in the sides, but as long as Player 1 matches Os in the opposite sides, eventually all the sides will be used up and Player 2 will be forced to place an X or O in one of the corners, in which case Player 1 can place a 3rd X or O and win.

No matter how Player 2 plays, Player 1 can force a win.

That was the strategy I came up with also.

I wonder if there is any other winning strategy for the first player?

Steven Perkins - 3 years, 1 month ago

Log in to reply

From what I can tell if Player 1 starts anywhere other than the center, and if both players play optimally, the game will end in a tie, but there are a lot of variations to consider so I may have missed something.

David Vreken - 3 years, 1 month ago

Log in to reply

David - see my updated reply on a different comment. According to a program I developed to exhaustively search the game state space, a win can be forced only when player 1 starts in the center. If player 1 starts in a corner or an edge, and both players play optimally, a draw is always forced.

Peter Sanza - 3 years ago

Log in to reply

@Peter Sanza That's really neat!

David Vreken - 3 years ago

Player 1 playing a "X" instead of a "O" in his third move (same place) is the only variation i found.

Thomas Lesgourgues - 3 years ago

Log in to reply

ok my 1st move x top left, yours?

Brad Shad - 3 years ago

Log in to reply

@Brad Shad The result is "player 1 " wins. the strategy is detailled is David post. at least take the time to read it... this is not traditionnal tic-tac-toe. the strategy starts with "X" in the center by player 1.

Thomas Lesgourgues - 3 years ago

The first player is not forced to play "O" at every turn. In the last case (where player 2 prolong the game), the third move by player 1 (in total the Fifth move) could be an "X" or "O". it would still ensure a win for player 1. Player 2 would have to play with the following situation :

Player 1 is still sure to win

Thomas Lesgourgues - 3 years ago

Log in to reply

an x on the bottom middle instead of the o, ensures a tie

Brad Shad - 3 years ago

Log in to reply

the bottom middle is taken... when whould you do that move? i was speaking only on the first player third move, leading to the situation in picture;

Thomas Lesgourgues - 3 years ago

Good observation

Bob Smiley - 3 years ago

This is smart

i only guessed first player because the example showed player 2 and examples don't usually show the correct answer And in the normal tic tac toe the first player can also always win so i thought it might be similar here

Laura Gao - 3 years ago

Log in to reply

Actually, in normal Tic Tac Toe if both players are playing optimally the game will end in a tie.

David Vreken - 3 years ago

Log in to reply

Can't player 1 do the trick where you start at a corner and make a fork where he will have 2 winning opportunities and player 2 can't block both of them?

Laura Gao - 3 years ago

Log in to reply

@Laura Gao If Player 2 is playing optimally then he or she will prevent a "fork" from happening in the first place. Check out this website for more details.

David Vreken - 3 years ago

Log in to reply

@David Vreken ohhh. i get it now. thanks

Laura Gao - 3 years ago

always a tie.

Brad Shad - 3 years ago

Log in to reply

Let's play a game and see. I'll start by placing an X in the middle. Your turn.

David Vreken - 3 years ago

Log in to reply

o top left

Brad Shad - 3 years ago

Log in to reply

@Brad Shad O bottom right

David Vreken - 3 years ago

Log in to reply

@David Vreken you are right

Brad Shad - 3 years ago

I do not agree with the solution given. If played optimally ends up in a ties. The only times where someone wins is when there is a mistake. So I kindly disagree

Paolo Chiarlone - 3 years ago

Log in to reply

If everyone plays optimally, then by definition, no one will make a mistake.

Pi Han Goh - 3 years ago

Log in to reply

Agree, so the solution should be "Always a tie"

Paolo Chiarlone - 3 years ago

Log in to reply

@Paolo Chiarlone Please read David's solution again, he clearly demonstrates that the first player has a winning position, even if the second player plays optimally.

Pi Han Goh - 3 years ago

Log in to reply

@Pi Han Goh I read it and I can assure you that you will never beat me at this game even if you play optimally... Again, unless I do make a mistake, it will always end in a tie.

Paolo Chiarlone - 3 years ago

Log in to reply

@Paolo Chiarlone Let's play a game and see. I'll start by placing an X in the middle. Your turn.

David Vreken - 3 years ago

Log in to reply

@David Vreken Upper left

Paolo Chiarlone - 3 years ago

Log in to reply

@Paolo Chiarlone You have to specify whether you play an O or X. If you played an X, I would play an X in the bottom right and win, so I'll assume you played an O in the upper left. Then I would play an O in the bottom right. Your turn.

David Vreken - 3 years ago

Log in to reply

@David Vreken So you can switch the symbols?

Paolo Chiarlone - 3 years ago

Log in to reply

@Paolo Chiarlone Yes, the question states, "Wild tic-tac-toe is like traditional tic-tac-toe except that on each turn, a player may place an X or an O"

David Vreken - 3 years ago

Log in to reply

@David Vreken This has been a very amusing thread!

Spicy Brigadoon - 3 years ago

Log in to reply

@David Vreken Oppps missed that then! AH AH

Paolo Chiarlone - 3 years ago

Log in to reply

@Paolo Chiarlone No problem! I'm glad you understand now.

David Vreken - 3 years ago

Log in to reply

@David Vreken Thanks, and sorry for that!

Paolo Chiarlone - 3 years ago

I disagree, there's a difference between Wild Tic-Tac-Toe and Tic-Tac-Toe. Player One has the advantage since their turn comes first, so they can place an X or O in the middle which -- as demonstrated by David Vreken -- will always let Player One win. Since it will always let Player 1 win, definitionally that is the optimal choice for Player 1. From that point on, no matter what Player 2 does, Player 1 can still force a win by choosing the optimal choice of placing an O or X in the middle.

Albert Nguyen - 3 years ago

I thought people on this site were smarter than disagreeing with facts. Do you realize how stupid that makes you sound?

Vilim Lendvaj - 3 years ago

Log in to reply

Calling other people stupid makes you very smart instead, good job Vilim

Paolo Chiarlone - 3 years ago

Exactly how I went about it!

Mark Lama - 3 years ago

Wrong. If both players play perfectly, it is always a tie.

David G - 3 years ago

Log in to reply

Let's play a game and see. I'll start by placing an X in the middle. Your turn.

David Vreken - 3 years ago

without mistakes, it is always a tie.

Mircea Sabau - 3 years ago

Log in to reply

no it is not. if first player plays an "X" center first move, and then follows the strategy details in David Vreken post, player 1 always win. This is not traditionnal tic-tac-toe. Happy to show it to you. i can start with "X" center. your move.

Thomas Lesgourgues - 3 years ago

Log in to reply

oops... you are right.

Mircea Sabau - 3 years ago

This strategy always results in player 1 winning - player 2 cannot force a draw (or win) if player 1 uses this strategy. I think the skeptics out there may be getting the point of the puzzle confused. David is not claiming that player 1 always wins no matter what the starting move is. David is claiming that player 1 always wins if player 1 uses the strategy described. I wrote a small program to search the entire game state space and there are definitely ways that player 1 can lose or draw - but then, by definition, player 1 did not play optimally. The puzzle question asked who should win if the game is played optimally and the answer is player 1. Unfortunately, the game state space is quite large and resisted my attempts to infer if there are any alternate winning strategies. I will need to extend my program to figure that out - maybe some day.... Cheers.

Update: There is a "trivially different" alternate solution. If you exchange the X and O tokens in David's solution (i.e., player 1 starts with O in the center with Xs and Os reversed in the strategy description), you end up with an equivalent winning strategy that is only trivially different than David's strategy. I mention this for completeness, but do not believe this constitutes a different solution than David's.

Update: Expanded my program. Unless my program has a bug, based on exhaustive search of the game state space, this solution is the ONLY solution that can force a win when both players play optimally. By symmetry, there are 3 basic starting moves for player 1: (1) center, (2) corner, and (3) edge. Player 1 can force a win by starting in the center as David has pointed out. A draw is forced when player 1 starts in the corner or on an edge and both players play optimally.

Peter Sanza - 3 years ago

The key here is that it is NOT standard Tic-Tac-Toe. Either player can write X or O. Almost all the comments below seem to assume a standard game of Tic-Tac-Toe, but the example shows a different sequence. Good puzzle - I'd recommend emphasizing the difference immediately rather than saying "is like traditional tic-tac-toe except....". Try "Wild tic-tac-toe is a variant of Tic-Tac-Toe where either player can ..."

Chris Brown - 3 years ago

Log in to reply

The first player always wins, so there's no fun in playing it

Aarush Priyankaj - 3 years ago

Log in to reply

It might be a fun game if it was extended to a 4x4 grid. (extending to 3 dimensions has the same solution of 1st player always winning). I wonder if that results in a more interesting game.

Chris Brown - 3 years ago

Unless you're player #1 and player #2 hasn't caught on yet... :)

Bob Smiley - 3 years ago

You are right. This is not the standard TicTacToe. The question was wrong.

Joao Penha-Lopes - 3 years ago

You need to improve your instructions on this game.

Carol Vesey - 3 years ago

I wonder about 4x4...I also thought of a possible variant. What if each player can either place a letter or erase and change a letter? There would probably have to be a rule preventing repetitive loops, like you can't change the same square twice in a row, or even you can't change the same letter twice in a row.

Doug McKenzie - 3 years ago

Log in to reply

That would be a very interesting game

Laura Gao - 3 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...