client_plugin_logic_deb 1.8.351 → 1.8.354
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 +70 -70
- package/Kosi-Kodein-kodein-di.js +562 -562
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1592 -1592
- package/Logic_Debertz-client_plugin.d.ts +4 -4
- package/Logic_Debertz-client_plugin.js +3728 -3559
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1749 -1749
- package/Logic_Debertz-engine.js +17902 -17818
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +10884 -10040
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1131 -1130
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +349 -336
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +2653 -1687
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +338 -338
- package/kotlinx-serialization-kotlinx-serialization-core.js +1915 -1915
- package/kotlinx-serialization-kotlinx-serialization-json.js +1428 -1428
- package/ktor-ktor-client-content-negotiation.js +157 -157
- package/ktor-ktor-client-core.js +1623 -1623
- package/ktor-ktor-client-logging.js +318 -318
- package/ktor-ktor-events.js +11 -11
- package/ktor-ktor-http.js +683 -683
- package/ktor-ktor-io.js +1301 -1301
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +169 -169
- package/ktor-ktor-serialization.js +85 -85
- package/ktor-ktor-utils.js +560 -560
- package/ktor-ktor-websockets.js +56 -56
- package/package.json +1 -1
- package/random-library-crypto-rand.js +11 -11
- package/random-library-secure-random.js +6 -6
- package/raspberry-cardgame-lib-core.js +225 -225
- package/raspberry-cardgame-lib-logger.js +13 -13
- package/raspberry-cardgame-lib-random.js +870 -870
- package/uuid.js +26 -26
|
@@ -19,68 +19,68 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
24
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
25
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
26
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.uc;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.yb;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.lb;
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.tg;
|
|
26
|
+
var Comparator = kotlin_kotlin.$_$.fg;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.f;
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
31
|
-
var take = kotlin_kotlin.$_$.
|
|
32
|
-
var toList = kotlin_kotlin.$_$.
|
|
33
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
34
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
35
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
31
|
+
var take = kotlin_kotlin.$_$.m9;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.q9;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.l9;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.rh;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
36
36
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
37
|
-
var Enum = kotlin_kotlin.$_$.
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.ig;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.xa;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.ph;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
44
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
44
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.n6;
|
|
45
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
46
46
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
47
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
48
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
49
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
50
|
-
var Result = kotlin_kotlin.$_$.
|
|
47
|
+
var CoroutineImpl = kotlin_kotlin.$_$.va;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.vb;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.rg;
|
|
51
51
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.y2;
|
|
52
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.vh;
|
|
53
53
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.b3;
|
|
54
54
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.a3;
|
|
55
|
-
var addAll = kotlin_kotlin.$_$.
|
|
56
|
-
var until = kotlin_kotlin.$_$.
|
|
57
|
-
var count = kotlin_kotlin.$_$.
|
|
55
|
+
var addAll = kotlin_kotlin.$_$.b6;
|
|
56
|
+
var until = kotlin_kotlin.$_$.kd;
|
|
57
|
+
var count = kotlin_kotlin.$_$.e7;
|
|
58
58
|
var Collection = kotlin_kotlin.$_$.l5;
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.hc;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.v9;
|
|
61
61
|
var riffle = kotlin_io_raspberryapps_cardgame_random.$_$.l;
|
|
62
62
|
var overhand = kotlin_io_raspberryapps_cardgame_random.$_$.k;
|
|
63
|
-
var listOf = kotlin_kotlin.$_$.
|
|
64
|
-
var first = kotlin_kotlin.$_$.
|
|
65
|
-
var sorted = kotlin_kotlin.$_$.
|
|
66
|
-
var asReversed = kotlin_kotlin.$_$.
|
|
63
|
+
var listOf = kotlin_kotlin.$_$.m8;
|
|
64
|
+
var first = kotlin_kotlin.$_$.r7;
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.j9;
|
|
66
|
+
var asReversed = kotlin_kotlin.$_$.f6;
|
|
67
67
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
68
|
-
var equals = kotlin_kotlin.$_$.
|
|
69
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
70
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
71
|
-
var first_0 = kotlin_kotlin.$_$.
|
|
72
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
73
|
-
var sortWith = kotlin_kotlin.$_$.
|
|
74
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
68
|
+
var equals = kotlin_kotlin.$_$.mb;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.za;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.sb;
|
|
71
|
+
var first_0 = kotlin_kotlin.$_$.q7;
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.ea;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.h9;
|
|
74
|
+
var lastOrNull = kotlin_kotlin.$_$.g8;
|
|
75
75
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.i9;
|
|
77
77
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.y1;
|
|
78
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
79
|
-
var toString = kotlin_kotlin.$_$.
|
|
80
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
81
|
-
var plus = kotlin_kotlin.$_$.
|
|
82
|
-
var minus = kotlin_kotlin.$_$.
|
|
83
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
78
|
+
var compareTo = kotlin_kotlin.$_$.kb;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.yc;
|
|
80
|
+
var dropLast = kotlin_kotlin.$_$.g7;
|
|
81
|
+
var plus = kotlin_kotlin.$_$.w8;
|
|
82
|
+
var minus = kotlin_kotlin.$_$.q8;
|
|
83
|
+
var plus_0 = kotlin_kotlin.$_$.x8;
|
|
84
84
|
//endregion
|
|
85
85
|
//region block: pre-declaration
|
|
86
86
|
initMetadataForObject(CoreConfig, 'CoreConfig');
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
|
|
97
97
|
function standardShuffledCards$default(cards, times, $super) {
|
|
98
98
|
times = times === VOID ? 3 : times;
|
|
99
|
-
return $super === VOID ? this.
|
|
99
|
+
return $super === VOID ? this.m6l(cards, times) : $super.m6l.call(this, cards, times);
|
|
100
100
|
}
|
|
101
101
|
function realLifeShuffledCards$default(cards, times, $super) {
|
|
102
102
|
times = times === VOID ? 20 : times;
|
|
103
|
-
return $super === VOID ? this.
|
|
103
|
+
return $super === VOID ? this.o6l(cards, times) : $super.o6l.call(this, cards, times);
|
|
104
104
|
}
|
|
105
105
|
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
|
|
106
106
|
initMetadataForCompanion(Companion_2);
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
114
114
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
115
115
|
suit = suit === VOID ? null : suit;
|
|
116
|
-
return $super === VOID ? this.
|
|
116
|
+
return $super === VOID ? this.m6n(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.m6n.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
117
117
|
}
|
|
118
118
|
function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
|
|
119
119
|
cardsCount = cardsCount === VOID ? 4 : cardsCount;
|
|
120
120
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
121
|
-
return $super === VOID ? this.
|
|
121
|
+
return $super === VOID ? this.o6n(cards, cardsCount, includeCardNames) : $super.o6n.call(this, cards, cardsCount, includeCardNames);
|
|
122
122
|
}
|
|
123
123
|
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
124
124
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
function CoreConfig() {
|
|
130
130
|
this.version = '0.0.53';
|
|
131
131
|
}
|
|
132
|
-
protoOf(CoreConfig).
|
|
132
|
+
protoOf(CoreConfig).e3b = function () {
|
|
133
133
|
return this.version;
|
|
134
134
|
};
|
|
135
135
|
var CoreConfig_instance;
|
|
@@ -138,33 +138,33 @@
|
|
|
138
138
|
}
|
|
139
139
|
function CardIndexComparator() {
|
|
140
140
|
}
|
|
141
|
-
protoOf(CardIndexComparator).
|
|
142
|
-
return a.
|
|
141
|
+
protoOf(CardIndexComparator).p6k = function (a, b) {
|
|
142
|
+
return a.q6k_1 - b.q6k_1 | 0;
|
|
143
143
|
};
|
|
144
144
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
145
145
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
146
|
-
return this.
|
|
146
|
+
return this.p6k(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
147
147
|
};
|
|
148
148
|
var CardIndexComparator_instance;
|
|
149
149
|
function CardIndexComparator_getInstance() {
|
|
150
150
|
return CardIndexComparator_instance;
|
|
151
151
|
}
|
|
152
152
|
function CardSuitSortingComparator(suit) {
|
|
153
|
-
this.
|
|
153
|
+
this.r6k_1 = suit;
|
|
154
154
|
}
|
|
155
|
-
protoOf(CardSuitSortingComparator).
|
|
156
|
-
if (!a.
|
|
155
|
+
protoOf(CardSuitSortingComparator).p6k = function (a, b) {
|
|
156
|
+
if (!a.s6k() || !b.s6k()) {
|
|
157
157
|
return 0;
|
|
158
158
|
}
|
|
159
|
-
var suitIndexL = this.
|
|
160
|
-
var suitIndexR = this.
|
|
161
|
-
var sortedNumberL = imul(suitIndexL, 13) + a.
|
|
162
|
-
var sortedNumberR = imul(suitIndexR, 13) + b.
|
|
159
|
+
var suitIndexL = this.r6k_1.x1(a.t6k());
|
|
160
|
+
var suitIndexR = this.r6k_1.x1(b.t6k());
|
|
161
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.u6k() | 0;
|
|
162
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.u6k() | 0;
|
|
163
163
|
return sortedNumberL - sortedNumberR | 0;
|
|
164
164
|
};
|
|
165
165
|
protoOf(CardSuitSortingComparator).compare = function (a, b) {
|
|
166
166
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
167
|
-
return this.
|
|
167
|
+
return this.p6k(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
168
168
|
};
|
|
169
169
|
function filterByCardName(_this__u8e3s4, name) {
|
|
170
170
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
}
|
|
183
183
|
function CardNumberComparator() {
|
|
184
184
|
}
|
|
185
|
-
protoOf(CardNumberComparator).
|
|
186
|
-
return b.
|
|
185
|
+
protoOf(CardNumberComparator).p6k = function (a, b) {
|
|
186
|
+
return b.u6k() - a.u6k() | 0;
|
|
187
187
|
};
|
|
188
188
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
189
189
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
190
|
-
return this.
|
|
190
|
+
return this.p6k(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
191
191
|
};
|
|
192
192
|
var CardNumberComparator_instance;
|
|
193
193
|
function CardNumberComparator_getInstance() {
|
|
@@ -314,23 +314,23 @@
|
|
|
314
314
|
}
|
|
315
315
|
function Companion() {
|
|
316
316
|
}
|
|
317
|
-
protoOf(Companion).
|
|
317
|
+
protoOf(Companion).v6k = function (suit, number) {
|
|
318
318
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
319
319
|
};
|
|
320
|
-
protoOf(Companion).
|
|
320
|
+
protoOf(Companion).w6k = function (suit, cardNumber) {
|
|
321
321
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
322
322
|
};
|
|
323
|
-
protoOf(Companion).
|
|
323
|
+
protoOf(Companion).x6k = function (index) {
|
|
324
324
|
return new GameCard(index);
|
|
325
325
|
};
|
|
326
|
-
protoOf(Companion).
|
|
326
|
+
protoOf(Companion).y6k = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
327
327
|
var tmp;
|
|
328
328
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
329
329
|
tmp = null;
|
|
330
330
|
} else {
|
|
331
331
|
// Inline function 'kotlin.takeIf' call
|
|
332
332
|
var tmp_0;
|
|
333
|
-
if (previousHiddenCardWithMaxIndex.
|
|
333
|
+
if (previousHiddenCardWithMaxIndex.z6k()) {
|
|
334
334
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
335
335
|
} else {
|
|
336
336
|
tmp_0 = null;
|
|
@@ -338,8 +338,8 @@
|
|
|
338
338
|
tmp = tmp_0;
|
|
339
339
|
}
|
|
340
340
|
var tmp1_safe_receiver = tmp;
|
|
341
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
342
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
341
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q6k_1;
|
|
342
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.f6l(tmp2_safe_receiver, playerIndex, reverse);
|
|
343
343
|
var tmp_1;
|
|
344
344
|
if (tmp3_safe_receiver == null) {
|
|
345
345
|
tmp_1 = null;
|
|
@@ -358,12 +358,12 @@
|
|
|
358
358
|
var index = tmp_2;
|
|
359
359
|
return new GameCard(index);
|
|
360
360
|
};
|
|
361
|
-
protoOf(Companion).
|
|
361
|
+
protoOf(Companion).g6l = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
362
362
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
363
363
|
reverse = reverse === VOID ? false : reverse;
|
|
364
|
-
return $super === VOID ? this.
|
|
364
|
+
return $super === VOID ? this.y6k(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.y6k.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).h6l = function (position) {
|
|
367
367
|
var index = 150 + position | 0;
|
|
368
368
|
return new GameCard(index);
|
|
369
369
|
};
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
return tmp;
|
|
470
470
|
}
|
|
471
471
|
function _get_isShirt__vd98rp($this) {
|
|
472
|
-
return $this.
|
|
472
|
+
return $this.q6k_1 >= 150 && $this.q6k_1 <= 202;
|
|
473
473
|
}
|
|
474
474
|
function CardName(name, ordinal) {
|
|
475
475
|
Enum.call(this, name, ordinal);
|
|
@@ -478,13 +478,13 @@
|
|
|
478
478
|
return getShortName(this);
|
|
479
479
|
};
|
|
480
480
|
function Companion_0() {
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
481
|
+
this.a6l_1 = -1;
|
|
482
|
+
this.b6l_1 = 13;
|
|
483
|
+
this.c6l_1 = 52;
|
|
484
|
+
this.d6l_1 = 150;
|
|
485
|
+
this.e6l_1 = 53;
|
|
486
486
|
}
|
|
487
|
-
protoOf(Companion_0).
|
|
487
|
+
protoOf(Companion_0).f6l = function (_this__u8e3s4, playerIndex, reverse) {
|
|
488
488
|
var tmp;
|
|
489
489
|
if (reverse) {
|
|
490
490
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -554,59 +554,59 @@
|
|
|
554
554
|
return CardName_HIDDEN_instance;
|
|
555
555
|
}
|
|
556
556
|
function GameCard(index) {
|
|
557
|
-
this.
|
|
557
|
+
this.q6k_1 = index;
|
|
558
558
|
}
|
|
559
|
-
protoOf(GameCard).
|
|
559
|
+
protoOf(GameCard).t6k = function () {
|
|
560
560
|
var tmp;
|
|
561
|
-
var containsArg = this.
|
|
561
|
+
var containsArg = this.q6k_1;
|
|
562
562
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
563
563
|
tmp = Suit_DIAMOND_getInstance();
|
|
564
564
|
} else {
|
|
565
|
-
if (this.
|
|
565
|
+
if (this.q6k_1 <= 26) {
|
|
566
566
|
tmp = Suit_SPADE_getInstance();
|
|
567
567
|
} else {
|
|
568
|
-
if (this.
|
|
568
|
+
if (this.q6k_1 <= 39) {
|
|
569
569
|
tmp = Suit_HEART_getInstance();
|
|
570
570
|
} else {
|
|
571
|
-
if (this.
|
|
571
|
+
if (this.q6k_1 <= 52) {
|
|
572
572
|
tmp = Suit_CLUB_getInstance();
|
|
573
573
|
} else {
|
|
574
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
574
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.q6k_1);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return tmp;
|
|
580
580
|
};
|
|
581
|
-
protoOf(GameCard).
|
|
581
|
+
protoOf(GameCard).u6k = function () {
|
|
582
582
|
var tmp;
|
|
583
|
-
if (this.
|
|
583
|
+
if (this.z6k()) {
|
|
584
584
|
tmp = -1;
|
|
585
585
|
} else {
|
|
586
|
-
tmp = this.
|
|
586
|
+
tmp = this.q6k_1 - imul(13, getIndex(this.t6k())) | 0;
|
|
587
587
|
}
|
|
588
588
|
return tmp;
|
|
589
589
|
};
|
|
590
590
|
protoOf(GameCard).s2 = function () {
|
|
591
|
-
return this.
|
|
591
|
+
return this.z6k() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.u6k());
|
|
592
592
|
};
|
|
593
|
-
protoOf(GameCard).
|
|
594
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
593
|
+
protoOf(GameCard).s6k = function () {
|
|
594
|
+
return !_get_isShirt__vd98rp(this) && !this.z6k();
|
|
595
595
|
};
|
|
596
|
-
protoOf(GameCard).
|
|
597
|
-
return this.
|
|
596
|
+
protoOf(GameCard).z6k = function () {
|
|
597
|
+
return this.q6k_1 >= 53 && this.q6k_1 <= 105;
|
|
598
598
|
};
|
|
599
599
|
protoOf(GameCard).toString = function () {
|
|
600
600
|
if (_get_isShirt__vd98rp(this)) {
|
|
601
|
-
return 'GameCard(SHIRT, ' + this.
|
|
601
|
+
return 'GameCard(SHIRT, ' + this.q6k_1 + ')';
|
|
602
602
|
}
|
|
603
|
-
if (this.
|
|
604
|
-
return 'GameCard(HIDDEN, ' + this.
|
|
603
|
+
if (this.z6k()) {
|
|
604
|
+
return 'GameCard(HIDDEN, ' + this.q6k_1 + ')';
|
|
605
605
|
}
|
|
606
|
-
return 'GameCard(' + this.
|
|
606
|
+
return 'GameCard(' + this.t6k().toString() + this.s2().toString() + ', ' + this.q6k_1 + ')';
|
|
607
607
|
};
|
|
608
608
|
protoOf(GameCard).hashCode = function () {
|
|
609
|
-
return this.
|
|
609
|
+
return this.q6k_1;
|
|
610
610
|
};
|
|
611
611
|
protoOf(GameCard).equals = function (other) {
|
|
612
612
|
if (this === other)
|
|
@@ -614,12 +614,12 @@
|
|
|
614
614
|
if (!(other instanceof GameCard))
|
|
615
615
|
return false;
|
|
616
616
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
617
|
-
if (!(this.
|
|
617
|
+
if (!(this.q6k_1 === tmp0_other_with_cast.q6k_1))
|
|
618
618
|
return false;
|
|
619
619
|
return true;
|
|
620
620
|
};
|
|
621
621
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
622
|
-
return $this.
|
|
622
|
+
return $this.i6l_1.u();
|
|
623
623
|
}
|
|
624
624
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
625
625
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -661,13 +661,13 @@
|
|
|
661
661
|
Companion_instance_1 = this;
|
|
662
662
|
var tmp = this;
|
|
663
663
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
664
|
-
tmp.
|
|
664
|
+
tmp.i6l_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
665
665
|
}
|
|
666
|
-
protoOf(Companion_1).
|
|
666
|
+
protoOf(Companion_1).w59 = function () {
|
|
667
667
|
return _get_$cachedSerializer__te6jhj(this);
|
|
668
668
|
};
|
|
669
|
-
protoOf(Companion_1).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(Companion_1).l4t = function (typeParamsSerializers) {
|
|
670
|
+
return this.w59();
|
|
671
671
|
};
|
|
672
672
|
var Companion_instance_1;
|
|
673
673
|
function Companion_getInstance_1() {
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
}
|
|
785
785
|
function Companion_2() {
|
|
786
786
|
}
|
|
787
|
-
protoOf(Companion_2).
|
|
787
|
+
protoOf(Companion_2).m6m = function (randomPoolProvider, logger) {
|
|
788
788
|
var tmp0_random = new SecureRandom(logger);
|
|
789
789
|
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
790
790
|
};
|
|
@@ -794,12 +794,12 @@
|
|
|
794
794
|
}
|
|
795
795
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
796
796
|
CoroutineImpl.call(this, resultContinuation);
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
797
|
+
this.v6m_1 = _this__u8e3s4;
|
|
798
|
+
this.w6m_1 = leftCardIndexForEachSuit;
|
|
799
|
+
this.x6m_1 = rightCardIndexForEachSuit;
|
|
800
|
+
this.y6m_1 = approximateRoundCountForGame;
|
|
801
|
+
this.z6m_1 = userData;
|
|
802
|
+
this.a6n_1 = provider;
|
|
803
803
|
}
|
|
804
804
|
protoOf($createNewShuffledCardDeckCOROUTINE$).t9 = function () {
|
|
805
805
|
var suspendResult = this.n9_1;
|
|
@@ -809,26 +809,26 @@
|
|
|
809
809
|
switch (tmp) {
|
|
810
810
|
case 0:
|
|
811
811
|
this.m9_1 = 4;
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
if (this.
|
|
812
|
+
this.b6n_1 = this.a6n_1;
|
|
813
|
+
this.c6n_1 = this.b6n_1.r2_1;
|
|
814
|
+
if (this.c6n_1 === 0) {
|
|
815
815
|
var tmp_0 = this;
|
|
816
|
-
var it = this.
|
|
817
|
-
tmp_0.
|
|
816
|
+
var it = this.v6m_1.j6l(this.w6m_1, this.x6m_1);
|
|
817
|
+
tmp_0.d6n_1 = this.v6m_1.n6l(it);
|
|
818
818
|
this.l9_1 = 3;
|
|
819
819
|
continue $sm;
|
|
820
820
|
} else {
|
|
821
|
-
if (this.
|
|
821
|
+
if (this.c6n_1 === 1) {
|
|
822
822
|
this.l9_1 = 2;
|
|
823
|
-
suspendResult = getRandomOrgCards(this.
|
|
823
|
+
suspendResult = getRandomOrgCards(this.v6m_1, this.w6m_1, this.x6m_1, this.y6m_1, this.z6m_1, false, this);
|
|
824
824
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
825
825
|
return suspendResult;
|
|
826
826
|
}
|
|
827
827
|
continue $sm;
|
|
828
828
|
} else {
|
|
829
|
-
if (this.
|
|
829
|
+
if (this.c6n_1 === 2) {
|
|
830
830
|
this.l9_1 = 1;
|
|
831
|
-
suspendResult = getRandomOrgCards(this.
|
|
831
|
+
suspendResult = getRandomOrgCards(this.v6m_1, this.w6m_1, this.x6m_1, this.y6m_1, this.z6m_1, true, this);
|
|
832
832
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
833
833
|
return suspendResult;
|
|
834
834
|
}
|
|
@@ -842,15 +842,15 @@
|
|
|
842
842
|
|
|
843
843
|
break;
|
|
844
844
|
case 1:
|
|
845
|
-
this.
|
|
845
|
+
this.d6n_1 = suspendResult;
|
|
846
846
|
this.l9_1 = 3;
|
|
847
847
|
continue $sm;
|
|
848
848
|
case 2:
|
|
849
|
-
this.
|
|
849
|
+
this.d6n_1 = suspendResult;
|
|
850
850
|
this.l9_1 = 3;
|
|
851
851
|
continue $sm;
|
|
852
852
|
case 3:
|
|
853
|
-
return this.
|
|
853
|
+
return this.d6n_1;
|
|
854
854
|
case 4:
|
|
855
855
|
throw this.o9_1;
|
|
856
856
|
}
|
|
@@ -867,12 +867,12 @@
|
|
|
867
867
|
};
|
|
868
868
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
869
869
|
CoroutineImpl.call(this, resultContinuation);
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
870
|
+
this.z6l_1 = _this__u8e3s4;
|
|
871
|
+
this.a6m_1 = leftCardIndexForEachSuit;
|
|
872
|
+
this.b6m_1 = rightCardIndexForEachSuit;
|
|
873
|
+
this.c6m_1 = approximateRoundsCount;
|
|
874
|
+
this.d6m_1 = userData;
|
|
875
|
+
this.e6m_1 = signed;
|
|
876
876
|
}
|
|
877
877
|
protoOf($getRandomOrgCardsCOROUTINE$).t9 = function () {
|
|
878
878
|
var suspendResult = this.n9_1;
|
|
@@ -882,11 +882,11 @@
|
|
|
882
882
|
switch (tmp) {
|
|
883
883
|
case 0:
|
|
884
884
|
this.m9_1 = 5;
|
|
885
|
-
this.
|
|
886
|
-
this.
|
|
887
|
-
this.
|
|
885
|
+
this.f6m_1 = this.z6l_1.q6l(this.a6m_1, this.b6m_1);
|
|
886
|
+
this.g6m_1 = this.z6l_1.f6n_1;
|
|
887
|
+
this.h6m_1 = this.f6m_1 - 1 | 0;
|
|
888
888
|
this.l9_1 = 1;
|
|
889
|
-
suspendResult = this.
|
|
889
|
+
suspendResult = this.g6m_1.c65(this.c6m_1, this.d6m_1, 0, this.h6m_1, this.f6m_1, this.e6m_1, VOID, this);
|
|
890
890
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
891
891
|
return suspendResult;
|
|
892
892
|
}
|
|
@@ -894,34 +894,34 @@
|
|
|
894
894
|
this.l9_1 = 2;
|
|
895
895
|
continue $sm;
|
|
896
896
|
case 1:
|
|
897
|
-
this.
|
|
898
|
-
suspendResult = new Result(this.
|
|
897
|
+
this.i6m_1 = suspendResult.qm_1;
|
|
898
|
+
suspendResult = new Result(this.i6m_1);
|
|
899
899
|
this.l9_1 = 2;
|
|
900
900
|
continue $sm;
|
|
901
901
|
case 2:
|
|
902
|
-
this.
|
|
903
|
-
if (_Result___get_isSuccess__impl__sndoy8(this.
|
|
902
|
+
this.j6m_1 = suspendResult.qm_1;
|
|
903
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.j6m_1)) {
|
|
904
904
|
var tmp_0 = this;
|
|
905
|
-
var this_0 = this.
|
|
905
|
+
var this_0 = this.j6m_1;
|
|
906
906
|
throwOnFailure(this_0);
|
|
907
907
|
var tmp_1 = _Result___get_value__impl__bjfvqg(this_0);
|
|
908
908
|
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
909
|
-
var this_1 = normalizeCards(this.
|
|
909
|
+
var this_1 = normalizeCards(this.z6l_1, tmp2_cards, this.a6m_1);
|
|
910
910
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
911
911
|
var _iterator__ex2g4s = this_1.j();
|
|
912
912
|
while (_iterator__ex2g4s.k()) {
|
|
913
913
|
var item = _iterator__ex2g4s.l();
|
|
914
|
-
destination.e(Companion_instance.
|
|
914
|
+
destination.e(Companion_instance.x6k(item));
|
|
915
915
|
}
|
|
916
|
-
tmp_0.
|
|
916
|
+
tmp_0.k6m_1 = destination;
|
|
917
917
|
this.l9_1 = 4;
|
|
918
918
|
continue $sm;
|
|
919
919
|
} else {
|
|
920
|
-
this.
|
|
921
|
-
var tmp3_safe_receiver = this.
|
|
922
|
-
this.
|
|
920
|
+
this.l6m_1 = Result__exceptionOrNull_impl_p6xea9(this.j6m_1);
|
|
921
|
+
var tmp3_safe_receiver = this.l6m_1;
|
|
922
|
+
this.z6l_1.g6n_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (tmp3_safe_receiver == null ? null : tmp3_safe_receiver.message), this.l6m_1);
|
|
923
923
|
this.l9_1 = 3;
|
|
924
|
-
suspendResult = this.
|
|
924
|
+
suspendResult = this.z6l_1.k6l(this.a6m_1, this.b6m_1, this.c6m_1, this.d6m_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
925
925
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
926
926
|
return suspendResult;
|
|
927
927
|
}
|
|
@@ -929,11 +929,11 @@
|
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
case 3:
|
|
932
|
-
this.
|
|
932
|
+
this.k6m_1 = suspendResult;
|
|
933
933
|
this.l9_1 = 4;
|
|
934
934
|
continue $sm;
|
|
935
935
|
case 4:
|
|
936
|
-
return this.
|
|
936
|
+
return this.k6m_1;
|
|
937
937
|
case 5:
|
|
938
938
|
throw this.o9_1;
|
|
939
939
|
}
|
|
@@ -949,11 +949,11 @@
|
|
|
949
949
|
while (true);
|
|
950
950
|
};
|
|
951
951
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
952
|
-
this.
|
|
953
|
-
this.
|
|
954
|
-
this.
|
|
952
|
+
this.e6n_1 = random;
|
|
953
|
+
this.f6n_1 = randomPoolProvider;
|
|
954
|
+
this.g6n_1 = logger;
|
|
955
955
|
}
|
|
956
|
-
protoOf(CardsDealerProviderImpl).
|
|
956
|
+
protoOf(CardsDealerProviderImpl).j6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
957
957
|
// Inline function 'kotlin.collections.flatMap' call
|
|
958
958
|
var tmp0 = get_entries();
|
|
959
959
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -962,7 +962,7 @@
|
|
|
962
962
|
while (_iterator__ex2g4s.k()) {
|
|
963
963
|
var element = _iterator__ex2g4s.l();
|
|
964
964
|
// Inline function 'kotlin.collections.map' call
|
|
965
|
-
var this_0 = this.
|
|
965
|
+
var this_0 = this.h6n(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
966
966
|
// Inline function 'kotlin.collections.mapTo' call
|
|
967
967
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
968
968
|
var inductionVariable = this_0.a1_1;
|
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
var item = inductionVariable;
|
|
973
973
|
inductionVariable = inductionVariable + 1 | 0;
|
|
974
974
|
var it = item;
|
|
975
|
-
var tmp$ret$0 = Companion_instance.
|
|
975
|
+
var tmp$ret$0 = Companion_instance.v6k(element, it);
|
|
976
976
|
destination_0.e(tmp$ret$0);
|
|
977
977
|
}
|
|
978
978
|
while (!(item === last));
|
|
@@ -981,27 +981,27 @@
|
|
|
981
981
|
}
|
|
982
982
|
return destination;
|
|
983
983
|
};
|
|
984
|
-
protoOf(CardsDealerProviderImpl).
|
|
984
|
+
protoOf(CardsDealerProviderImpl).h6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
985
985
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
986
986
|
};
|
|
987
|
-
protoOf(CardsDealerProviderImpl).
|
|
987
|
+
protoOf(CardsDealerProviderImpl).q6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
988
988
|
// Inline function 'kotlin.collections.sumOf' call
|
|
989
989
|
var sum = 0;
|
|
990
990
|
var _iterator__ex2g4s = get_entries().j();
|
|
991
991
|
while (_iterator__ex2g4s.k()) {
|
|
992
992
|
var element = _iterator__ex2g4s.l();
|
|
993
993
|
var tmp = sum;
|
|
994
|
-
sum = tmp + count(this.
|
|
994
|
+
sum = tmp + count(this.h6n(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
995
995
|
}
|
|
996
996
|
return sum;
|
|
997
997
|
};
|
|
998
|
-
protoOf(CardsDealerProviderImpl).
|
|
998
|
+
protoOf(CardsDealerProviderImpl).k6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
999
999
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
1000
1000
|
tmp.n9_1 = Unit_instance;
|
|
1001
1001
|
tmp.o9_1 = null;
|
|
1002
1002
|
return tmp.t9();
|
|
1003
1003
|
};
|
|
1004
|
-
protoOf(CardsDealerProviderImpl).
|
|
1004
|
+
protoOf(CardsDealerProviderImpl).l6l = function (count, cards) {
|
|
1005
1005
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1006
1006
|
// Inline function 'kotlin.apply' call
|
|
1007
1007
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1032,7 +1032,7 @@
|
|
|
1032
1032
|
var _iterator__ex2g4s_0 = this_0.j();
|
|
1033
1033
|
while (_iterator__ex2g4s_0.k()) {
|
|
1034
1034
|
var element = _iterator__ex2g4s_0.l();
|
|
1035
|
-
if (element.
|
|
1035
|
+
if (element.u6k() === card.u6k()) {
|
|
1036
1036
|
tmp$ret$2 = true;
|
|
1037
1037
|
break $l$block_1;
|
|
1038
1038
|
}
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
}
|
|
1048
1048
|
return this_0;
|
|
1049
1049
|
};
|
|
1050
|
-
protoOf(CardsDealerProviderImpl).
|
|
1050
|
+
protoOf(CardsDealerProviderImpl).m6l = function (cards, times) {
|
|
1051
1051
|
// Inline function 'kotlin.let' call
|
|
1052
1052
|
var shuffled = toMutableList(cards);
|
|
1053
1053
|
var inductionVariable = 0;
|
|
@@ -1055,57 +1055,57 @@
|
|
|
1055
1055
|
do {
|
|
1056
1056
|
var i = inductionVariable;
|
|
1057
1057
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1058
|
-
shuffled = this.
|
|
1058
|
+
shuffled = this.e6n_1.o6a(shuffled);
|
|
1059
1059
|
}
|
|
1060
1060
|
while (inductionVariable < times);
|
|
1061
1061
|
return shuffled;
|
|
1062
1062
|
};
|
|
1063
|
-
protoOf(CardsDealerProviderImpl).
|
|
1064
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1063
|
+
protoOf(CardsDealerProviderImpl).o6l = function (cards, times) {
|
|
1064
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.e6n_1), times, this.e6n_1));
|
|
1065
1065
|
};
|
|
1066
1066
|
function Companion_3() {
|
|
1067
1067
|
}
|
|
1068
|
-
protoOf(Companion_3).
|
|
1068
|
+
protoOf(Companion_3).i6n = function () {
|
|
1069
1069
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1070
1070
|
// Inline function 'kotlin.apply' call
|
|
1071
1071
|
var this_0 = ArrayList_init_$Create$();
|
|
1072
|
-
this_0.n(listOf([Companion_instance.
|
|
1073
|
-
this_0.n(listOf([Companion_instance.
|
|
1074
|
-
this_0.n(listOf([Companion_instance.
|
|
1075
|
-
this_0.n(listOf([Companion_instance.
|
|
1076
|
-
this_0.n(listOf([Companion_instance.
|
|
1072
|
+
this_0.n(listOf([Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1073
|
+
this_0.n(listOf([Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1074
|
+
this_0.n(listOf([Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1075
|
+
this_0.n(listOf([Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1076
|
+
this_0.n(listOf([Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1077
1077
|
return this_0;
|
|
1078
1078
|
};
|
|
1079
|
-
protoOf(Companion_3).
|
|
1080
|
-
return listOf([Companion_instance.
|
|
1079
|
+
protoOf(Companion_3).j6n = function () {
|
|
1080
|
+
return listOf([Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1081
1081
|
};
|
|
1082
1082
|
var Companion_instance_3;
|
|
1083
1083
|
function Companion_getInstance_3() {
|
|
1084
1084
|
return Companion_instance_3;
|
|
1085
1085
|
}
|
|
1086
1086
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1087
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1088
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1089
|
-
this.
|
|
1090
|
-
this.
|
|
1087
|
+
cards = cards === VOID ? Companion_instance_3.i6n() : cards;
|
|
1088
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.j6n() : cardsForLot;
|
|
1089
|
+
this.k6n_1 = cards;
|
|
1090
|
+
this.l6n_1 = cardsForLot;
|
|
1091
1091
|
}
|
|
1092
|
-
protoOf(FakeCardsDealerProvider).
|
|
1093
|
-
return this.
|
|
1092
|
+
protoOf(FakeCardsDealerProvider).j6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1093
|
+
return this.k6n_1;
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(FakeCardsDealerProvider).
|
|
1096
|
-
return this.
|
|
1095
|
+
protoOf(FakeCardsDealerProvider).k6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1096
|
+
return this.k6n_1;
|
|
1097
1097
|
};
|
|
1098
|
-
protoOf(FakeCardsDealerProvider).
|
|
1099
|
-
return this.
|
|
1098
|
+
protoOf(FakeCardsDealerProvider).l6l = function (count, cards) {
|
|
1099
|
+
return this.l6n_1;
|
|
1100
1100
|
};
|
|
1101
|
-
protoOf(FakeCardsDealerProvider).
|
|
1101
|
+
protoOf(FakeCardsDealerProvider).m6l = function (cards, times) {
|
|
1102
1102
|
return cards;
|
|
1103
1103
|
};
|
|
1104
|
-
protoOf(FakeCardsDealerProvider).
|
|
1104
|
+
protoOf(FakeCardsDealerProvider).o6l = function (cards, times) {
|
|
1105
1105
|
return cards;
|
|
1106
1106
|
};
|
|
1107
|
-
protoOf(FakeCardsDealerProvider).
|
|
1108
|
-
return this.
|
|
1107
|
+
protoOf(FakeCardsDealerProvider).q6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1108
|
+
return this.k6n_1.m();
|
|
1109
1109
|
};
|
|
1110
1110
|
function CombinationsCheckerProvider() {
|
|
1111
1111
|
}
|
|
@@ -1132,16 +1132,16 @@
|
|
|
1132
1132
|
return takeLast(cards, longestCombinationSupport);
|
|
1133
1133
|
}
|
|
1134
1134
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1135
|
-
this.
|
|
1135
|
+
this.r6n_1 = function_0;
|
|
1136
1136
|
}
|
|
1137
1137
|
protoOf(sam$kotlin_Comparator$0).bd = function (a, b) {
|
|
1138
|
-
return this.
|
|
1138
|
+
return this.r6n_1(a, b);
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1141
1141
|
return this.bd(a, b);
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(sam$kotlin_Comparator$0).u3 = function () {
|
|
1144
|
-
return this.
|
|
1144
|
+
return this.r6n_1;
|
|
1145
1145
|
};
|
|
1146
1146
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1147
1147
|
var tmp;
|
|
@@ -1163,13 +1163,13 @@
|
|
|
1163
1163
|
};
|
|
1164
1164
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1165
1165
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1166
|
-
var tmp = first_0(a).
|
|
1167
|
-
var tmp$ret$1 = first_0(b).
|
|
1166
|
+
var tmp = first_0(a).q6k_1;
|
|
1167
|
+
var tmp$ret$1 = first_0(b).q6k_1;
|
|
1168
1168
|
return compareValues(tmp, tmp$ret$1);
|
|
1169
1169
|
}
|
|
1170
1170
|
function CombinationsCheckerProviderImpl() {
|
|
1171
1171
|
}
|
|
1172
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1172
|
+
protoOf(CombinationsCheckerProviderImpl).m6n = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1173
1173
|
// Inline function 'kotlin.apply' call
|
|
1174
1174
|
var this_0 = toMutableList(cards);
|
|
1175
1175
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1179,7 +1179,7 @@
|
|
|
1179
1179
|
var _iterator__ex2g4s = this_0.j();
|
|
1180
1180
|
while (_iterator__ex2g4s.k()) {
|
|
1181
1181
|
var element = _iterator__ex2g4s.l();
|
|
1182
|
-
if (element.
|
|
1182
|
+
if (element.s6k()) {
|
|
1183
1183
|
destination.e(element);
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
@@ -1196,14 +1196,14 @@
|
|
|
1196
1196
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1197
1197
|
var previousCard = lastOrNull(combinationCards);
|
|
1198
1198
|
var currentCard = sortedByIndexCards.o(i);
|
|
1199
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1199
|
+
var isNextInRow = !(previousCard == null) && currentCard.q6k_1 === (previousCard.q6k_1 + 1 | 0) && currentCard.t6k().equals(previousCard.t6k());
|
|
1200
1200
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.v1(currentCard.s2());
|
|
1201
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1201
|
+
var passedSuitCheck = suit == null || currentCard.t6k().equals(suit);
|
|
1202
1202
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1203
1203
|
combinationCards.e(currentCard);
|
|
1204
1204
|
} else {
|
|
1205
1205
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1206
|
-
combinations.n(this.
|
|
1206
|
+
combinations.n(this.q6n(toMutableList(combinationCards), supportedCombinations));
|
|
1207
1207
|
}
|
|
1208
1208
|
combinationCards.d2();
|
|
1209
1209
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1213,11 +1213,11 @@
|
|
|
1213
1213
|
}
|
|
1214
1214
|
while (inductionVariable <= last);
|
|
1215
1215
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1216
|
-
combinations.n(this.
|
|
1216
|
+
combinations.n(this.q6n(toMutableList(combinationCards), supportedCombinations));
|
|
1217
1217
|
}
|
|
1218
1218
|
return combinations;
|
|
1219
1219
|
};
|
|
1220
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1220
|
+
protoOf(CombinationsCheckerProviderImpl).o6n = function (cards, cardsCount, includeCardNames) {
|
|
1221
1221
|
// Inline function 'kotlin.apply' call
|
|
1222
1222
|
var this_0 = toMutableList(cards);
|
|
1223
1223
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1227,7 +1227,7 @@
|
|
|
1227
1227
|
var _iterator__ex2g4s = this_0.j();
|
|
1228
1228
|
while (_iterator__ex2g4s.k()) {
|
|
1229
1229
|
var element = _iterator__ex2g4s.l();
|
|
1230
|
-
if (element.
|
|
1230
|
+
if (element.s6k()) {
|
|
1231
1231
|
destination.e(element);
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
var _iterator__ex2g4s_1 = sortedByNumberCards.j();
|
|
1249
1249
|
while (_iterator__ex2g4s_1.k()) {
|
|
1250
1250
|
var element_1 = _iterator__ex2g4s_1.l();
|
|
1251
|
-
var key = element_1.
|
|
1251
|
+
var key = element_1.u6k();
|
|
1252
1252
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1253
1253
|
var value = destination_1.k2(key);
|
|
1254
1254
|
var tmp;
|
|
@@ -1285,7 +1285,7 @@
|
|
|
1285
1285
|
}
|
|
1286
1286
|
return destination_3;
|
|
1287
1287
|
};
|
|
1288
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1288
|
+
protoOf(CombinationsCheckerProviderImpl).q6n = function (cards, supportedCombinations) {
|
|
1289
1289
|
// Inline function 'kotlin.collections.minOf' call
|
|
1290
1290
|
var iterator = supportedCombinations.j();
|
|
1291
1291
|
if (!iterator.k())
|
|
@@ -1315,28 +1315,28 @@
|
|
|
1315
1315
|
function DealerReducer() {
|
|
1316
1316
|
}
|
|
1317
1317
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1318
|
+
this.v6n_1 = logger;
|
|
1319
|
+
this.w6n_1 = enableLogs;
|
|
1320
1320
|
}
|
|
1321
|
-
protoOf(DealerReducerImpl).
|
|
1321
|
+
protoOf(DealerReducerImpl).s6n = function (cards, cardsToRemove) {
|
|
1322
1322
|
var list = cards;
|
|
1323
1323
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1324
1324
|
while (_iterator__ex2g4s.k()) {
|
|
1325
1325
|
var gameCard = _iterator__ex2g4s.l();
|
|
1326
|
-
list = this.
|
|
1326
|
+
list = this.t6n(list, gameCard);
|
|
1327
1327
|
}
|
|
1328
1328
|
return list;
|
|
1329
1329
|
};
|
|
1330
|
-
protoOf(DealerReducerImpl).
|
|
1330
|
+
protoOf(DealerReducerImpl).t6n = function (cards, cardToRemove) {
|
|
1331
1331
|
var tmp;
|
|
1332
|
-
if (!cardToRemove.
|
|
1333
|
-
if (this.
|
|
1334
|
-
this.
|
|
1332
|
+
if (!cardToRemove.z6k() && cards.v1(cardToRemove)) {
|
|
1333
|
+
if (this.w6n_1) {
|
|
1334
|
+
this.v6n_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1335
1335
|
}
|
|
1336
1336
|
tmp = minus(cards, cardToRemove);
|
|
1337
1337
|
} else {
|
|
1338
|
-
if (this.
|
|
1339
|
-
this.
|
|
1338
|
+
if (this.w6n_1) {
|
|
1339
|
+
this.v6n_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1340
1340
|
}
|
|
1341
1341
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1342
1342
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1344,7 +1344,7 @@
|
|
|
1344
1344
|
var _iterator__ex2g4s = cards.j();
|
|
1345
1345
|
while (_iterator__ex2g4s.k()) {
|
|
1346
1346
|
var element = _iterator__ex2g4s.l();
|
|
1347
|
-
if (!element.
|
|
1347
|
+
if (!element.z6k()) {
|
|
1348
1348
|
destination.e(element);
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
@@ -1355,34 +1355,34 @@
|
|
|
1355
1355
|
var _iterator__ex2g4s_0 = cards.j();
|
|
1356
1356
|
while (_iterator__ex2g4s_0.k()) {
|
|
1357
1357
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
1358
|
-
if (element_0.
|
|
1358
|
+
if (element_0.z6k()) {
|
|
1359
1359
|
destination_0.e(element_0);
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
1362
|
var hiddenCards = destination_0;
|
|
1363
1363
|
if (hiddenCards.p()) {
|
|
1364
|
-
this.
|
|
1364
|
+
this.v6n_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1365
1365
|
}
|
|
1366
1366
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1367
1367
|
}
|
|
1368
1368
|
return tmp;
|
|
1369
1369
|
};
|
|
1370
|
-
protoOf(DealerReducerImpl).
|
|
1371
|
-
if (this.
|
|
1372
|
-
this.
|
|
1370
|
+
protoOf(DealerReducerImpl).u6n = function (cards, cardToAdd) {
|
|
1371
|
+
if (this.w6n_1) {
|
|
1372
|
+
this.v6n_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1373
1373
|
}
|
|
1374
1374
|
if (cards.v1(cardToAdd)) {
|
|
1375
|
-
this.
|
|
1375
|
+
this.v6n_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1376
1376
|
}
|
|
1377
1377
|
return plus_0(cards, cardToAdd);
|
|
1378
1378
|
};
|
|
1379
1379
|
//region block: post-declaration
|
|
1380
|
-
protoOf(CardsDealerProviderImpl).
|
|
1381
|
-
protoOf(CardsDealerProviderImpl).
|
|
1382
|
-
protoOf(FakeCardsDealerProvider).
|
|
1383
|
-
protoOf(FakeCardsDealerProvider).
|
|
1384
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1385
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1380
|
+
protoOf(CardsDealerProviderImpl).n6l = standardShuffledCards$default;
|
|
1381
|
+
protoOf(CardsDealerProviderImpl).p6l = realLifeShuffledCards$default;
|
|
1382
|
+
protoOf(FakeCardsDealerProvider).n6l = standardShuffledCards$default;
|
|
1383
|
+
protoOf(FakeCardsDealerProvider).p6l = realLifeShuffledCards$default;
|
|
1384
|
+
protoOf(CombinationsCheckerProviderImpl).n6n = findCardsInRowCombinations$default;
|
|
1385
|
+
protoOf(CombinationsCheckerProviderImpl).p6n = findSameCardsNumberCombinations$default;
|
|
1386
1386
|
//endregion
|
|
1387
1387
|
//region block: init
|
|
1388
1388
|
CoreConfig_instance = new CoreConfig();
|