Scorekeeper

https://github.com/gschorkopf/frolfr/issues/43
Totally!

On Mon, Dec 15, 2014 at 3:32 PM, Jordan Killpack <notifications@github.com>
wrote:
>
> In app/assets/javascripts/controllers/turns_controller.js
> <https://github.com/gschorkopf/frolfr/pull/67#discussion-diff-21854239>:
>
> > +        if (turn.get('isDirty')) {
> > +          turn.save();
> > +        };
> > +      });
> > +
> > +      if (this.get('isLastHole')) {
> > +        _this.transitionToRoute('round', roundId);
> > +      } else {
> > +        _this.transitionToRoute('turns', roundId, holeNumber);
> > +      };
> > +    },
> > +
> > +    addOne: function(turn) {
> > +      var score = parseInt(turn.get('score'));
> > +
> > +      turn.set('score', Math.min(8, score + 1));
>
> Could we move this 8 into a variable or something, so that it's less of a
> magic number?
>
> maximumHoleScore: 8
>
> or whatever?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/gschorkopf/frolfr/pull/67/files#r21854239>.
>