valtech-components 4.0.467 → 4.0.468
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/organisms/mini-games/chessimals-challenge-progress.service.mjs +9 -1
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +117 -13
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +27 -1
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +151 -13
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +16 -1
- package/lib/components/organisms/mini-games/types.d.ts +7 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -57,6 +57,16 @@ interface ChessimalsProgressMetricView {
|
|
|
57
57
|
label: string;
|
|
58
58
|
value: string | number;
|
|
59
59
|
}
|
|
60
|
+
interface ChessimalsMoveScoreView {
|
|
61
|
+
combo: number;
|
|
62
|
+
label: string;
|
|
63
|
+
score: number;
|
|
64
|
+
}
|
|
65
|
+
interface ChessimalsGameScoreView {
|
|
66
|
+
bestCombo: number;
|
|
67
|
+
bestMove?: ChessimalsMoveScoreView;
|
|
68
|
+
score: number;
|
|
69
|
+
}
|
|
60
70
|
export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
61
71
|
private readonly i18n;
|
|
62
72
|
private readonly audio;
|
|
@@ -100,7 +110,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
100
110
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
101
111
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
102
112
|
readonly animals: ChessimalsAnimalView[];
|
|
103
|
-
readonly valtechComponentsVersion = "4.0.
|
|
113
|
+
readonly valtechComponentsVersion = "4.0.468";
|
|
104
114
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
105
115
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
106
116
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -206,11 +216,13 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
206
216
|
readonly capturesByColor: import("@angular/core").Signal<Record<ChessimalsPlayerColor, number>>;
|
|
207
217
|
readonly resultCaptures: import("@angular/core").Signal<number>;
|
|
208
218
|
readonly resultPowers: import("@angular/core").Signal<ChessimalsAnimalType[]>;
|
|
219
|
+
readonly resultScore: import("@angular/core").Signal<ChessimalsGameScoreView>;
|
|
209
220
|
readonly resultStats: import("@angular/core").Signal<{
|
|
210
221
|
label: string;
|
|
211
222
|
value: string;
|
|
212
223
|
}[]>;
|
|
213
224
|
readonly resultPowersLabel: import("@angular/core").Signal<string>;
|
|
225
|
+
readonly resultBestMoveLabel: import("@angular/core").Signal<string>;
|
|
214
226
|
readonly shouldShowBotReport: import("@angular/core").Signal<boolean>;
|
|
215
227
|
readonly botReportTitle: import("@angular/core").Signal<string>;
|
|
216
228
|
readonly botReportBody: import("@angular/core").Signal<string>;
|
|
@@ -391,6 +403,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
391
403
|
challengeTensionMoment(): ChessimalsChallengeTensionView | undefined;
|
|
392
404
|
challengeHasNewRecord(): boolean;
|
|
393
405
|
totalChallengePowers(stats?: ChessimalsChallengeRoundStats): number;
|
|
406
|
+
private createGameScore;
|
|
407
|
+
private scoreChessimalsMove;
|
|
408
|
+
private colorFromPieceId;
|
|
394
409
|
private createChallengeRoundStats;
|
|
395
410
|
private modeStatsResult;
|
|
396
411
|
animalLabel(type: ChessimalsAnimalType): string;
|
|
@@ -76,6 +76,9 @@ export interface ChessimalsChallengeRoundStats {
|
|
|
76
76
|
promotions: number;
|
|
77
77
|
captures: number;
|
|
78
78
|
moves: number;
|
|
79
|
+
score: number;
|
|
80
|
+
bestMoveScore: number;
|
|
81
|
+
bestCombo: number;
|
|
79
82
|
}
|
|
80
83
|
export interface ChessimalsChallengeRoundResult {
|
|
81
84
|
round: number;
|
|
@@ -115,6 +118,10 @@ export interface ChessimalsChallengeStats {
|
|
|
115
118
|
powersUsed: Record<ChessimalsAnimalType, number>;
|
|
116
119
|
powerCaptures: number;
|
|
117
120
|
promotions: number;
|
|
121
|
+
totalScore: number;
|
|
122
|
+
bestRoundScore: number;
|
|
123
|
+
bestMoveScore: number;
|
|
124
|
+
bestCombo: number;
|
|
118
125
|
modeStats: Record<ChessimalsStatsMode, ChessimalsModeStats>;
|
|
119
126
|
updatedAt?: string;
|
|
120
127
|
}
|
package/lib/version.d.ts
CHANGED