()
| 20 | |
| 21 | |
| 22 | function startNewGame(){ |
| 23 | if(player[0].name===''|| player[1].name=== ''){ |
| 24 | alert('Please set custom player names for both players'); |
| 25 | return; |
| 26 | } |
| 27 | activePlayerNameElement.textContent=player[activePlayer].name; |
| 28 | gameAreaElement.style.display="block"; |
| 29 | resetGameStatus(); |
| 30 | } |
| 31 | |
| 32 | function switchPlayer(){ |
| 33 | if(activePlayer===0){ |
nothing calls this directly
no test coverage detected