The Hunger Games

/* var capitol defined in capitol.js */

var districs = (function(){ o = []; for(i=0; i<12; i++) o.push(i); );

var tributes = capitol.choseTributes();
var katniss = characters.find("Katniss", "Everdeen");

capitol.hungergames.play = function(){
    for(var i=0; i<tributes.length; i++){ tributes[i].act("kill_everyone"); }
};

for(var i = 0; i<tributes.length; i++){
    var tribute = tributes[i];
   
    if(tribute.district == 12){
        if(tribute.name.first == "Primrose" && tribute.name.last == "Everdeen"){
            katniss.act("say", "I VOLUNTEER AS TRIBUTE!"); tributes[i] = katniss;
        }
    }
}

capitol.hungergames.play();
Vote up this code0