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

Function reset

bot-human-tictactoe/script.js:227–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225 }
226 }
227 const reset = ()=>{
228 _gameOver = false
229 _currPlayer = PLAYER_X
230 for(let i = 0; i < _state.length; i++){
231 _state[i] = new Array(3).fill(0)
232 }
233 }
234 return{select, getChar, isGameOver, reset}
235})()
236let cells = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected