0
Tic tac toe web game
Need help determining the error. Change player not functioning. https://code.sololearn.com/WtS4kNL5iP5u/?ref=app
7 Réponses
+ 1
I have noticed that there is no class name called "displayPlayer" in the HTML part, and the changePlayer function does not have the parentheses next to it at line 89, and made some other changes..
https://code.sololearn.com/WlgGEFFS40S9/?ref=app
+ 1
I like to debug using console.log(). place them in areas to see what variables are doing and if functions are getting called.
i put a console.log("i'm getting called") in your changePlayer function and nothing is printing to the console...
+ 1
Keeeeen Nice! 👍
The code wasn't too complicated for me so I can fix it..
+ 1
Keeeeen Next time, if an error or bug occur in your code, check your code spelling if it's correct.. If it is, you may need to check the code syntax or ask people.
0
Do you have any idea how to fix it?
0
Thank you so much Dragon RB made the same changes to my code and some little bits. Now it all works well. The player display on the tiles has the colors now too.
https://code.sololearn.com/WtS4kNL5iP5u/?ref=app
0
Dragon RB i was checking my spellings on the js tab thoroughly last night but couldn't find it. Figured the problem was on the HTML side. Thank you so much for the help.