csavas
21st Aug 2020
23rd Aug 2020
This is a perfectly playing Tic-tac-toe AI which uses a look-up table. Just click in the 3x3 grid with SPRK to play. After a game ended it automatically restarts in 3 seconds. Source code is available at: https://github.com/csavas03/R2_TicTacToe_AI
unbeatable
subframe
r216
game
tictactoe
r216k4a
Comments
-
if you play just the lowest line you will win
-
My English have glitches sometimes.
-
"In a row" is in one line. Here's explanation: id:2575913
-
Editing in a three-in-a-row is cheating too. If you don't cheat, AI always wins. If you cheat, AI won't even see what you did and keep playing with whatever the board was before you tried to cheat.
-
This machine is cheater. I've got 3 in a row in the bottom and it says "AI win".
-
Tic tac toe is a "solved" game, in that it's possible to play so that you never lose, only win or draw. Two perfect players would always draw.
-
He uses the dark magic known as mathematics in some areas, run for your lives! D:
-
As people don't seem to get it: The AI is literally unbeatable. It doesn't cheat, but it will win every single time. Game code doesn't even have the ability to handle a X win condition because it's not possible.
-
If you check 3, 6, 9 it doesn't set up your win count
-
if you deco off you will see even if you win you wont get a win in tab