Project link ─ FreeCodeCamp : Build a Tic Tac Toe Game
Feedback is appreciated.
Great work! Keep it up!
http://codepen.io/pbweb/full/jAgxPz/ Minimalistic, but the project was really challenging and exciting!
Here is my project … Don’t look too great, but …is functional.
Project Link - http://codepen.io/ccwoolfolk/full/ambjQY/
This was a fun one. Now on to Simon…
I really like yours. You made it very fun, especially with the sound effects.
Mine is super-simple http://codepen.io/r1chard5mith/pen/Kgpybw and I’m “handing it in” today, even though it isn’t unbeatable.
I haven’t done the “min max” algorithm yet, but I just realised it doesn’t actually need to be unbeatable to count (I’ll come back and do it later)
The AI is based off of Wikipedia’s optimal strategy, and I think it’s unbeatable? At least, I haven’t been able to beat it yet. Feedback/comments/you telling me that you beat it/anything else is absolutely welcomed! https://bethqiang.github.io/tic-tac-toe/
Thank you! I didn’t do the min max algorithm either. I will make another tic tac toe game at some point and incorporate that into it also.
so I copied your tic tac toe into codepen and started fiddling around with it for two days but I cannot still figure out how your minimax function finds the highest score and changes the board. If you could help me out I would really appreciate it.
there is your tic tac toe, I simplified it a little bit and also populated the board so I could console.log some stuff from the minimax func easier. play by selecting X and clicking on div id 7. http://codepen.io/abdolsa/pen/vXmvbo?editors=0011
This is great! I couldn’t beat it at all, and I did it like 100 times (give or take a few)
Sorry, I won!
This document http://www.cs.jhu.edu/~jorgev/cs106/ttt.pdf has helped me a great deal in designing my play algorithm (just a table lookup for the 2 first plays).
Here is my tic-tac-toe game. I attempted to emulate handwriting on a green chalk board. Hence, no lines are drawn the same. I did not implement the minimax algorithm for the game engine, as this would be an overkill. Only the first two rounds suffice to determine the issue of the game, so a table-lookup seems to be the easiest way to implement it. I would be delighted if you care to review it.
Project link: http://codepen.io/daniel-m/full/vXRyKk/