3 ms·
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
by sigkill 13y ago
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.
- gjsriv 13y agoTry this- https://www.khanacademy.org/cs/tic-tac-toe2/1747678284 https://www.khanacademy.org/cs/tic-tac-toe2/1747678284 You get the first turn :)
- sigkill 13y agoOh yeah, this is better. Fyi note that the AI is totally evil. Its first priority is to send you to a square that's already been won (does not matter who won) effectively rendering your move useless while you give it map mobility. It prioritizes that over making a move at winning a table even! Also, if you think that the AI will play to win the specific board and you can use that knowledge to your advantage... you're wrong, you're so wrong. The only way to make the AI do what you want is to pigeonhole it into a board where there's only one square left.
- gjsriv 13y agoAbout the AI sending us to already won square - won't we do the same? So this is a smart AI :P
- sigkill 13y agoOh totally. I didn't look at the code though but I'm impressed if that isn't a hardcoded behaviour.
- matchu 13y agoIt 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 :)
- DennisP 13y agoHow 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.