Live data from Hacker News

Tic-Tac-Toe-ception

khanacademy.org

31–37 of 37 posts

Re: Tic-Tac-Toe-ception

#31
post #20

There's one unfair thing in this though. If the board has already been won, sending them to the same board allows them to place a mark anywhere on the megaboard even if there are vacant spots available on the said board.

How is that unfair?

If they still have to go to the same board, there's a simple gambit described in a previous article that gives first player a big advantage. Open with the center square in the center board. Second player must play center board. You play the center square in the next board you're sent to. Continue, forcing the second player to play in the center board until it's completely filled and you have a marker in every surrounding board.

Using this gambit I managed to win against the variant posted by gjsriv.

Re: Tic-Tac-Toe-ception

#33

I keep seeing "Oh noes! SecurityError: DOM Exception 18" using Chrome on win7... Edit: It has something to do with either reading cookies, or loading a video from a different server?

I tried just now! it works perfect for me. Google the problem. Some reasons/solutions from Stack might help

Re: Tic-Tac-Toe-ception

#34
The interplay of micro and macro reminds me of Go. I also like how offense and defense are so connected in a Yin Yang fashion.

Perhaps it should be called "TictIctaC TactActaC ToetOetoE". Another possibility: "Tic Frac Toe", giving a nod to the fractal quality. This game is great!

Re: Tic-Tac-Toe-ception

#35
Note that this was created long before the recently posted article. So, its rules variations are totally correct, because it wasn't trying to match the article's definition of the game ;)

It originally used what it calls Rule 5a, as the article proposed, but that allows the first player to always win (see Perfect), so it now uses Rule 5b by default, but it can be toggled easily.

There are also a ton of other config options if you scroll down past the initial comments; most of the variants, like the Perfect one, just have different defaults for linking convenience.

Re: Tic-Tac-Toe-ception

#36
post #29
post #28

Earlier quoted context omitted.

About the AI sending us to already won square - won't we do the same? So this is a smart AI :P

Oh totally. I didn't look at the code though but I'm impressed if that isn't a hardcoded behaviour.

It looks like it's using the Monte-Carlo bot, "which plays out as many random games as it can within 5 seconds and plays which ever next position had the greatest percentage of wins". So, yup, not hardcoded :)
Post reply on HN