0
What I have to do for computer mode(computer vs human)? What codes that I insert or add?
My first simple tic tac toy game. https://code.sololearn.com/WzyZOPuKFWj9/?ref=app
4 Answers
+ 8
https://medium.freecodecamp.org/how-to-make-your-tic-tac-toe-game-unbeatable-by-using-the-minimax-algorithm-9d690bad4b37
+ 2
Oh I see now...
In this case you should spend more working with programming and AI.
What I meant is that you should study every possible move and write a code about this.
Example:
Suppose the playground is this:
a1 a2 a3
a4 a5 a6
a7 a8 a9
Now you should write:
a1.onclick = function() {
........->here write what should the comp do, suppose the comp will mark the a5 box
}
Do this for every possible move and you have an AI project(you vs computer)...
Hope it helpsâ
+ 1
Could you explain it better?
1.You want to open sololearn in pc?
Just google sololearn in pc and log in. Every code you have here, will be there too.
If it is something else, let me knowâ
0
Sorry it's my fault. I mean the game that we can play with computer, computer vs human. Actually and thanks đ