brain_games_ivan_bermanov
Version:
console games
26 lines (16 loc) • 1.82 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ = _interopRequireDefault(require(".."));
var _utils = _interopRequireDefault(require("../utils"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const gameName = 'Answer "yes" if number even otherwise answer "no".';
const method = () => (0, _utils.default)();
const isEven = num => num % 2 === 0;
const corrAnswer = question => isEven(question) ? 'yes' : 'no';
const even = () => (0, _.default)(gameName, method, corrAnswer);
var _default = even;
exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9nYW1lcy9ldmVuLW51bWJlcnMuanMiXSwibmFtZXMiOlsiZ2FtZU5hbWUiLCJtZXRob2QiLCJpc0V2ZW4iLCJudW0iLCJjb3JyQW5zd2VyIiwicXVlc3Rpb24iLCJldmVuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7O0FBRUE7Ozs7QUFFQSxNQUFNQSxRQUFRLEdBQUcsb0RBQWpCOztBQUVBLE1BQU1DLE1BQU0sR0FBRyxNQUFNLHFCQUFyQjs7QUFFQSxNQUFNQyxNQUFNLEdBQUdDLEdBQUcsSUFBSUEsR0FBRyxHQUFHLENBQU4sS0FBWSxDQUFsQzs7QUFFQSxNQUFNQyxVQUFVLEdBQUdDLFFBQVEsSUFBS0gsTUFBTSxDQUFDRyxRQUFELENBQU4sR0FBbUIsS0FBbkIsR0FBMkIsSUFBM0Q7O0FBRUEsTUFBTUMsSUFBSSxHQUFHLE1BQU0sZUFBS04sUUFBTCxFQUFlQyxNQUFmLEVBQXVCRyxVQUF2QixDQUFuQjs7ZUFFZUUsSSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBnYW1lIGZyb20gJy4uJztcblxuaW1wb3J0IHJhbmRvbSBmcm9tICcuLi91dGlscyc7XG5cbmNvbnN0IGdhbWV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