AP PT CodePrint | Print Code

PHOTO EMBED

Wed Feb 05 2025 04:27:03 GMT+0000 (Coordinated Universal Time)

Saved by @2025arjonaj #javascript

var difficulty = 15;
var correctSquare;
var p1Score = 0;
var p2Score = 0;
var currentPlayer = 1;

function updateScore(scoreChange){
  if(currentPlayer == 1){
    p1Score += scoreChange;
    setText("score1", p1Score);
  }
  else{
    p2Score += scoreChange;
    setText("score2", p2Score);
  }
}


content_copyCOPY

https://codeprint.org/