Addplayer

added a player 2 and changed text output to reflect that
else isn’t empty, the first thing in the else statement is a new if

On Aug 9, 2014, at 6:29 PM, Kevin Xue <notifications@github.com> wrote:

> In GlobalMonopoly.js:
> 
> > +    noButton.off();
> > +  }
> > +  this.restartGame = function() {
> > +    this.money += 200;
> > +    document.getElementById(this.name).innerHTML = this.name + " $" + this.money;
> > +    document.getElementById("event").innerHTML = "<p></p>";
> > +    document.getElementById("eventEffect").innerHTML = "<p></p>";
> > +    document.getElementById("roll").innerHTML = "<p></p>";
> > +    document.getElementById("eventEffect").innerHTML = "<p></p>";
> > +    endTurnbutton.off();
> > +    if (this.position < countries.length-1) {
> > +    rollButton.on();
> > +    }
> > +    else {
> > +      if (player1.money < player2.money) {
> > +        player1_active = true;
> Why is there an if, else if, and then an empty else statement? Shouldn't it be just an if and else in this case?
> 
> —
> Reply to this email directly or view it on GitHub.
>