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.
@@ -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.467";
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
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.467";
5
+ export declare const VERSION = "4.0.468";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.467",
3
+ "version": "4.0.468",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"