csavas
csavas
131 / 20
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

  • 7addva
    7addva
    21st Aug 2020
    if you play just the lowest line you will win
  • JozeffTech
    JozeffTech
    21st Aug 2020
    My English have glitches sometimes.
  • JozeffTech
    JozeffTech
    21st Aug 2020
    "In a row" is in one line. Here's explanation: id:2575913
  • moonheart08
    moonheart08
    21st Aug 2020
    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.
  • JozeffTech
    JozeffTech
    21st Aug 2020
    This machine is cheater. I've got 3 in a row in the bottom and it says "AI win".
  • moonheart08
    moonheart08
    21st Aug 2020
    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.
  • LBPHacker
    LBPHacker
    21st Aug 2020
    He uses the dark magic known as mathematics in some areas, run for your lives! D:
  • moonheart08
    moonheart08
    21st Aug 2020
    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.
  • Rapid
    Rapid
    21st Aug 2020
    If you check 3, 6, 9 it doesn't set up your win count
  • HamerBot
    HamerBot
    21st Aug 2020
    if you deco off you will see even if you win you wont get a win in tab