function game(decision_function){
var num_plays = 10
var score
var total_score = 0
var i
for (i=0; i < num_plays; i++){
var x_reported_decision = decision_function({str:"x"});
var x_trust = Math.random();
var y_decision = decision_function({str:"y", x_trust:x_trust , x_decision:x_reported_decision});
score = play(x_reported_decision==(x_trust >= 0.5), y_decision);
total_score += score;
}
return total_score;
}