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

Function switchPlayer

Tic-tac-toe using JS/scripts/game.js:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32function switchPlayer(){
33 if(activePlayer===0){
34 activePlayer=1;
35 }
36 else{
37 activePlayer=0;
38 }
39 activePlayerNameElement.textContent=player[activePlayer].name;
40}
41
42
43function selectGameField(event){

Callers 1

selectGameFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected