raspberry_games_server_game_logic 1.8.310 → 1.8.314
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/Kosi-Kaverit-kaverit.js +78 -78
- package/Kosi-Kodein-kodein-di.js +647 -647
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1507 -1507
- package/Logic_Debertz-core.js +3408 -3386
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +15749 -15647
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +55 -15
- package/Logic_Debertz-game_server.js +1531 -1429
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2851 -2609
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-coroutines-core.js +2910 -2910
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +362 -362
- package/kotlinx-serialization-kotlinx-serialization-core.js +2038 -2038
- package/kotlinx-serialization-kotlinx-serialization-json.js +1569 -1569
- package/ktor-ktor-client-content-negotiation.js +219 -219
- package/ktor-ktor-client-core.js +2528 -2528
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +762 -762
- package/ktor-ktor-io.js +1659 -1659
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +271 -271
- package/ktor-ktor-serialization.js +130 -130
- package/ktor-ktor-utils.js +741 -741
- package/ktor-ktor-websockets.js +60 -60
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +306 -306
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +1061 -1044
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +18 -18
- package/uuid.js +33 -33
|
@@ -970,7 +970,8 @@ export declare namespace games.jass.logic.data.models.player.state {
|
|
|
970
970
|
}
|
|
971
971
|
export declare namespace games.jass.logic.data.models.rules {
|
|
972
972
|
class Rules {
|
|
973
|
-
constructor(playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, dealerInitialCardsCount: number, dealerFinalCardsCount: number, dealerCounterClockwise: boolean, contractTypes: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes: Array<games.jass.logic.data.models.player.bids.BidType>, needToPutHigherTrump: boolean, trumpCardStepPartnerMode: games.jass.logic.data.models.rules.TrumpCardStepPartnerMode, combinationsWithFirstCard: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, distributePoints: boolean, pointsDistributeMode: games.jass.logic.data.models.player.points.PointsDistributeMode, enableFineAfterThirdFailedContract: boolean, fineAfterThirdFailedContract: number, enableFineIfNoBribes: boolean, fineIfNoBribes: number);
|
|
973
|
+
constructor(name: Nullable<string>, playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, dealerInitialCardsCount: number, dealerFinalCardsCount: number, dealerCounterClockwise: boolean, contractTypes: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes: Array<games.jass.logic.data.models.player.bids.BidType>, needToPutHigherTrump: boolean, trumpCardStepPartnerMode: games.jass.logic.data.models.rules.TrumpCardStepPartnerMode, combinationsWithFirstCard: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, distributePoints: boolean, pointsDistributeMode: games.jass.logic.data.models.player.points.PointsDistributeMode, enableFineAfterThirdFailedContract: boolean, fineAfterThirdFailedContract: number, enableFineIfNoBribes: boolean, fineIfNoBribes: number);
|
|
974
|
+
get name(): Nullable<string>;
|
|
974
975
|
get playerWhoChooseSuitGoFirst(): boolean;
|
|
975
976
|
get winnerShuffleCards(): boolean;
|
|
976
977
|
get playWithoutLiabilities(): boolean;
|
|
@@ -1000,7 +1001,7 @@ export declare namespace games.jass.logic.data.models.rules {
|
|
|
1000
1001
|
toString(): string;
|
|
1001
1002
|
equals(other: Nullable<any>): boolean;
|
|
1002
1003
|
hashCode(): number;
|
|
1003
|
-
copy(playerWhoChooseSuitGoFirst?: boolean, winnerShuffleCards?: boolean, playWithoutLiabilities?: boolean, trumpCardGoToPlayerWhoShuffleCards?: boolean, dealerInitialCardsCount?: number, dealerFinalCardsCount?: number, dealerCounterClockwise?: boolean, contractTypes?: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes?: Array<games.jass.logic.data.models.player.bids.BidType>, needToPutHigherTrump?: boolean, trumpCardStepPartnerMode?: games.jass.logic.data.models.rules.TrumpCardStepPartnerMode, combinationsWithFirstCard?: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella?: boolean, oneTryToProtectBella?: boolean, enableFourSevensCombination?: boolean, enableTrumpSevenCombination?: boolean, enableTrumpSevenCombinationAfterDistribution?: boolean, checkTrumpCombination?: boolean, checkOnlyTrumpDebertz?: boolean, distributePoints?: boolean, pointsDistributeMode?: games.jass.logic.data.models.player.points.PointsDistributeMode, enableFineAfterThirdFailedContract?: boolean, fineAfterThirdFailedContract?: number, enableFineIfNoBribes?: boolean, fineIfNoBribes?: number): games.jass.logic.data.models.rules.Rules;
|
|
1004
|
+
copy(name?: Nullable<string>, playerWhoChooseSuitGoFirst?: boolean, winnerShuffleCards?: boolean, playWithoutLiabilities?: boolean, trumpCardGoToPlayerWhoShuffleCards?: boolean, dealerInitialCardsCount?: number, dealerFinalCardsCount?: number, dealerCounterClockwise?: boolean, contractTypes?: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes?: Array<games.jass.logic.data.models.player.bids.BidType>, needToPutHigherTrump?: boolean, trumpCardStepPartnerMode?: games.jass.logic.data.models.rules.TrumpCardStepPartnerMode, combinationsWithFirstCard?: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella?: boolean, oneTryToProtectBella?: boolean, enableFourSevensCombination?: boolean, enableTrumpSevenCombination?: boolean, enableTrumpSevenCombinationAfterDistribution?: boolean, checkTrumpCombination?: boolean, checkOnlyTrumpDebertz?: boolean, distributePoints?: boolean, pointsDistributeMode?: games.jass.logic.data.models.player.points.PointsDistributeMode, enableFineAfterThirdFailedContract?: boolean, fineAfterThirdFailedContract?: number, enableFineIfNoBribes?: boolean, fineIfNoBribes?: number): games.jass.logic.data.models.rules.Rules;
|
|
1004
1005
|
static get Companion(): {
|
|
1005
1006
|
get HAND_CARDS_INITIAL(): number;
|
|
1006
1007
|
get HAND_CARDS_FINAL(): number;
|
|
@@ -1240,32 +1241,32 @@ export declare namespace games.jass.logic.data.models.table.combinations {
|
|
|
1240
1241
|
get name(): "SEVEN_TRUMP";
|
|
1241
1242
|
get ordinal(): 5;
|
|
1242
1243
|
};
|
|
1243
|
-
static get
|
|
1244
|
-
get name(): "
|
|
1244
|
+
static get FOUR_SEVENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1245
|
+
get name(): "FOUR_SEVENS";
|
|
1245
1246
|
get ordinal(): 6;
|
|
1246
1247
|
};
|
|
1247
|
-
static get
|
|
1248
|
-
get name(): "
|
|
1248
|
+
static get FOUR_NINES(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1249
|
+
get name(): "FOUR_NINES";
|
|
1249
1250
|
get ordinal(): 7;
|
|
1250
1251
|
};
|
|
1251
|
-
static get
|
|
1252
|
-
get name(): "
|
|
1252
|
+
static get FOUR_TENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1253
|
+
get name(): "FOUR_TENS";
|
|
1253
1254
|
get ordinal(): 8;
|
|
1254
1255
|
};
|
|
1255
1256
|
static get FOUR_JACKS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1256
1257
|
get name(): "FOUR_JACKS";
|
|
1257
1258
|
get ordinal(): 9;
|
|
1258
1259
|
};
|
|
1259
|
-
static get
|
|
1260
|
-
get name(): "
|
|
1260
|
+
static get FOUR_QUEENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1261
|
+
get name(): "FOUR_QUEENS";
|
|
1261
1262
|
get ordinal(): 10;
|
|
1262
1263
|
};
|
|
1263
|
-
static get
|
|
1264
|
-
get name(): "
|
|
1264
|
+
static get FOUR_KINGS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1265
|
+
get name(): "FOUR_KINGS";
|
|
1265
1266
|
get ordinal(): 11;
|
|
1266
1267
|
};
|
|
1267
|
-
static get
|
|
1268
|
-
get name(): "
|
|
1268
|
+
static get FOUR_ACES(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1269
|
+
get name(): "FOUR_ACES";
|
|
1269
1270
|
get ordinal(): 12;
|
|
1270
1271
|
};
|
|
1271
1272
|
static get FINE_NO_BRIBES(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
@@ -1288,7 +1289,7 @@ export declare namespace games.jass.logic.data.models.table.combinations {
|
|
|
1288
1289
|
get name(): "BONUS_CONTROVERSIAL_CONTRACT";
|
|
1289
1290
|
get ordinal(): 17;
|
|
1290
1291
|
};
|
|
1291
|
-
get name(): "BELA" | "THREE_IN_ROW" | "FOUR_IN_ROW" | "FIVE_IN_ROW" | "SEVEN_IN_ROW" | "SEVEN_TRUMP" | "
|
|
1292
|
+
get name(): "BELA" | "THREE_IN_ROW" | "FOUR_IN_ROW" | "FIVE_IN_ROW" | "SEVEN_IN_ROW" | "SEVEN_TRUMP" | "FOUR_SEVENS" | "FOUR_NINES" | "FOUR_TENS" | "FOUR_JACKS" | "FOUR_QUEENS" | "FOUR_KINGS" | "FOUR_ACES" | "FINE_NO_BRIBES" | "FINE_THIRD_FAILED_CONTRACT" | "BONUS_LAST_BRIBE" | "BONUS_FAILED_CONTRACT" | "BONUS_CONTROVERSIAL_CONTRACT";
|
|
1292
1293
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17;
|
|
1293
1294
|
static values(): Array<games.jass.logic.data.models.table.combinations.CombinationType>;
|
|
1294
1295
|
static valueOf(value: string): games.jass.logic.data.models.table.combinations.CombinationType;
|
|
@@ -1358,6 +1359,7 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1358
1359
|
get dealerStrategy(): Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
|
|
1359
1360
|
get league(): Nullable<games.jass.logic.data.models.leagues.League>;
|
|
1360
1361
|
get mode(): games.jass.logic.data.models.table.config.RoomMode;
|
|
1362
|
+
getDealerStrategyOrDefault(dealerConfig: games.jass.logic.data.models.DealerConfig): games.jass.logic.domain.interactors.dealer.DealerStrategy;
|
|
1361
1363
|
get playerHandCardsSize(): number;
|
|
1362
1364
|
copy(rules?: games.jass.logic.data.models.rules.Rules, rulesSetType?: games.jass.logic.data.models.rules.RulesSetType, options?: games.jass.logic.data.models.table.config.Options, playersMode?: games.jass.logic.data.models.table.config.PlayersMode, pointsMode?: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis?: number, isPrivate?: boolean, dealerStrategy?: Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>, league?: Nullable<games.jass.logic.data.models.leagues.League>, mode?: games.jass.logic.data.models.table.config.RoomMode): games.jass.logic.data.models.table.config.Config;
|
|
1363
1365
|
toString(): string;
|
|
@@ -1641,9 +1643,13 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
|
|
|
1641
1643
|
get name(): "STANDARD" | "REQUEST_HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "OFFLINE_SHUFFLE_SIMULATION" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
|
|
1642
1644
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
1643
1645
|
shouldEqualiseHand(): boolean;
|
|
1646
|
+
isFake(): boolean;
|
|
1644
1647
|
isRandomOrg(): boolean;
|
|
1645
1648
|
static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
|
|
1646
1649
|
static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
|
|
1650
|
+
static get Companion(): {
|
|
1651
|
+
default(): games.jass.logic.domain.interactors.dealer.DealerStrategy;
|
|
1652
|
+
};
|
|
1647
1653
|
}
|
|
1648
1654
|
}
|
|
1649
1655
|
export declare namespace games.jass.logic.redux.actions {
|
|
@@ -2008,6 +2014,20 @@ export declare namespace di {
|
|
|
2008
2014
|
get gameResources(): GameResources;
|
|
2009
2015
|
}
|
|
2010
2016
|
}
|
|
2017
|
+
export declare namespace games.jass.logic.server.data.models.config {
|
|
2018
|
+
class ServerConfig {
|
|
2019
|
+
constructor(fromRound: Nullable<number>, canStartNewGame: boolean);
|
|
2020
|
+
get fromRound(): Nullable<number>;
|
|
2021
|
+
get canStartNewGame(): boolean;
|
|
2022
|
+
copy(fromRound?: Nullable<number>, canStartNewGame?: boolean): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2023
|
+
toString(): string;
|
|
2024
|
+
hashCode(): number;
|
|
2025
|
+
equals(other: Nullable<any>): boolean;
|
|
2026
|
+
static get Companion(): {
|
|
2027
|
+
initial(fromRound: Nullable<number>): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2028
|
+
};
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2011
2031
|
export declare namespace games.jass.logic.server.data.models.state {
|
|
2012
2032
|
interface ServerStateUpdate {
|
|
2013
2033
|
readonly __doNotUseOrImplementIt: {
|
|
@@ -2057,10 +2077,24 @@ export declare namespace games.jass.logic.server.domain {
|
|
|
2057
2077
|
} & games.jass.logic.GameStoreContract["__doNotUseOrImplementIt"];
|
|
2058
2078
|
}
|
|
2059
2079
|
}
|
|
2080
|
+
export declare namespace games.jass.logic.server.redux.state {
|
|
2081
|
+
class ServerStatePayload /* implements games.jass.logic.redux.AppStatePayload */ {
|
|
2082
|
+
constructor(config: games.jass.logic.server.data.models.config.ServerConfig);
|
|
2083
|
+
get config(): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2084
|
+
copy(config?: games.jass.logic.server.data.models.config.ServerConfig): games.jass.logic.server.redux.state.ServerStatePayload;
|
|
2085
|
+
toString(): string;
|
|
2086
|
+
hashCode(): number;
|
|
2087
|
+
equals(other: Nullable<any>): boolean;
|
|
2088
|
+
static get Companion(): {
|
|
2089
|
+
initial(config?: games.jass.logic.server.data.models.config.ServerConfig): games.jass.logic.server.redux.state.ServerStatePayload;
|
|
2090
|
+
};
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2060
2093
|
export declare interface GameEngineController {
|
|
2061
2094
|
readonly parser: ParserHelper;
|
|
2062
2095
|
readonly test: TestHelper;
|
|
2063
2096
|
readonly helper: GameHelper;
|
|
2097
|
+
readonly serverHelper: GameServerHelper;
|
|
2064
2098
|
readonly resources: GameResources;
|
|
2065
2099
|
readonly randomPoolProvider: any/* games.raspberry.card_game.random.data.providers.RandomPoolProvider */;
|
|
2066
2100
|
setEnableLogger(enabled: boolean): void;
|
|
@@ -2071,6 +2105,12 @@ export declare interface GameEngineController {
|
|
|
2071
2105
|
};
|
|
2072
2106
|
}
|
|
2073
2107
|
export declare function createGameServerController(loggerCallback: (p0: string, p1: Nullable<string>, p2: string, p3: Nullable<Error>, p4: Nullable<any>) => void, randomOrgConfig?: games.raspberry.card_game.random.data.models.RandomOrgConfig): GameEngineController;
|
|
2108
|
+
export declare interface GameServerHelper {
|
|
2109
|
+
getServerConfig(state: any/* games.jass.logic.redux.AppState */): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2110
|
+
readonly __doNotUseOrImplementIt: {
|
|
2111
|
+
readonly GameServerHelper: unique symbol;
|
|
2112
|
+
};
|
|
2113
|
+
}
|
|
2074
2114
|
export declare interface TestHelper {
|
|
2075
2115
|
getPlayerAnswer(table: games.jass.logic.data.models.table.JassTable, playerId: string, botConfig: games.jass.logic.data.models.EngineBotConfig): games.jass.logic.redux.actions.client.from.FromClientAction;
|
|
2076
2116
|
getPlayerAnswerFromClientAction(table: games.jass.logic.data.models.table.JassTable, currentPlayerId: string, action: games.jass.logic.redux.actions.client.to.ToClientAction, botConfig: games.jass.logic.data.models.EngineBotConfig): Nullable<games.jass.logic.redux.actions.client.from.FromClientAction>;
|