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

  • xenogamer
    xenogamer
    22nd Aug 2020
    BUG it picks in a already picked spot then the game dont end it just gets filled up and ya
  • csavas
    csavas
    22nd Aug 2020
    JohnSmith777779: As I already said about 3 times, if the AI cheats or X wins then thats a bug, which I will fix if you tell me what moves you made to get that result.
  • alice_loona_OT12
    alice_loona_OT12
    22nd Aug 2020
    Sometimes, the X can win and O gets counted up. Please don't use trickery like that, the AI should be able to win on its own
  • csavas
    csavas
    22nd Aug 2020
    JozeffTech: Plasmey_401k already asked that, and I already answered. Of course, it would be a draw, here are the moves --> (1,5,2,3,7,4,6,8,9).
  • JozeffTech
    JozeffTech
    22nd Aug 2020
    I have an interesting question. If this AI will play with its copy, what the result would be like?
  • csavas
    csavas
    22nd Aug 2020
    BeanyBoi420: I think I fixed it by the time you commented, so I don't know how you have won, but it seems like you can't reproduce it your win either.
  • nukecraft
    nukecraft
    22nd Aug 2020
    Spectacular +1
  • BeanyBoi420
    BeanyBoi420
    22nd Aug 2020
    Csavas, do you mean it never went upright, or that you fixed it, because when I tried the technique that let me win, it stopped me the second time
  • csavas
    csavas
    22nd Aug 2020
    But if you can win nonetheless (or the AI cheats), then thats a bug, which I will probably fix if you tell me what moves you made.
  • Qweryntino
    Qweryntino
    22nd Aug 2020
    Now that he perfected the ai, it's impossible to win