Code coverage report for lib/standard.js

Statements: 100% (49 / 49)      Branches: 100% (10 / 10)      Functions: 100% (21 / 21)      Lines: 100% (49 / 49)      Ignored: none     

All files » lib/ » standard.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85  1   3     3     5     3     3     4       1           1 1 1 1 1 1 4454 4454   1 1 412   14688   1 4440 4440 4440   1 1 403   11671   1 8879 8879   1 1 808   19954   1 8864 8864   1 1 801   19918   1 8857 8857   1 1 798   19824    
"use strict";
Object.defineProperties(exports, {
  Pawn: {get: function() {
      return $__pawn__.Pawn;
    }},
  King: {get: function() {
      return King;
    }},
  Queen: {get: function() {
      return Queen;
    }},
  Rook: {get: function() {
      return Rook;
    }},
  Bishop: {get: function() {
      return Bishop;
    }},
  Knight: {get: function() {
      return Knight;
    }},
  __esModule: {value: true}
});
var $__0 = require('./brands'),
    KING = $__0.KING,
    QUEEN = $__0.QUEEN,
    KNIGHT = $__0.KNIGHT,
    BISHOP = $__0.BISHOP,
    ROOK = $__0.ROOK;
var Piece = require('./piece').Piece;
var Leaper = require('./leaper').Leaper;
var Rider = require('./rider').Rider;
var Royal = require('./royal').Royal;
var $__pawn__ = require('./pawn');
var King = function King(options) {
  $traceurRuntime.superCall(this, $King.prototype, "constructor", [options]);
  Royal.call(this);
};
var $King = King;
($traceurRuntime.createClass)(King, {get fenEncoding() {
    return this.isWhite ? 'K' : 'k';
  }}, {get brand() {
    return KING;
  }}, Piece);
var Queen = function Queen(options) {
  $traceurRuntime.superCall(this, $Queen.prototype, "constructor", [options]);
  Rider.call(this, 1, 0);
  Rider.call(this, 1, 1);
};
var $Queen = Queen;
($traceurRuntime.createClass)(Queen, {get fenEncoding() {
    return this.isWhite ? 'Q' : 'q';
  }}, {get brand() {
    return QUEEN;
  }}, Piece);
var Rook = function Rook(options) {
  $traceurRuntime.superCall(this, $Rook.prototype, "constructor", [options]);
  Rider.call(this, 1, 0);
};
var $Rook = Rook;
($traceurRuntime.createClass)(Rook, {get fenEncoding() {
    return this.isWhite ? 'R' : 'r';
  }}, {get brand() {
    return ROOK;
  }}, Piece);
var Bishop = function Bishop(options) {
  $traceurRuntime.superCall(this, $Bishop.prototype, "constructor", [options]);
  Rider.call(this, 1, 1);
};
var $Bishop = Bishop;
($traceurRuntime.createClass)(Bishop, {get fenEncoding() {
    return this.isWhite ? 'B' : 'b';
  }}, {get brand() {
    return BISHOP;
  }}, Piece);
var Knight = function Knight(options) {
  $traceurRuntime.superCall(this, $Knight.prototype, "constructor", [options]);
  Leaper.call(this, 1, 2);
};
var $Knight = Knight;
($traceurRuntime.createClass)(Knight, {get fenEncoding() {
    return this.isWhite ? 'N' : 'n';
  }}, {get brand() {
    return KNIGHT;
  }}, Piece);