tsgammon-core
Version:
A Backgammon library for Typescript, formerly developed as a part of tsgammon-ui
10 lines (9 loc) • 356 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.eog = void 0;
function eog(status) {
return Object.assign({ isEndOfGame: true, isGammon: false, isBackgammon: false, calcStake(cubeValue = 1) {
return cubeValue * (this.isBackgammon ? 3 : this.isGammon ? 2 : 1);
} }, status);
}
exports.eog = eog;