Tic-Tac-Toe Help!

Can someone… anyone, help me figure out why when the ‘fourCorners’ function is activated, it fills in 2 boxes instead of one. Any assistance would be greatly appreciated.

Here’s a link to my code: https://codepen.io/DRick504/pen/bRGgRJ

Hey there DRick I clicked the link you provided but the pen is not there. I also tried just going to your codepen site and looked around and only saw the twitch.tv example.

2 Likes

I found his pen for this but can’t find that function.

2 Likes

Cool you found it :ok_hand: , but unfortunately I can’t find it either :stuck_out_tongue: LOL. Probably he figured out the issue. The game works well overall though.

1 Like

@adonis8441 Hey guys thanks for the reply, but yea I figured it out. I scrapped the old one and basically started from scratch. It took me a while to get my head around the minimax algorithm but I eventually found out how to implement it into my code. I don’t know how to close out posts which is why this one is still up. Thanks again!

1 Like

:thumbsup: Glad to hear :smiley: