onix-chess
Advanced tools
Comparing version
@@ -13,3 +13,3 @@ "use strict"; | ||
}; | ||
exports.gameReducer = (state = INITIAL_STATE, action) => { | ||
const gameReducer = (state = INITIAL_STATE, action) => { | ||
onix_core_1.Logger.debug('Try game action', action); | ||
@@ -67,2 +67,3 @@ switch (action.type) { | ||
}; | ||
exports.gameReducer = gameReducer; | ||
//# sourceMappingURL=GameReducer.js.map |
@@ -18,3 +18,3 @@ "use strict"; | ||
}; | ||
exports.getGameState = (engine) => { | ||
const getGameState = (engine) => { | ||
var _a; | ||
@@ -27,3 +27,4 @@ return { | ||
}; | ||
exports.createGameState = (settings) => { | ||
exports.getGameState = getGameState; | ||
const createGameState = (settings) => { | ||
const engine = new Chess_1.Chess(settings); | ||
@@ -33,2 +34,3 @@ engine.moveLast(); | ||
}; | ||
exports.createGameState = createGameState; | ||
//# sourceMappingURL=GameState.js.map |
@@ -6,6 +6,7 @@ "use strict"; | ||
const Color_1 = require("./Color"); | ||
exports.plyToTurn = (ply) => { | ||
const plyToTurn = (ply) => { | ||
return toSafeInteger_1.default(1 + (ply - 1) / 2); | ||
}; | ||
exports.plyToColor = (ply) => { | ||
exports.plyToTurn = plyToTurn; | ||
const plyToColor = (ply) => { | ||
if (ply === 0) { | ||
@@ -16,3 +17,4 @@ return Color_1.Color.White; | ||
}; | ||
exports.turnToPly = (turn, color) => { | ||
exports.plyToColor = plyToColor; | ||
const turnToPly = (turn, color) => { | ||
if (turn === 0) { | ||
@@ -24,2 +26,3 @@ return 0; | ||
}; | ||
exports.turnToPly = turnToPly; | ||
//# sourceMappingURL=Common.js.map |
@@ -9,3 +9,3 @@ "use strict"; | ||
let initialized = false; | ||
exports.register = () => { | ||
const register = () => { | ||
if (!initialized) { | ||
@@ -18,2 +18,3 @@ onix_core_1.i18n.registerCategories("en-us", enTranslation); | ||
}; | ||
exports.register = register; | ||
//# sourceMappingURL=i18n.js.map |
@@ -24,2 +24,3 @@ import { IUser } from 'onix-core/dist/app/IUser'; | ||
result_name?: string; | ||
subtype?: number; | ||
} | ||
@@ -26,0 +27,0 @@ export declare type PerfNameType = 'main' | 'maina' | 'classic' | 'classia' | SpeedNameType | VariantNameType; |
{ | ||
"name": "onix-chess", | ||
"version": "7.1.2", | ||
"version": "7.2.0", | ||
"description": "Onix chess library", | ||
@@ -29,3 +29,3 @@ "main": "dist/index.js", | ||
"lodash-es": "^4.17.15", | ||
"onix-core": "^4.2.1", | ||
"onix-core": "^4.2.2", | ||
"redux": "^4.0.5", | ||
@@ -36,7 +36,7 @@ "shortid": "^2.2.16", | ||
"devDependencies": { | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"@babel/register": "^7.12.1", | ||
"@types/lodash-es": "^4.17.3", | ||
"@types/node": "^14.14.7", | ||
"@babel/core": "^7.12.10", | ||
"@babel/preset-env": "^7.12.10", | ||
"@babel/register": "^7.12.10", | ||
"@types/lodash-es": "^4.17.4", | ||
"@types/node": "^14.14.13", | ||
"@types/shortid": "0.0.29", | ||
@@ -46,7 +46,7 @@ "chai": "^4.2.0", | ||
"mocha": "^8.2.1", | ||
"ts-loader": "^8.0.11", | ||
"typescript": "^4.0.5", | ||
"webpack": "^5.4.0", | ||
"ts-loader": "^8.0.12", | ||
"typescript": "^4.1.3", | ||
"webpack": "^5.10.1", | ||
"webpack-cli": "^4.2.0" | ||
} | ||
} |
@@ -33,2 +33,3 @@ import { IUser } from 'onix-core/dist/app/IUser'; | ||
result_name?: string; | ||
subtype?: number; | ||
} | ||
@@ -35,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
508627
0.08%9724
0.09%Updated