UNPKG

onix-chess-game

Version:
704 lines (703 loc) 19.7 kB
declare var boot: { data: { game: { id: string; variant: { key: string; name: string; short: string; }; speed: string; perf: string; rated: boolean; initialFen: string; fen: string; player: string; turns: number; startedAtTurn: number; source: string; status: { id: number; name: string; }; createdAt: number; lastMove: string; }; player: { color: string; user: { id: string; username: string; online: boolean; perfs: { correspondence: { games: number; rating: number; rd: number; prog: number; prov: boolean; }; }; language: string; profile: { country: string; }; patron: boolean; }; rating: number; provisional: boolean; blurs: { nb: number; bits: string; percent: number; }; id: string; version: number; onGame: boolean; }; opponent: { color: string; ai: number; onGame: boolean; }; url: { socket: string; round: string; }; pref: { animationDuration: number; coords: number; resizeHandle: number; replay: number; autoQueen: number; clockTenths: number; moveEvent: number; clockBar: boolean; clockSound: boolean; confirmResign: boolean; rookCastle: boolean; highlight: boolean; destination: boolean; enablePremove: boolean; showCaptured: boolean; }; correspondence: { daysPerTurn: number; increment: number; white: number; black: number; }; takebackable: boolean; moretimeable: boolean; possibleMoves: string; steps: ({ ply: number; uci: null; san: null; fen: string; } | { ply: number; uci: string; san: string; fen: string; })[]; }; i18n: { flipBoard: string; aiNameLevelAiLevel: string; yourTurn: string; abortGame: string; proposeATakeback: string; offerDraw: string; resign: string; opponentLeftChoices: string; forceResignation: string; forceDraw: string; threefoldRepetition: string; claimADraw: string; drawOfferSent: string; cancel: string; yourOpponentOffersADraw: string; accept: string; decline: string; takebackPropositionSent: string; yourOpponentProposesATakeback: string; thisPlayerUsesChessComputerAssistance: string; gameAborted: string; checkmate: string; whiteResigned: string; blackResigned: string; stalemate: string; whiteLeftTheGame: string; blackLeftTheGame: string; draw: string; timeOut: string; whiteIsVictorious: string; blackIsVictorious: string; withdraw: string; rematch: string; rematchOfferSent: string; rematchOfferAccepted: string; waitingForOpponent: string; cancelRematchOffer: string; newOpponent: string; moveConfirmation: string; viewRematch: string; whitePlays: string; blackPlays: string; "giveNbSeconds:one": string; "giveNbSeconds:few": string; "giveNbSeconds:many": string; giveNbSeconds: string; giveMoreTime: string; gameOver: string; analysis: string; yourOpponentWantsToPlayANewGameWithYou: string; oneDay: string; "nbDays:one": string; "nbDays:few": string; "nbDays:many": string; nbDays: string; "nbHours:one": string; "nbHours:few": string; "nbHours:many": string; nbHours: string; }; userId: string; chat: null; }; declare var boot2: { data: { game: { id: string; variant: { key: string; name: string; short: string; }; speed: string; perf: string; rated: boolean; initialFen: string; fen: string; player: string; turns: number; startedAtTurn: number; source: string; status: { id: number; name: string; }; createdAt: number; lastMove: string; opening: { eco: string; name: string; ply: number; }; }; clock: { running: boolean; initial: number; increment: number; white: number; black: number; emerg: number; moretime: number; }; correspondence: null; player: { color: string; name: null; user: { id: string; username: string; online: boolean; perfs: { bullet: { games: number; rating: number; rd: number; prog: number; }; }; title: string; language: string; profile: { country: string; }; }; rating: number; version: number; spectator: boolean; onGame: boolean; }; opponent: { color: string; name: null; user: { id: string; username: string; online: boolean; perfs: { bullet: { games: number; rating: number; rd: number; prog: number; }; }; title: string; language: string; profile: { country: string; }; }; rating: number; onGame: boolean; }; orientation: string; url: { socket: string; round: string; }; pref: { animationDuration: number; coords: number; resizeHandle: number; replay: number; clockTenths: number; clockBar: boolean; highlight: boolean; destination: boolean; rookCastle: boolean; showCaptured: boolean; }; evalPut: boolean; steps: ({ ply: number; uci: null; san: null; fen: string; } | { ply: number; uci: string; san: string; fen: string; })[]; }; i18n: { flipBoard: string; aiNameLevelAiLevel: string; yourTurn: string; abortGame: string; proposeATakeback: string; offerDraw: string; resign: string; "opponentLeftCounter:one": string; "opponentLeftCounter:few": string; "opponentLeftCounter:many": string; opponentLeftCounter: string; opponentLeftChoices: string; forceResignation: string; forceDraw: string; threefoldRepetition: string; claimADraw: string; drawOfferSent: string; cancel: string; yourOpponentOffersADraw: string; accept: string; decline: string; takebackPropositionSent: string; yourOpponentProposesATakeback: string; thisPlayerUsesChessComputerAssistance: string; gameAborted: string; checkmate: string; whiteResigned: string; blackResigned: string; stalemate: string; whiteLeftTheGame: string; blackLeftTheGame: string; draw: string; timeOut: string; whiteIsVictorious: string; blackIsVictorious: string; withdraw: string; rematch: string; rematchOfferSent: string; rematchOfferAccepted: string; waitingForOpponent: string; cancelRematchOffer: string; newOpponent: string; confirmMove: string; viewRematch: string; whitePlays: string; blackPlays: string; "giveNbSeconds:one": string; "giveNbSeconds:few": string; "giveNbSeconds:many": string; giveNbSeconds: string; giveMoreTime: string; gameOver: string; analysis: string; yourOpponentWantsToPlayANewGameWithYou: string; youPlayTheWhitePieces: string; youPlayTheBlackPieces: string; itsYourTurn: string; "nbSecondsToPlayTheFirstMove:one": string; "nbSecondsToPlayTheFirstMove:few": string; "nbSecondsToPlayTheFirstMove:many": string; nbSecondsToPlayTheFirstMove: string; }; chat: { data: { id: string; name: string; lines: never[]; userId: null; resourceId: string; loginRequired: boolean; }; i18n: { talkInChat: string; toggleTheChat: string; loginToChat: string; youHaveBeenTimedOut: string; }; writeable: boolean; public: boolean; permissions: { local: boolean; }; }; }; declare var analyse: { data: { game: { id: string; variant: { key: string; name: string; short: string; }; speed: string; perf: string; rated: boolean; initialFen: string; fen: string; player: string; turns: number; startedAtTurn: number; source: string; status: { id: number; name: string; }; createdAt: number; threefold: boolean; lastMove: string; check: string; moveCentis: number[]; division: { middle: number; end: null; }; opening: { eco: string; name: string; ply: number; }; }; clock: { running: boolean; initial: number; increment: number; white: number; black: number; emerg: number; moretime: number; }; correspondence: null; player: { color: string; name: null; user: { id: string; username: string; online: boolean; perfs: { bullet: { games: number; rating: number; rd: number; prog: number; }; }; title: string; language: string; profile: { country: string; }; }; rating: number; ratingDiff: number; version: number; spectator: boolean; }; opponent: { color: string; name: null; user: { id: string; username: string; online: boolean; perfs: { bullet: { games: number; rating: number; rd: number; prog: number; }; }; title: string; language: string; profile: { country: string; }; }; rating: number; ratingDiff: number; }; orientation: string; url: { socket: string; round: string; }; pref: { animationDuration: number; coords: number; resizeHandle: number; replay: number; clockTenths: number; clockBar: boolean; highlight: boolean; destination: boolean; rookCastle: boolean; showCaptured: boolean; }; evalPut: boolean; treeParts: ({ ply: number; fen: string; clock: number; id?: undefined; uci?: undefined; san?: undefined; opening?: undefined; check?: undefined; } | { ply: number; fen: string; id: string; uci: string; san: string; opening: { eco: string; name: string; }; clock: number; check?: undefined; } | { ply: number; fen: string; id: string; uci: string; san: string; clock: number; opening?: undefined; check?: undefined; } | { ply: number; fen: string; id: string; uci: string; san: string; check: boolean; clock: number; opening?: undefined; })[]; }; i18n: { flipBoard: string; gameAborted: string; checkmate: string; whiteResigned: string; blackResigned: string; stalemate: string; whiteLeftTheGame: string; blackLeftTheGame: string; draw: string; timeOut: string; playingRightNow: string; whiteIsVictorious: string; blackIsVictorious: string; kingInTheCenter: string; threeChecks: string; variantEnding: string; analysis: string; boardEditor: string; continueFromHere: string; playWithTheMachine: string; playWithAFriend: string; openingExplorer: string; inaccuracies: string; mistakes: string; blunders: string; averageCentipawnLoss: string; goodMove: string; viewTheSolution: string; youNeedAnAccountToDoThat: string; depthX: string; usingServerAnalysis: string; loadingEngine: string; cloudAnalysis: string; goDeeper: string; showThreat: string; gameOver: string; inLocalBrowser: string; toggleLocalEvaluation: string; menu: string; toStudy: string; inlineNotation: string; computerAnalysis: string; enable: string; bestMoveArrow: string; evaluationGauge: string; infiniteAnalysis: string; removesTheDepthLimit: string; multipleLines: string; cpus: string; memory: string; delete: string; deleteThisImportedGame: string; replayMode: string; slow: string; fast: string; realtimeReplay: string; byCPL: string; promoteVariation: string; makeMainLine: string; deleteFromHere: string; forceVariation: string; practiceWithComputer: string; inaccuracy: string; mistake: string; blunder: string; threefoldRepetition: string; anotherWasX: string; bestWasX: string; youBrowsedAway: string; resumePractice: string; whiteWinsGame: string; blackWinsGame: string; theGameIsADraw: string; yourTurn: string; computerThinking: string; seeBestMove: string; hideBestMove: string; getAHint: string; evaluatingYourMove: string; learnFromYourMistakes: string; learnFromThisMistake: string; skipThisMove: string; next: string; xWasPlayed: string; findBetterMoveForWhite: string; findBetterMoveForBlack: string; resumeLearning: string; youCanDoBetter: string; tryAnotherMoveForWhite: string; tryAnotherMoveForBlack: string; solution: string; waitingForAnalysis: string; noMistakesFoundForWhite: string; noMistakesFoundForBlack: string; doneReviewingWhiteMistakes: string; doneReviewingBlackMistakes: string; doItAgain: string; reviewWhiteMistakes: string; reviewBlackMistakes: string; openingExplorerAndTablebase: string; xOpeningExplorer: string; move: string; games: string; variantLoss: string; variantWin: string; insufficientMaterial: string; capture: string; pawnMove: string; close: string; winning: string; unknown: string; losing: string; drawn: string; timeControl: string; averageElo: string; database: string; recentGames: string; topGames: string; whiteDrawBlack: string; averageRatingX: string; masterDbExplanation: string; "mateInXHalfMoves:one": string; "mateInXHalfMoves:few": string; "mateInXHalfMoves:many": string; mateInXHalfMoves: string; "nextCaptureOrPawnMoveInXHalfMoves:one": string; "nextCaptureOrPawnMoveInXHalfMoves:few": string; "nextCaptureOrPawnMoveInXHalfMoves:many": string; nextCaptureOrPawnMoveInXHalfMoves: string; noGameFound: string; maybeIncludeMoreGamesFromThePreferencesMenu: string; winPreventedBy50MoveRule: string; lossSavedBy50MoveRule: string; allSet: string; advantage: string; "nbSeconds:one": string; "nbSeconds:few": string; "nbSeconds:many": string; nbSeconds: string; opening: string; middlegame: string; endgame: string; }; userId: null; chat: { data: { id: string; name: string; lines: { u: string; t: string; }[]; userId: null; resourceId: string; loginRequired: boolean; }; i18n: { talkInChat: string; toggleTheChat: string; loginToChat: string; youHaveBeenTimedOut: string; }; writeable: boolean; public: boolean; permissions: { local: boolean; }; }; explorer: { endpoint: string; tablebaseEndpoint: string; }; };