Obviously a mistake in question, but we must follow what is written in question.
Length; i) if (nerhtml "X" nerhtml "O return; if(nerhtml nerhtml computerChar; return; if (nerhtml "X" nerhtml "O return; if(nerhtml nerhtml computerChar; return; if (nerhtml "X" nerhtml "O return; if(nerhtml nerhtml computerChar; return; if (nerhtml "X" nerhtml "O return; if(nerhtml nerhtml computerChar; return; if (nerhtml "X".
(it will be removed from the click handlers too, as noted below).Edited 2 times in total.).#1, oct-01-2017, 05:00 AM (This post was last modified: Oct-01-2017, 05:00 AM by shivam_hbti.Each click handler already sets "X" for the player.I wanted to create a simulation between a player and a computer and I managed to sort things out somehow.



And then change the same for all the ones within the html file too.
Ensure to set the correct dataContent array index within each handler!
Here, in this question we are not supposed to have A - le figaro concours a, even though that is not a unit production.
I'll stop here for now, as I'm sure that is enough to review and/or ponder.
Js" /script /body /html Answer 1, well, there are a several things that can be improved, which of course will happen when more experience is acquired.Then that function is used by each click handler like this small sample for the first three handlers: cell1x1.click(function setPlayerX( dataContent0 cell1x2.click(function setPlayerX( dataContent1 cell1x3.click(function setPlayerX( dataContent2 / Apply the similar change to the other 6 click handlers.I've been trying to create a simple project game (Tic Tac Toe) for a couple of days and finally i did.Feel free to ask questions, if needed.Now, I want to calculate reduced moving averages.For example, the function could look like this: (feel free to rename to your liking) function occupiedCell( elementRef ) return( nerhtml playerChar nerhtml computerChar.