Tic-Tac-Toe Help!

Tic-Tac-Toe Help!
0

#1

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


#2

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.


#3

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


#4

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.


#5

@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!


#6

:thumbsup: Glad to hear :smiley: