FCC Tic Tac Teo game example on codePen has a bug!

So, I was playing with FCC codepen Tic Tac Teo project. And I fond this bug:

I am sorry if the screen shot is bad. I barely had the time to take the screenshot because it moves on to the next round directly.

How to replicate it?
I am not sure exactly, but here was you can do to increase your chances of getting it:
Pick x and when it’s the computer’s turn to start putting O first, play your x before him. Usually, he will play 2 O’s, but sometimes he plays 3. I replicated it 3 times. it happens once every 10 - 15 tries with me.

I don’t why I posted this other than I found it interesting to share.

1 Like