Client/JavaScript/game.js
// this method updates the score seen in the upper-left corner of the window
this method updates the score seen in the upper-left corner of the window
this method updates the score seen in the upper - left corner of the window
function updateScore() {
	$("div#score").empty();
	if(game.you%2==0) {
		$("div#score").html("Your team: "+game.team1P+"<br>"+"Opponent team: "+game.team2P);
	}
	else {
		$("div#score").html("Your team: "+game.team2P+"<br>"+"Opponent team: "+game.team1P);
	}
}
function updateScore ( ) { $ ( "div#score" ) . empty ( ) ; if ( game . you % 2 == 0 ) { $ ( "div#score" ) . html ( "Your team: " + game . team1P + "<br>" + "Opponent team: " + game . team2P ) ; } else { $ ( "div#score" ) . html ( "Your team: " + game . team2P + "<br>" + "Opponent team: " + game . team1P ) ; } }
this method updates the score seen in the upper-left corner of the window
this method updates the score seen in the upper - left corner of the window