Skip to main content

Ultimate Tic-Tac-Toe

Tic-Tac-Toe, but with an intense twist! This game packs almost as much strategy as chess, with much more simplicity.


Jeremy Gagnier
(jerber99)

Ultimate Tic-Tac-Toe

Game comes with source code.

 

Instructions:

There are two levels of boards in Ultimate Tic-Tac-Toe; the large board and the 9 small boards. Just like regular Tic-Tac-Toe, a player wins a board if they get 3 in a row. When a player wins a game in a small board, they get their symbol in the location of the small board on the big board. When a player wins on the big board they win the game. To start a game, player 1 places an X on any spot on any small board. The turns then alternate between player 1 and player 2 (X's and O's). When you place your symbol in one of the 9 locations on a small board, the other player must place their next symbol in the small board that corresponds to that location on the big board. (This may be very confusing, but the game will highlight the board that the next player must play on and it will only let them put their symbol there).

 

Controls:

  • Left Click - Place X or O at location

 

The exe to play is in the folder UTTTV1.0.0 and it is called run.exe.

If you want, make a shortcut outside of the UTTTV1.0.0 folder that points to run.exe.

Changes

Links

Home Page
http://jergagnier.wix.com/projects

Releases

Ultimate Tic-Tac-Toe 1.0.0 — 1 Aug, 2013

Pygame.org account Comments

  • Gregor Lingl 2013-08-06 09:09

    Nice thing, at a first glance. Have to find a partner to try it out.
    If one implemented the rule that a sub-board that already contains three in a row couldn't be accessed any more - which for me seems feasible - would that change the game significantly or even render it unplayable?
    Do you have links to some explanations, discussions, history or other ressources concerning this game?

    DoomLord 2013-08-06 23:26

    If an occupied sub-board couldn't be accessed then a lot of the strategy would die because the sending of someone to the useless board would no longer exist. It's a nice tactic to have and it can take you from a losing position to a winning one quite quickly. Also you would have to consider what would happen if you tried to send someone to an inacessable sub-board. You would be giving your opponent the option to place anywhere on the board. Certainly, the tactics would be different, but this version is simpler and I think it's better.

    I tried looking for this game online to see if anyone else had the idea or made a similar game. There are many versions of tic-tac-toe according to wikipedia, but none of them described this game.

    I got the idea from someone in grade school and much later I remembered it and started playing it with some friends in high school. After that I decided to make it into a program.

    TIM ALLEN 2014-02-14 20:53

    Brogrammer

  • Ben Black 2014-10-07 14:34

    I just learned this game a few weeks ago, and made an AI for it, and it beats people who are very good. I made it for the express purpose of telling people that no, the game is not nearly as complex of strategy as chess, because a computer program that a total noob wrote in 6 hours beats them. The entire game is just tactics. Unfortunately, I am not familiar enough with this site to actually post the source code.

    However, I can tell you how it works. It simply looks at the board several moves into the future, and thinks about the overall position of the board. It then traces back recursively with both virtual sides taking the best possible move for them. Then, the computer takes the move that makes the opponent's best move that is the least advantageous. The fact that you are forced to move in a location with only 9 possibilities allows for this brute force analysis method. In other words, it is not nearly as good as chess or go.

  • Shere Khan 2015-04-22 13:28

    Hello, there!

    You can play this game for free on Steam: " http://store.steampowered.com/... ".
    It also has a nice twist to it: the oldest 4th piece of the same player in a board will get erased. This eliminates the possibility that boards end up in ties and makes matches much more fun to play.
    You can play against the AI, but also challenge your friends, play ranked matches, see the global leader-boards, win achievements a.s.o.

    Enjoy!

  • Milin Patel 2019-10-28 23:41

    Hi, nice work first of all. I want to modify your code and turn it into a game where one of the player is the computer. Please tell me what part of your code should I look forward to change? I am new to this thing so, I would appreciate any help if possible.