'use strict';

angular.module('sk.backgammon', [])
  .controller('MainCtrl', ['$scope', function ($scope) {
  }]);


'use strict';

angular.module('sk.backgammon', [])
  .controller('MainCtrl', ['$scope', function ($scope) {
    $scope.stones = Array.apply(null, new Array(30)).map(function(e, i, arr) {
      return {
        player: (i % 2 ) ? 'black' : 'white',
        position: i
      }
    });
  }]);


Initialize array with 30 black and white stones/checkers.
Initialize array with 30 black and white stones/checkers.
