game_client_logic_deb 1.8.347 → 1.8.349
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 +653 -653
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1760 -1760
- package/Logic_Debertz-core.js +1706 -1706
- package/Logic_Debertz-engine.js +14599 -14593
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +1 -0
- package/Logic_Debertz-game_client.js +4950 -4933
- package/Logic_Debertz-game_client.js.map +1 -1
- package/error-library-error.js +53 -0
- package/error-library-error.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +3043 -2809
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +24 -24
- package/kotlinx-coroutines-core.js +2887 -2887
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +356 -356
- package/kotlinx-serialization-kotlinx-serialization-core.js +2044 -2044
- package/kotlinx-serialization-kotlinx-serialization-json.js +1583 -1583
- package/ktor-ktor-client-content-negotiation.js +221 -221
- package/ktor-ktor-client-core.js +2549 -2549
- package/ktor-ktor-client-logging.js +559 -559
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +765 -765
- package/ktor-ktor-io.js +1645 -1645
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +279 -279
- package/ktor-ktor-serialization.js +134 -134
- package/ktor-ktor-utils.js +743 -743
- package/ktor-ktor-websockets.js +59 -59
- package/package.json +1 -1
- package/random-library-crypto-rand.js +251 -0
- package/random-library-crypto-rand.js.map +1 -0
- package/random-library-secure-random.js +93 -0
- package/random-library-secure-random.js.map +1 -0
- package/raspberry-cardgame-lib-core.js +296 -296
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +107 -107
- package/raspberry-cardgame-lib-random.js +1045 -981
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +33 -33
- package/secure-random-secure-random.js +0 -174
- package/secure-random-secure-random.js.map +0 -1
|
@@ -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.$_$.qc;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ub;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.hb;
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.pg;
|
|
26
|
+
var Comparator = kotlin_kotlin.$_$.bg;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.f;
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pb;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
30
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
30
|
+
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
31
|
+
var take = kotlin_kotlin.$_$.j9;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.n9;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.i9;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.nh;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.qb;
|
|
36
36
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
37
|
-
var Enum = kotlin_kotlin.$_$.
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.eg;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.ta;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.lh;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
44
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.sb;
|
|
44
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.m6;
|
|
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.$_$.
|
|
51
|
-
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.
|
|
52
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
53
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
54
|
-
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.
|
|
55
|
-
var addAll = kotlin_kotlin.$_$.
|
|
56
|
-
var until = kotlin_kotlin.$_$.
|
|
57
|
-
var count = kotlin_kotlin.$_$.
|
|
58
|
-
var Collection = kotlin_kotlin.$_$.
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
47
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ra;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.ng;
|
|
51
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.y2;
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.rh;
|
|
53
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.b3;
|
|
54
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.a3;
|
|
55
|
+
var addAll = kotlin_kotlin.$_$.a6;
|
|
56
|
+
var until = kotlin_kotlin.$_$.gd;
|
|
57
|
+
var count = kotlin_kotlin.$_$.d7;
|
|
58
|
+
var Collection = kotlin_kotlin.$_$.l5;
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.dc;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.r9;
|
|
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.$_$.k8;
|
|
64
|
+
var first = kotlin_kotlin.$_$.p7;
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.g9;
|
|
66
|
+
var asReversed = kotlin_kotlin.$_$.e6;
|
|
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.$_$.ib;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.va;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.ob;
|
|
71
|
+
var first_0 = kotlin_kotlin.$_$.o7;
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.aa;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.e9;
|
|
74
|
+
var lastOrNull = kotlin_kotlin.$_$.e8;
|
|
75
75
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.f9;
|
|
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.$_$.gb;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.uc;
|
|
80
|
+
var dropLast = kotlin_kotlin.$_$.f7;
|
|
81
|
+
var plus = kotlin_kotlin.$_$.t8;
|
|
82
|
+
var minus = kotlin_kotlin.$_$.o8;
|
|
83
|
+
var plus_0 = kotlin_kotlin.$_$.u8;
|
|
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.w6a(cards, times) : $super.w6a.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.y6a(cards, times) : $super.y6a.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.w6c(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.w6c.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.y6c(cards, cardsCount, includeCardNames) : $super.y6c.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]);
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
|
|
128
128
|
//endregion
|
|
129
129
|
function CoreConfig() {
|
|
130
|
-
this.version = '0.0.
|
|
130
|
+
this.version = '0.0.53';
|
|
131
131
|
}
|
|
132
|
-
protoOf(CoreConfig).
|
|
132
|
+
protoOf(CoreConfig).l31 = 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).z69 = function (a, b) {
|
|
142
|
+
return a.a6a_1 - b.a6a_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.z69(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.b6a_1 = suit;
|
|
154
154
|
}
|
|
155
|
-
protoOf(CardSuitSortingComparator).
|
|
156
|
-
if (!a.
|
|
155
|
+
protoOf(CardSuitSortingComparator).z69 = function (a, b) {
|
|
156
|
+
if (!a.c6a() || !b.c6a()) {
|
|
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.b6a_1.x1(a.d6a());
|
|
160
|
+
var suitIndexR = this.b6a_1.x1(b.d6a());
|
|
161
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.e6a() | 0;
|
|
162
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.e6a() | 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.z69(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).z69 = function (a, b) {
|
|
186
|
+
return b.e6a() - a.e6a() | 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.z69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
191
191
|
};
|
|
192
192
|
var CardNumberComparator_instance;
|
|
193
193
|
function CardNumberComparator_getInstance() {
|
|
@@ -195,12 +195,12 @@
|
|
|
195
195
|
}
|
|
196
196
|
function distributeCardsBottom(_this__u8e3s4, count) {
|
|
197
197
|
var cardsToDeal = toList(take(_this__u8e3s4, count));
|
|
198
|
-
_this__u8e3s4.
|
|
198
|
+
_this__u8e3s4.c2(cardsToDeal);
|
|
199
199
|
return cardsToDeal;
|
|
200
200
|
}
|
|
201
201
|
function distributeCardsTop(_this__u8e3s4, count) {
|
|
202
202
|
var cardsToDeal = toList(takeLast(_this__u8e3s4, count));
|
|
203
|
-
_this__u8e3s4.
|
|
203
|
+
_this__u8e3s4.c2(cardsToDeal);
|
|
204
204
|
return cardsToDeal;
|
|
205
205
|
}
|
|
206
206
|
function byCardNamePredicate(types) {
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
while (inductionVariable < last) {
|
|
218
218
|
var element = tmp0[inductionVariable];
|
|
219
219
|
inductionVariable = inductionVariable + 1 | 0;
|
|
220
|
-
if (p1.
|
|
220
|
+
if (p1.s2().equals(element)) {
|
|
221
221
|
tmp$ret$1 = true;
|
|
222
222
|
break $l$block;
|
|
223
223
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
var CardName_HIDDEN_instance;
|
|
244
244
|
function getShortName($this) {
|
|
245
245
|
var tmp;
|
|
246
|
-
switch ($this.
|
|
246
|
+
switch ($this.r2_1) {
|
|
247
247
|
case 0:
|
|
248
248
|
tmp = 'A';
|
|
249
249
|
break;
|
|
@@ -314,41 +314,41 @@
|
|
|
314
314
|
}
|
|
315
315
|
function Companion() {
|
|
316
316
|
}
|
|
317
|
-
protoOf(Companion).
|
|
317
|
+
protoOf(Companion).f6a = 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).g6a = function (suit, cardNumber) {
|
|
321
321
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
322
322
|
};
|
|
323
|
-
protoOf(Companion).
|
|
323
|
+
protoOf(Companion).h6a = function (index) {
|
|
324
324
|
return new GameCard(index);
|
|
325
325
|
};
|
|
326
|
-
protoOf(Companion).
|
|
326
|
+
protoOf(Companion).i6a = 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.j6a()) {
|
|
334
334
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
335
335
|
} else {
|
|
336
336
|
tmp_0 = null;
|
|
337
337
|
}
|
|
338
338
|
tmp = tmp_0;
|
|
339
339
|
}
|
|
340
|
-
var
|
|
341
|
-
var
|
|
342
|
-
var
|
|
340
|
+
var tmp1_safe_receiver = tmp;
|
|
341
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.a6a_1;
|
|
342
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.p6a(tmp2_safe_receiver, playerIndex, reverse);
|
|
343
343
|
var tmp_1;
|
|
344
|
-
if (
|
|
344
|
+
if (tmp3_safe_receiver == null) {
|
|
345
345
|
tmp_1 = null;
|
|
346
346
|
} else {
|
|
347
347
|
// Inline function 'kotlin.let' call
|
|
348
|
-
tmp_1 =
|
|
348
|
+
tmp_1 = tmp3_safe_receiver + 1 | 0;
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
var previousGameCardPosition =
|
|
350
|
+
var tmp4_elvis_lhs = tmp_1;
|
|
351
|
+
var previousGameCardPosition = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
352
352
|
var tmp_2;
|
|
353
353
|
if (reverse) {
|
|
354
354
|
tmp_2 = ((53 + imul(playerIndex, 14) | 0) - position | 0) - previousGameCardPosition | 0;
|
|
@@ -358,12 +358,12 @@
|
|
|
358
358
|
var index = tmp_2;
|
|
359
359
|
return new GameCard(index);
|
|
360
360
|
};
|
|
361
|
-
protoOf(Companion).
|
|
361
|
+
protoOf(Companion).q6a = 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.i6a(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.i6a.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).r6a = function (position) {
|
|
367
367
|
var index = 150 + position | 0;
|
|
368
368
|
return new GameCard(index);
|
|
369
369
|
};
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
}
|
|
377
377
|
function getCardNumber($this, number) {
|
|
378
378
|
var tmp;
|
|
379
|
-
switch (number.
|
|
379
|
+
switch (number.r2_1) {
|
|
380
380
|
case 12:
|
|
381
381
|
tmp = 0;
|
|
382
382
|
break;
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
return tmp;
|
|
470
470
|
}
|
|
471
471
|
function _get_isShirt__vd98rp($this) {
|
|
472
|
-
return $this.
|
|
472
|
+
return $this.a6a_1 >= 150 && $this.a6a_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.k6a_1 = -1;
|
|
482
|
+
this.l6a_1 = 13;
|
|
483
|
+
this.m6a_1 = 52;
|
|
484
|
+
this.n6a_1 = 150;
|
|
485
|
+
this.o6a_1 = 53;
|
|
486
486
|
}
|
|
487
|
-
protoOf(Companion_0).
|
|
487
|
+
protoOf(Companion_0).p6a = 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.a6a_1 = index;
|
|
558
558
|
}
|
|
559
|
-
protoOf(GameCard).
|
|
559
|
+
protoOf(GameCard).d6a = function () {
|
|
560
560
|
var tmp;
|
|
561
|
-
var containsArg = this.
|
|
561
|
+
var containsArg = this.a6a_1;
|
|
562
562
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
563
563
|
tmp = Suit_DIAMOND_getInstance();
|
|
564
564
|
} else {
|
|
565
|
-
if (this.
|
|
565
|
+
if (this.a6a_1 <= 26) {
|
|
566
566
|
tmp = Suit_SPADE_getInstance();
|
|
567
567
|
} else {
|
|
568
|
-
if (this.
|
|
568
|
+
if (this.a6a_1 <= 39) {
|
|
569
569
|
tmp = Suit_HEART_getInstance();
|
|
570
570
|
} else {
|
|
571
|
-
if (this.
|
|
571
|
+
if (this.a6a_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.a6a_1);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return tmp;
|
|
580
580
|
};
|
|
581
|
-
protoOf(GameCard).
|
|
581
|
+
protoOf(GameCard).e6a = function () {
|
|
582
582
|
var tmp;
|
|
583
|
-
if (this.
|
|
583
|
+
if (this.j6a()) {
|
|
584
584
|
tmp = -1;
|
|
585
585
|
} else {
|
|
586
|
-
tmp = this.
|
|
586
|
+
tmp = this.a6a_1 - imul(13, getIndex(this.d6a())) | 0;
|
|
587
587
|
}
|
|
588
588
|
return tmp;
|
|
589
589
|
};
|
|
590
|
-
protoOf(GameCard).
|
|
591
|
-
return this.
|
|
590
|
+
protoOf(GameCard).s2 = function () {
|
|
591
|
+
return this.j6a() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.e6a());
|
|
592
592
|
};
|
|
593
|
-
protoOf(GameCard).
|
|
594
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
593
|
+
protoOf(GameCard).c6a = function () {
|
|
594
|
+
return !_get_isShirt__vd98rp(this) && !this.j6a();
|
|
595
595
|
};
|
|
596
|
-
protoOf(GameCard).
|
|
597
|
-
return this.
|
|
596
|
+
protoOf(GameCard).j6a = function () {
|
|
597
|
+
return this.a6a_1 >= 53 && this.a6a_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.a6a_1 + ')';
|
|
602
602
|
}
|
|
603
|
-
if (this.
|
|
604
|
-
return 'GameCard(HIDDEN, ' + this.
|
|
603
|
+
if (this.j6a()) {
|
|
604
|
+
return 'GameCard(HIDDEN, ' + this.a6a_1 + ')';
|
|
605
605
|
}
|
|
606
|
-
return 'GameCard(' + this.
|
|
606
|
+
return 'GameCard(' + this.d6a().toString() + this.s2().toString() + ', ' + this.a6a_1 + ')';
|
|
607
607
|
};
|
|
608
608
|
protoOf(GameCard).hashCode = function () {
|
|
609
|
-
return this.
|
|
609
|
+
return this.a6a_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.a6a_1 === tmp0_other_with_cast.a6a_1))
|
|
618
618
|
return false;
|
|
619
619
|
return true;
|
|
620
620
|
};
|
|
621
621
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
622
|
-
return $this.
|
|
622
|
+
return $this.s6a_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());
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
var Suit_CLUB_instance;
|
|
631
631
|
function getSuitEmoji($this) {
|
|
632
632
|
var tmp;
|
|
633
|
-
switch ($this.
|
|
633
|
+
switch ($this.r2_1) {
|
|
634
634
|
case 0:
|
|
635
635
|
tmp = '\u2666\uFE0F';
|
|
636
636
|
break;
|
|
@@ -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.s6a_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
665
665
|
}
|
|
666
|
-
protoOf(Companion_1).
|
|
666
|
+
protoOf(Companion_1).d50 = function () {
|
|
667
667
|
return _get_$cachedSerializer__te6jhj(this);
|
|
668
668
|
};
|
|
669
|
-
protoOf(Companion_1).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(Companion_1).s4j = function (typeParamsSerializers) {
|
|
670
|
+
return this.d50();
|
|
671
671
|
};
|
|
672
672
|
var Companion_instance_1;
|
|
673
673
|
function Companion_getInstance_1() {
|
|
@@ -712,7 +712,7 @@
|
|
|
712
712
|
}
|
|
713
713
|
function getIndex(_this__u8e3s4) {
|
|
714
714
|
var tmp;
|
|
715
|
-
switch (_this__u8e3s4.
|
|
715
|
+
switch (_this__u8e3s4.r2_1) {
|
|
716
716
|
case 0:
|
|
717
717
|
tmp = 0;
|
|
718
718
|
break;
|
|
@@ -762,9 +762,9 @@
|
|
|
762
762
|
}
|
|
763
763
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
764
764
|
var tmp = new $getRandomOrgCardsCOROUTINE$($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
765
|
-
tmp.
|
|
766
|
-
tmp.
|
|
767
|
-
return tmp.
|
|
765
|
+
tmp.n9_1 = Unit_instance;
|
|
766
|
+
tmp.o9_1 = null;
|
|
767
|
+
return tmp.t9();
|
|
768
768
|
}
|
|
769
769
|
function normalizeCards($this, cards, leftCardIndexForEachSuit) {
|
|
770
770
|
var oneSuitCount = cards.m() / get_entries().m() | 0;
|
|
@@ -784,9 +784,9 @@
|
|
|
784
784
|
}
|
|
785
785
|
function Companion_2() {
|
|
786
786
|
}
|
|
787
|
-
protoOf(Companion_2).
|
|
788
|
-
var
|
|
789
|
-
return new CardsDealerProviderImpl(
|
|
787
|
+
protoOf(Companion_2).v6b = function (randomPoolProvider, logger) {
|
|
788
|
+
var tmp0_random = new SecureRandom(logger);
|
|
789
|
+
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
790
790
|
};
|
|
791
791
|
var Companion_instance_2;
|
|
792
792
|
function Companion_getInstance_2() {
|
|
@@ -794,41 +794,41 @@
|
|
|
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.
|
|
803
|
-
}
|
|
804
|
-
protoOf($createNewShuffledCardDeckCOROUTINE$).
|
|
805
|
-
var suspendResult = this.
|
|
797
|
+
this.e6c_1 = _this__u8e3s4;
|
|
798
|
+
this.f6c_1 = leftCardIndexForEachSuit;
|
|
799
|
+
this.g6c_1 = rightCardIndexForEachSuit;
|
|
800
|
+
this.h6c_1 = approximateRoundCountForGame;
|
|
801
|
+
this.i6c_1 = userData;
|
|
802
|
+
this.j6c_1 = provider;
|
|
803
|
+
}
|
|
804
|
+
protoOf($createNewShuffledCardDeckCOROUTINE$).t9 = function () {
|
|
805
|
+
var suspendResult = this.n9_1;
|
|
806
806
|
$sm: do
|
|
807
807
|
try {
|
|
808
|
-
var tmp = this.
|
|
808
|
+
var tmp = this.l9_1;
|
|
809
809
|
switch (tmp) {
|
|
810
810
|
case 0:
|
|
811
|
-
this.
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
if (this.
|
|
811
|
+
this.m9_1 = 4;
|
|
812
|
+
this.k6c_1 = this.j6c_1;
|
|
813
|
+
this.l6c_1 = this.k6c_1.r2_1;
|
|
814
|
+
if (this.l6c_1 === 0) {
|
|
815
815
|
var tmp_0 = this;
|
|
816
|
-
var it = this.
|
|
817
|
-
tmp_0.
|
|
818
|
-
this.
|
|
816
|
+
var it = this.e6c_1.t6a(this.f6c_1, this.g6c_1);
|
|
817
|
+
tmp_0.m6c_1 = this.e6c_1.x6a(it);
|
|
818
|
+
this.l9_1 = 3;
|
|
819
819
|
continue $sm;
|
|
820
820
|
} else {
|
|
821
|
-
if (this.
|
|
822
|
-
this.
|
|
823
|
-
suspendResult = getRandomOrgCards(this.
|
|
821
|
+
if (this.l6c_1 === 1) {
|
|
822
|
+
this.l9_1 = 2;
|
|
823
|
+
suspendResult = getRandomOrgCards(this.e6c_1, this.f6c_1, this.g6c_1, this.h6c_1, this.i6c_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.
|
|
830
|
-
this.
|
|
831
|
-
suspendResult = getRandomOrgCards(this.
|
|
829
|
+
if (this.l6c_1 === 2) {
|
|
830
|
+
this.l9_1 = 1;
|
|
831
|
+
suspendResult = getRandomOrgCards(this.e6c_1, this.f6c_1, this.g6c_1, this.h6c_1, this.i6c_1, true, this);
|
|
832
832
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
833
833
|
return suspendResult;
|
|
834
834
|
}
|
|
@@ -842,86 +842,86 @@
|
|
|
842
842
|
|
|
843
843
|
break;
|
|
844
844
|
case 1:
|
|
845
|
-
this.
|
|
846
|
-
this.
|
|
845
|
+
this.m6c_1 = suspendResult;
|
|
846
|
+
this.l9_1 = 3;
|
|
847
847
|
continue $sm;
|
|
848
848
|
case 2:
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
849
|
+
this.m6c_1 = suspendResult;
|
|
850
|
+
this.l9_1 = 3;
|
|
851
851
|
continue $sm;
|
|
852
852
|
case 3:
|
|
853
|
-
return this.
|
|
853
|
+
return this.m6c_1;
|
|
854
854
|
case 4:
|
|
855
|
-
throw this.
|
|
855
|
+
throw this.o9_1;
|
|
856
856
|
}
|
|
857
857
|
} catch ($p) {
|
|
858
858
|
var e = $p;
|
|
859
|
-
if (this.
|
|
859
|
+
if (this.m9_1 === 4) {
|
|
860
860
|
throw e;
|
|
861
861
|
} else {
|
|
862
|
-
this.
|
|
863
|
-
this.
|
|
862
|
+
this.l9_1 = this.m9_1;
|
|
863
|
+
this.o9_1 = e;
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
while (true);
|
|
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.
|
|
876
|
-
}
|
|
877
|
-
protoOf($getRandomOrgCardsCOROUTINE$).
|
|
878
|
-
var suspendResult = this.
|
|
870
|
+
this.i6b_1 = _this__u8e3s4;
|
|
871
|
+
this.j6b_1 = leftCardIndexForEachSuit;
|
|
872
|
+
this.k6b_1 = rightCardIndexForEachSuit;
|
|
873
|
+
this.l6b_1 = approximateRoundsCount;
|
|
874
|
+
this.m6b_1 = userData;
|
|
875
|
+
this.n6b_1 = signed;
|
|
876
|
+
}
|
|
877
|
+
protoOf($getRandomOrgCardsCOROUTINE$).t9 = function () {
|
|
878
|
+
var suspendResult = this.n9_1;
|
|
879
879
|
$sm: do
|
|
880
880
|
try {
|
|
881
|
-
var tmp = this.
|
|
881
|
+
var tmp = this.l9_1;
|
|
882
882
|
switch (tmp) {
|
|
883
883
|
case 0:
|
|
884
|
-
this.
|
|
885
|
-
this.
|
|
886
|
-
this.
|
|
887
|
-
this.
|
|
888
|
-
this.
|
|
889
|
-
suspendResult = this.
|
|
884
|
+
this.m9_1 = 5;
|
|
885
|
+
this.o6b_1 = this.i6b_1.q6c(this.j6b_1, this.k6b_1);
|
|
886
|
+
this.p6b_1 = this.i6b_1.o6c_1;
|
|
887
|
+
this.q6b_1 = this.o6b_1 - 1 | 0;
|
|
888
|
+
this.l9_1 = 1;
|
|
889
|
+
suspendResult = this.p6b_1.j5v(this.l6b_1, this.m6b_1, 0, this.q6b_1, this.o6b_1, this.n6b_1, VOID, this);
|
|
890
890
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
891
891
|
return suspendResult;
|
|
892
892
|
}
|
|
893
893
|
|
|
894
|
-
this.
|
|
894
|
+
this.l9_1 = 2;
|
|
895
895
|
continue $sm;
|
|
896
896
|
case 1:
|
|
897
|
-
this.
|
|
898
|
-
suspendResult = new Result(this.
|
|
899
|
-
this.
|
|
897
|
+
this.r6b_1 = suspendResult.qm_1;
|
|
898
|
+
suspendResult = new Result(this.r6b_1);
|
|
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.s6b_1 = suspendResult.qm_1;
|
|
903
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.s6b_1)) {
|
|
904
904
|
var tmp_0 = this;
|
|
905
|
-
var this_0 = this.
|
|
905
|
+
var this_0 = this.s6b_1;
|
|
906
906
|
throwOnFailure(this_0);
|
|
907
907
|
var tmp_1 = _Result___get_value__impl__bjfvqg(this_0);
|
|
908
|
-
var
|
|
909
|
-
var this_1 = normalizeCards(this.
|
|
908
|
+
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
909
|
+
var this_1 = normalizeCards(this.i6b_1, tmp2_cards, this.j6b_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.h6a(item));
|
|
915
915
|
}
|
|
916
|
-
tmp_0.
|
|
917
|
-
this.
|
|
916
|
+
tmp_0.t6b_1 = destination;
|
|
917
|
+
this.l9_1 = 4;
|
|
918
918
|
continue $sm;
|
|
919
919
|
} else {
|
|
920
|
-
this.
|
|
921
|
-
var
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
924
|
-
suspendResult = this.
|
|
920
|
+
this.u6b_1 = Result__exceptionOrNull_impl_p6xea9(this.s6b_1);
|
|
921
|
+
var tmp3_safe_receiver = this.u6b_1;
|
|
922
|
+
this.i6b_1.p6c_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (tmp3_safe_receiver == null ? null : tmp3_safe_receiver.message), this.u6b_1);
|
|
923
|
+
this.l9_1 = 3;
|
|
924
|
+
suspendResult = this.i6b_1.u6a(this.j6b_1, this.k6b_1, this.l6b_1, this.m6b_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
925
925
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
926
926
|
return suspendResult;
|
|
927
927
|
}
|
|
@@ -929,31 +929,31 @@
|
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
case 3:
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
932
|
+
this.t6b_1 = suspendResult;
|
|
933
|
+
this.l9_1 = 4;
|
|
934
934
|
continue $sm;
|
|
935
935
|
case 4:
|
|
936
|
-
return this.
|
|
936
|
+
return this.t6b_1;
|
|
937
937
|
case 5:
|
|
938
|
-
throw this.
|
|
938
|
+
throw this.o9_1;
|
|
939
939
|
}
|
|
940
940
|
} catch ($p) {
|
|
941
941
|
var e = $p;
|
|
942
|
-
if (this.
|
|
942
|
+
if (this.m9_1 === 5) {
|
|
943
943
|
throw e;
|
|
944
944
|
} else {
|
|
945
|
-
this.
|
|
946
|
-
this.
|
|
945
|
+
this.l9_1 = this.m9_1;
|
|
946
|
+
this.o9_1 = e;
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
while (true);
|
|
950
950
|
};
|
|
951
951
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
952
|
-
this.
|
|
953
|
-
this.
|
|
954
|
-
this.
|
|
952
|
+
this.n6c_1 = random;
|
|
953
|
+
this.o6c_1 = randomPoolProvider;
|
|
954
|
+
this.p6c_1 = logger;
|
|
955
955
|
}
|
|
956
|
-
protoOf(CardsDealerProviderImpl).
|
|
956
|
+
protoOf(CardsDealerProviderImpl).t6a = 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.r6c(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.f6a(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).r6c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
985
985
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
986
986
|
};
|
|
987
|
-
protoOf(CardsDealerProviderImpl).
|
|
987
|
+
protoOf(CardsDealerProviderImpl).q6c = 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.r6c(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
995
995
|
}
|
|
996
996
|
return sum;
|
|
997
997
|
};
|
|
998
|
-
protoOf(CardsDealerProviderImpl).
|
|
998
|
+
protoOf(CardsDealerProviderImpl).u6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
999
999
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
1000
|
-
tmp.
|
|
1001
|
-
tmp.
|
|
1002
|
-
return tmp.
|
|
1000
|
+
tmp.n9_1 = Unit_instance;
|
|
1001
|
+
tmp.o9_1 = null;
|
|
1002
|
+
return tmp.t9();
|
|
1003
1003
|
};
|
|
1004
|
-
protoOf(CardsDealerProviderImpl).
|
|
1004
|
+
protoOf(CardsDealerProviderImpl).v6a = 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$();
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
if (this_0.m() === count) {
|
|
1013
1013
|
break $l$block;
|
|
1014
1014
|
}
|
|
1015
|
-
var hasSimilarCard = this_0.
|
|
1015
|
+
var hasSimilarCard = this_0.v1(card);
|
|
1016
1016
|
if (hasSimilarCard) {
|
|
1017
1017
|
continue $l$loop_0;
|
|
1018
1018
|
}
|
|
@@ -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.e6a() === card.e6a()) {
|
|
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).w6a = function (cards, times) {
|
|
1051
1051
|
// Inline function 'kotlin.let' call
|
|
1052
1052
|
var shuffled = toMutableList(cards);
|
|
1053
1053
|
var inductionVariable = 0;
|
|
@@ -1055,60 +1055,60 @@
|
|
|
1055
1055
|
do {
|
|
1056
1056
|
var i = inductionVariable;
|
|
1057
1057
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1058
|
-
shuffled = this.
|
|
1058
|
+
shuffled = this.n6c_1.v5z(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).y6a = function (cards, times) {
|
|
1064
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.n6c_1), times, this.n6c_1));
|
|
1065
1065
|
};
|
|
1066
1066
|
function Companion_3() {
|
|
1067
1067
|
}
|
|
1068
|
-
protoOf(Companion_3).
|
|
1068
|
+
protoOf(Companion_3).s6c = 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.g6a(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.g6a(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.g6a(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1073
|
+
this_0.n(listOf([Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.g6a(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.g6a(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.g6a(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.g6a(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1074
|
+
this_0.n(listOf([Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.g6a(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.g6a(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.g6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1075
|
+
this_0.n(listOf([Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.g6a(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.g6a(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1076
|
+
this_0.n(listOf([Companion_instance.g6a(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.g6a(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.g6a(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.g6a(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).t6c = function () {
|
|
1080
|
+
return listOf([Companion_instance.g6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.g6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.g6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.g6a(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.s6c() : cards;
|
|
1088
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.t6c() : cardsForLot;
|
|
1089
|
+
this.u6c_1 = cards;
|
|
1090
|
+
this.v6c_1 = cardsForLot;
|
|
1091
1091
|
}
|
|
1092
|
-
protoOf(FakeCardsDealerProvider).
|
|
1093
|
-
return this.
|
|
1092
|
+
protoOf(FakeCardsDealerProvider).t6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1093
|
+
return this.u6c_1;
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(FakeCardsDealerProvider).
|
|
1096
|
-
return this.
|
|
1095
|
+
protoOf(FakeCardsDealerProvider).u6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1096
|
+
return this.u6c_1;
|
|
1097
1097
|
};
|
|
1098
|
-
protoOf(FakeCardsDealerProvider).
|
|
1099
|
-
return this.
|
|
1098
|
+
protoOf(FakeCardsDealerProvider).v6a = function (count, cards) {
|
|
1099
|
+
return this.v6c_1;
|
|
1100
1100
|
};
|
|
1101
|
-
protoOf(FakeCardsDealerProvider).
|
|
1101
|
+
protoOf(FakeCardsDealerProvider).w6a = function (cards, times) {
|
|
1102
1102
|
return cards;
|
|
1103
1103
|
};
|
|
1104
|
-
protoOf(FakeCardsDealerProvider).
|
|
1104
|
+
protoOf(FakeCardsDealerProvider).y6a = function (cards, times) {
|
|
1105
1105
|
return cards;
|
|
1106
1106
|
};
|
|
1107
1107
|
function CombinationsCheckerProvider() {
|
|
1108
1108
|
}
|
|
1109
1109
|
function createCombination($this, cards, supportedCombinations) {
|
|
1110
1110
|
var size = cards.m();
|
|
1111
|
-
if (supportedCombinations.
|
|
1111
|
+
if (supportedCombinations.v1(size)) {
|
|
1112
1112
|
return cards;
|
|
1113
1113
|
}
|
|
1114
1114
|
var fromLongestCombinations = asReversed(sorted(supportedCombinations));
|
|
@@ -1129,23 +1129,23 @@
|
|
|
1129
1129
|
return takeLast(cards, longestCombinationSupport);
|
|
1130
1130
|
}
|
|
1131
1131
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1132
|
-
this.
|
|
1132
|
+
this.b6d_1 = function_0;
|
|
1133
1133
|
}
|
|
1134
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1135
|
-
return this.
|
|
1134
|
+
protoOf(sam$kotlin_Comparator$0).bd = function (a, b) {
|
|
1135
|
+
return this.b6d_1(a, b);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1138
|
-
return this.
|
|
1138
|
+
return this.bd(a, b);
|
|
1139
1139
|
};
|
|
1140
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1141
|
-
return this.
|
|
1140
|
+
protoOf(sam$kotlin_Comparator$0).u3 = function () {
|
|
1141
|
+
return this.b6d_1;
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1144
1144
|
var tmp;
|
|
1145
1145
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1146
1146
|
var tmp_0;
|
|
1147
1147
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1148
|
-
tmp_0 = equals(this.
|
|
1148
|
+
tmp_0 = equals(this.u3(), other.u3());
|
|
1149
1149
|
} else {
|
|
1150
1150
|
tmp_0 = false;
|
|
1151
1151
|
}
|
|
@@ -1156,17 +1156,17 @@
|
|
|
1156
1156
|
return tmp;
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1159
|
-
return hashCode(this.
|
|
1159
|
+
return hashCode(this.u3());
|
|
1160
1160
|
};
|
|
1161
1161
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1162
1162
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1163
|
-
var tmp = first_0(a).
|
|
1164
|
-
var tmp$ret$1 = first_0(b).
|
|
1163
|
+
var tmp = first_0(a).a6a_1;
|
|
1164
|
+
var tmp$ret$1 = first_0(b).a6a_1;
|
|
1165
1165
|
return compareValues(tmp, tmp$ret$1);
|
|
1166
1166
|
}
|
|
1167
1167
|
function CombinationsCheckerProviderImpl() {
|
|
1168
1168
|
}
|
|
1169
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1169
|
+
protoOf(CombinationsCheckerProviderImpl).w6c = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1170
1170
|
// Inline function 'kotlin.apply' call
|
|
1171
1171
|
var this_0 = toMutableList(cards);
|
|
1172
1172
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1176,7 +1176,7 @@
|
|
|
1176
1176
|
var _iterator__ex2g4s = this_0.j();
|
|
1177
1177
|
while (_iterator__ex2g4s.k()) {
|
|
1178
1178
|
var element = _iterator__ex2g4s.l();
|
|
1179
|
-
if (element.
|
|
1179
|
+
if (element.c6a()) {
|
|
1180
1180
|
destination.e(element);
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
@@ -1193,16 +1193,16 @@
|
|
|
1193
1193
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1194
1194
|
var previousCard = lastOrNull(combinationCards);
|
|
1195
1195
|
var currentCard = sortedByIndexCards.o(i);
|
|
1196
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1197
|
-
var passedCardNamesCheck = includeCardNames == null || includeCardNames.
|
|
1198
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1196
|
+
var isNextInRow = !(previousCard == null) && currentCard.a6a_1 === (previousCard.a6a_1 + 1 | 0) && currentCard.d6a().equals(previousCard.d6a());
|
|
1197
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.v1(currentCard.s2());
|
|
1198
|
+
var passedSuitCheck = suit == null || currentCard.d6a().equals(suit);
|
|
1199
1199
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1200
1200
|
combinationCards.e(currentCard);
|
|
1201
1201
|
} else {
|
|
1202
1202
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1203
|
-
combinations.n(this.
|
|
1203
|
+
combinations.n(this.a6d(toMutableList(combinationCards), supportedCombinations));
|
|
1204
1204
|
}
|
|
1205
|
-
combinationCards.
|
|
1205
|
+
combinationCards.d2();
|
|
1206
1206
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
1207
1207
|
combinationCards.e(currentCard);
|
|
1208
1208
|
}
|
|
@@ -1210,11 +1210,11 @@
|
|
|
1210
1210
|
}
|
|
1211
1211
|
while (inductionVariable <= last);
|
|
1212
1212
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1213
|
-
combinations.n(this.
|
|
1213
|
+
combinations.n(this.a6d(toMutableList(combinationCards), supportedCombinations));
|
|
1214
1214
|
}
|
|
1215
1215
|
return combinations;
|
|
1216
1216
|
};
|
|
1217
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1217
|
+
protoOf(CombinationsCheckerProviderImpl).y6c = function (cards, cardsCount, includeCardNames) {
|
|
1218
1218
|
// Inline function 'kotlin.apply' call
|
|
1219
1219
|
var this_0 = toMutableList(cards);
|
|
1220
1220
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
var _iterator__ex2g4s = this_0.j();
|
|
1225
1225
|
while (_iterator__ex2g4s.k()) {
|
|
1226
1226
|
var element = _iterator__ex2g4s.l();
|
|
1227
|
-
if (element.
|
|
1227
|
+
if (element.c6a()) {
|
|
1228
1228
|
destination.e(element);
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
@@ -1234,7 +1234,7 @@
|
|
|
1234
1234
|
var _iterator__ex2g4s_0 = destination.j();
|
|
1235
1235
|
while (_iterator__ex2g4s_0.k()) {
|
|
1236
1236
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
1237
|
-
if (includeCardNames == null || includeCardNames.
|
|
1237
|
+
if (includeCardNames == null || includeCardNames.v1(element_0.s2())) {
|
|
1238
1238
|
destination_0.e(element_0);
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
@@ -1245,13 +1245,13 @@
|
|
|
1245
1245
|
var _iterator__ex2g4s_1 = sortedByNumberCards.j();
|
|
1246
1246
|
while (_iterator__ex2g4s_1.k()) {
|
|
1247
1247
|
var element_1 = _iterator__ex2g4s_1.l();
|
|
1248
|
-
var key = element_1.
|
|
1248
|
+
var key = element_1.e6a();
|
|
1249
1249
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1250
|
-
var value = destination_1.
|
|
1250
|
+
var value = destination_1.k2(key);
|
|
1251
1251
|
var tmp;
|
|
1252
1252
|
if (value == null) {
|
|
1253
1253
|
var answer = ArrayList_init_$Create$();
|
|
1254
|
-
destination_1.
|
|
1254
|
+
destination_1.n2(key, answer);
|
|
1255
1255
|
tmp = answer;
|
|
1256
1256
|
} else {
|
|
1257
1257
|
tmp = value;
|
|
@@ -1267,10 +1267,10 @@
|
|
|
1267
1267
|
while (_iterator__ex2g4s_2.k()) {
|
|
1268
1268
|
var element_2 = _iterator__ex2g4s_2.l();
|
|
1269
1269
|
if (element_2.u().m() >= cardsCount) {
|
|
1270
|
-
destination_2.
|
|
1270
|
+
destination_2.n2(element_2.t(), element_2.u());
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
var combinations = destination_2.
|
|
1273
|
+
var combinations = destination_2.m2();
|
|
1274
1274
|
// Inline function 'kotlin.collections.map' call
|
|
1275
1275
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1276
1276
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
@@ -1282,7 +1282,7 @@
|
|
|
1282
1282
|
}
|
|
1283
1283
|
return destination_3;
|
|
1284
1284
|
};
|
|
1285
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1285
|
+
protoOf(CombinationsCheckerProviderImpl).a6d = function (cards, supportedCombinations) {
|
|
1286
1286
|
// Inline function 'kotlin.collections.minOf' call
|
|
1287
1287
|
var iterator = supportedCombinations.j();
|
|
1288
1288
|
if (!iterator.k())
|
|
@@ -1301,7 +1301,7 @@
|
|
|
1301
1301
|
while (cardsToCheck.m() >= shortestCombinationSupport) {
|
|
1302
1302
|
var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
|
|
1303
1303
|
combinations.e(toList(combinationCards));
|
|
1304
|
-
cardsToCheck.
|
|
1304
|
+
cardsToCheck.c2(combinationCards);
|
|
1305
1305
|
}
|
|
1306
1306
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
1307
1307
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
@@ -1312,28 +1312,28 @@
|
|
|
1312
1312
|
function DealerReducer() {
|
|
1313
1313
|
}
|
|
1314
1314
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1315
|
+
this.f6d_1 = logger;
|
|
1316
|
+
this.g6d_1 = enableLogs;
|
|
1317
1317
|
}
|
|
1318
|
-
protoOf(DealerReducerImpl).
|
|
1318
|
+
protoOf(DealerReducerImpl).c6d = function (cards, cardsToRemove) {
|
|
1319
1319
|
var list = cards;
|
|
1320
1320
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1321
1321
|
while (_iterator__ex2g4s.k()) {
|
|
1322
1322
|
var gameCard = _iterator__ex2g4s.l();
|
|
1323
|
-
list = this.
|
|
1323
|
+
list = this.d6d(list, gameCard);
|
|
1324
1324
|
}
|
|
1325
1325
|
return list;
|
|
1326
1326
|
};
|
|
1327
|
-
protoOf(DealerReducerImpl).
|
|
1327
|
+
protoOf(DealerReducerImpl).d6d = function (cards, cardToRemove) {
|
|
1328
1328
|
var tmp;
|
|
1329
|
-
if (!cardToRemove.
|
|
1330
|
-
if (this.
|
|
1331
|
-
this.
|
|
1329
|
+
if (!cardToRemove.j6a() && cards.v1(cardToRemove)) {
|
|
1330
|
+
if (this.g6d_1) {
|
|
1331
|
+
this.f6d_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1332
1332
|
}
|
|
1333
1333
|
tmp = minus(cards, cardToRemove);
|
|
1334
1334
|
} else {
|
|
1335
|
-
if (this.
|
|
1336
|
-
this.
|
|
1335
|
+
if (this.g6d_1) {
|
|
1336
|
+
this.f6d_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1337
1337
|
}
|
|
1338
1338
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1339
1339
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1341,7 +1341,7 @@
|
|
|
1341
1341
|
var _iterator__ex2g4s = cards.j();
|
|
1342
1342
|
while (_iterator__ex2g4s.k()) {
|
|
1343
1343
|
var element = _iterator__ex2g4s.l();
|
|
1344
|
-
if (!element.
|
|
1344
|
+
if (!element.j6a()) {
|
|
1345
1345
|
destination.e(element);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
@@ -1352,34 +1352,34 @@
|
|
|
1352
1352
|
var _iterator__ex2g4s_0 = cards.j();
|
|
1353
1353
|
while (_iterator__ex2g4s_0.k()) {
|
|
1354
1354
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
1355
|
-
if (element_0.
|
|
1355
|
+
if (element_0.j6a()) {
|
|
1356
1356
|
destination_0.e(element_0);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
var hiddenCards = destination_0;
|
|
1360
1360
|
if (hiddenCards.p()) {
|
|
1361
|
-
this.
|
|
1361
|
+
this.f6d_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1362
1362
|
}
|
|
1363
1363
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1364
1364
|
}
|
|
1365
1365
|
return tmp;
|
|
1366
1366
|
};
|
|
1367
|
-
protoOf(DealerReducerImpl).
|
|
1368
|
-
if (this.
|
|
1369
|
-
this.
|
|
1367
|
+
protoOf(DealerReducerImpl).e6d = function (cards, cardToAdd) {
|
|
1368
|
+
if (this.g6d_1) {
|
|
1369
|
+
this.f6d_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1370
1370
|
}
|
|
1371
|
-
if (cards.
|
|
1372
|
-
this.
|
|
1371
|
+
if (cards.v1(cardToAdd)) {
|
|
1372
|
+
this.f6d_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1373
1373
|
}
|
|
1374
1374
|
return plus_0(cards, cardToAdd);
|
|
1375
1375
|
};
|
|
1376
1376
|
//region block: post-declaration
|
|
1377
|
-
protoOf(CardsDealerProviderImpl).
|
|
1378
|
-
protoOf(CardsDealerProviderImpl).
|
|
1379
|
-
protoOf(FakeCardsDealerProvider).
|
|
1380
|
-
protoOf(FakeCardsDealerProvider).
|
|
1381
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1382
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1377
|
+
protoOf(CardsDealerProviderImpl).x6a = standardShuffledCards$default;
|
|
1378
|
+
protoOf(CardsDealerProviderImpl).z6a = realLifeShuffledCards$default;
|
|
1379
|
+
protoOf(FakeCardsDealerProvider).x6a = standardShuffledCards$default;
|
|
1380
|
+
protoOf(FakeCardsDealerProvider).z6a = realLifeShuffledCards$default;
|
|
1381
|
+
protoOf(CombinationsCheckerProviderImpl).x6c = findCardsInRowCombinations$default;
|
|
1382
|
+
protoOf(CombinationsCheckerProviderImpl).z6c = findSameCardsNumberCombinations$default;
|
|
1383
1383
|
//endregion
|
|
1384
1384
|
//region block: init
|
|
1385
1385
|
CoreConfig_instance = new CoreConfig();
|