MCPcopy Create free account
hub / github.com/codemistic/Web-Development / myfunc_2

Function myfunc_2

Tic Tac Toe/tic.js:243–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241
242// Function to reset game
243function myfunc_2() {
244 location.reload();
245 document.getElementById('b1').value = '';
246 document.getElementById("b2").value = '';
247 document.getElementById("b3").value = '';
248 document.getElementById("b4").value = '';
249 document.getElementById("b5").value = '';
250 document.getElementById("b6").value = '';
251 document.getElementById("b7").value = '';
252 document.getElementById("b8").value = '';
253 document.getElementById("b9").value = '';
254
255}
256
257// Here onwards, functions check turn of the player
258// and put accordingly value X or 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected