()
| 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 | })() |
| 236 | let cells = [] |
nothing calls this directly
no outgoing calls
no test coverage detected