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

Function endGame

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

Source from the content-addressed store, hash-verified

99}
100
101function endGame(winnerId){
102 gameOver.style.display = 'block';
103 if(winnerId >0){
104 const winnerName=player[winnerId-1].name;
105 gameOver.firstElementChild.firstElementChild.textContent=winnerName;
106 }
107 else{
108 gameOver.firstElementChild.textContent='It\'s a draw';
109 }
110}

Callers 1

selectGameFieldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected