The Dark Knight

var Batman:Object = new Object();
Batman.GoodGuy = true;

var HarveyDent:Object = new Object();
HarveyDent.Faces = 1;
HarveyDent.Alive = true;

var Rachael:Object = new Object();
Rachael.Alive = true;

function DarkKnight():void {
if(HarveyDent.Alive == true) {
     Batman.GoodGuy = true;
     if(HarveyDent.Faces == 1) {
          if(Rachael.Alive == true) {
               Rachael.Alive = false;
               HarveyDent.Faces ++;
          }
     } else if(HarveyDent.Faces == 2) {
          HarveyDent.Alive = false;
     }
     DarkKnight();
} else {
     Batman.GoodGuy = false;
}
}
DarkKnight();
Vote up this code0