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

  • DreamWasTaken
    DreamWasTaken
    21st Aug 2020
    beat it
  • Plasmey_401k
    Plasmey_401k
    21st Aug 2020
    Ah, cool! Thanks for the info!
  • csavas
    csavas
    21st Aug 2020
    Plasmey_401k: If it played aganist itself it would go as (starting from one, left to right, top to bottom): 1,5,2,3,7,4,6,8,9 = DRAW
  • JustAPlayer
    JustAPlayer
    21st Aug 2020
    actually turns out me winning was a glitch, i didnt spark anywhere else than the tic tac toe board and the bot made a wrong move, next time i tried it made the right move
  • JustAPlayer
    JustAPlayer
    21st Aug 2020
    the X counter is fake. shameful lol
  • JustAPlayer
    JustAPlayer
    21st Aug 2020
    bruh i once won and the X wins counter didnt count...
  • Maticzpl
    Maticzpl
    21st Aug 2020
    uses the same strategy i do irl lol
  • JustAPlayer
    JustAPlayer
    21st Aug 2020
    noice. back wheni played tic tac toe with my family i used to know this "killer move" that always made me win since i had 2 squares where i could put X or O or whatever i was playing as and the enemy could only block one line, but i forgot it lol +1
  • csavas
    csavas
    21st Aug 2020
    rancidstike: What moves did you make? And are you sure that you have played the updated version (after my previous comment)?
  • rancidstike
    rancidstike
    21st Aug 2020
    I did beat it but it still said i lose.