Settings

Theme

Show HN: A Tic Tac Toe “AI” Built with Only HTML and CSS

css-ttt.netlify.com

9 points by lbatchelor 7 years ago · 6 comments

Reader

ajurna 7 years ago

there's a bug where it claims i lost when i didn't. bottom left, top right, bottom right, middle right. it will then say green wins.

  • lbatchelorOP 7 years ago

    Hiya, I pushed a fix last night when someone reported something similar.

    I tried your sequence and it looks like it loses now so I think that might be fixed.

    • Nadya 7 years ago

      Still bugged for me - the green and red turns take place on the same "turn" so I end up with green and red winning and it staying green wins - even though red went first.

      This is what it looks like: https://vgy.me/wXP18k.gif

      • lbatchelorOP 7 years ago

        Oh! Apologies. You are completely right. No idea how I missed that.

        Pushed a fix. Thanks for reporting!

  • jansan 7 years ago

    I see the same behavior, but since it's AI based, I consider it not a bug but cheating.

  • chris__butters 7 years ago

    I get this glitch too. Nice concept though

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection