Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation continue running also after clearing grid. #15

Open
himanshush200599 opened this issue Sep 13, 2018 · 1 comment
Open

Generation continue running also after clearing grid. #15

himanshush200599 opened this issue Sep 13, 2018 · 1 comment

Comments

@himanshush200599
Copy link

If a clicked clear button, generation still increasing continuosly.
i want, if clear button press then generation should set to 0 and stop till playButton press.

@ImAbhishekTomar
Copy link

ImAbhishekTomar commented Oct 27, 2018

Update this function...

Code..

function declareWinner(who) {
	document.querySelector(".endgame").style.display = "block";
	document.querySelector(".endgame .text").innerText = who;

	for (var i = 0; i < cells.length; i++) {
		cells[i].removeEventListener('click', turnClick, false);
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants