trucoshi 8.7.1 → 8.8.1
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/dist/types.d.ts +8 -2
- package/dist/types.js +0 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -195,7 +195,6 @@ export declare enum GAME_ERROR {
|
|
|
195
195
|
UNEXPECTED_TEAM_SIZE = "UNEXPECTED_TEAM_SIZE",
|
|
196
196
|
TEAM_NOT_READY = "TEAM_NOT_READY",
|
|
197
197
|
TEAM_IS_FULL = "TEAM_IS_FULL",
|
|
198
|
-
INVALID_ENVIDO_POINTS = "INVALID_ENVIDO_POINTS",
|
|
199
198
|
ENVIDO_NOT_ACCEPTED = "ENVIDO_NOT_ACCEPTED",
|
|
200
199
|
INVALID_COMAND = "INVALID_COMAND",
|
|
201
200
|
INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE",
|
|
@@ -279,6 +278,11 @@ export type IPublicPlayer = Pick<IPlayer, "idx" | "key" | "name" | "bot" | "aban
|
|
|
279
278
|
export type IPublicTeam = Pick<ITeam, "points" | "id" | "name"> & {
|
|
280
279
|
players: Array<IPublicPlayer>;
|
|
281
280
|
};
|
|
281
|
+
export interface OpponentProfile {
|
|
282
|
+
bluffCount: number;
|
|
283
|
+
foldCount: number;
|
|
284
|
+
aggression: number;
|
|
285
|
+
}
|
|
282
286
|
export interface IPlayer {
|
|
283
287
|
idx: number;
|
|
284
288
|
secret: string;
|
|
@@ -301,7 +305,6 @@ export interface IPlayer {
|
|
|
301
305
|
}>;
|
|
302
306
|
_commands: Set<ECommand>;
|
|
303
307
|
get commands(): Array<ECommand>;
|
|
304
|
-
get positiveCommands(): Array<ECommand>;
|
|
305
308
|
isTurn: boolean;
|
|
306
309
|
turnExpiresAt: number | null;
|
|
307
310
|
turnExtensionExpiresAt: number | null;
|
|
@@ -310,6 +313,7 @@ export interface IPlayer {
|
|
|
310
313
|
value: number;
|
|
311
314
|
cards: ICard[];
|
|
312
315
|
} | null;
|
|
316
|
+
didSomething: boolean;
|
|
313
317
|
hasSaidFlor: boolean;
|
|
314
318
|
hasSaidEnvidoPoints: boolean;
|
|
315
319
|
hasSaidTruco: boolean;
|
|
@@ -318,6 +322,7 @@ export interface IPlayer {
|
|
|
318
322
|
disabled: boolean;
|
|
319
323
|
abandoned: boolean;
|
|
320
324
|
ready: boolean;
|
|
325
|
+
opponentProfiles: Record<string, OpponentProfile>;
|
|
321
326
|
getRandomCard(): [number, ICard];
|
|
322
327
|
getHighestCard(): [number, ICard];
|
|
323
328
|
getLowestCard(): [number, ICard];
|
|
@@ -347,6 +352,7 @@ export interface IPlayer {
|
|
|
347
352
|
setReady(ready: boolean): void;
|
|
348
353
|
setHand(hand: Array<ICard>): Array<ICard>;
|
|
349
354
|
useCard(idx: number, card: ICard): ICard | null;
|
|
355
|
+
sayCommand(command: ECommand | number, force?: boolean): false | ECommand | number;
|
|
350
356
|
playBot(table: ITable, play: IPlayInstance, playCard: ITrucoshi["playCard"], sayCommand: ITrucoshi["sayCommand"]): Promise<void>;
|
|
351
357
|
}
|
|
352
358
|
export interface ITeam {
|
package/dist/types.js
CHANGED
|
@@ -67,7 +67,6 @@ export var GAME_ERROR;
|
|
|
67
67
|
GAME_ERROR["UNEXPECTED_TEAM_SIZE"] = "UNEXPECTED_TEAM_SIZE";
|
|
68
68
|
GAME_ERROR["TEAM_NOT_READY"] = "TEAM_NOT_READY";
|
|
69
69
|
GAME_ERROR["TEAM_IS_FULL"] = "TEAM_IS_FULL";
|
|
70
|
-
GAME_ERROR["INVALID_ENVIDO_POINTS"] = "INVALID_ENVIDO_POINTS";
|
|
71
70
|
GAME_ERROR["ENVIDO_NOT_ACCEPTED"] = "ENVIDO_NOT_ACCEPTED";
|
|
72
71
|
GAME_ERROR["INVALID_COMAND"] = "INVALID_COMAND";
|
|
73
72
|
GAME_ERROR["INSUFFICIENT_BALANCE"] = "INSUFFICIENT_BALANCE";
|