var blue_score = 0;
var red_score = 0;
onEvent("blue_btn", "click", function( ) {
blue_score = blue_score+1;
setProperty("blue_score_value", "text", blue_score);
});
onEvent("red_btn", "click", function( ) {
red_score = red_score+1;
setProperty("red_score_value", "text", red_score);
});
onEvent("blue_add_btn", "click", function( ) {
setProperty("blue_btn", "text", getProperty("blue_input", "text"));
});
onEvent("red_add_btn", "click", function( ) {
setProperty("red_btn", "text", getProperty("red_input", "text"));
});
onEvent("rest_btn", "click", function( ) {
var blue_score = blue_score-0;
setProperty("blue_score_value", "text", "0");
});
onEvent("rest_btn", "click", function( ) {
var red_score = red_score-0;
setProperty("red_score_value", "text", "0");
});