game_client_logic_deb 1.8.451 → 1.8.453
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 +92 -92
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +823 -783
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1919 -1919
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-ai_module.js +684 -688
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-core.js +1846 -1855
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18659 -18669
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +733 -634
- package/Logic_Debertz-game_client.js +5167 -5186
- package/Logic_Debertz-game_client.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +5748 -4875
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +3276 -3224
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +1689 -428
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2253 -2252
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +1626 -1626
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +457 -395
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +6692 -3988
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +2628 -894
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +14 -14
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http-cio.js +2278 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +1274 -1134
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2599 -5515
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +331 -337
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +142 -152
- package/ktor-ktor-serialization.js.map +1 -1
- package/{ktor-ktor-client-js.js → ktor-ktor-sse.js} +2 -2
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +1711 -1144
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +123 -136
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +2 -4
- package/random-library-crypto-rand.js +15 -15
- package/random-library-crypto-rand.js.map +1 -1
- package/random-library-secure-random.js +10 -10
- package/random-library-secure-random.js.map +1 -1
- package/raspberry-cardgame-lib-core.js +372 -373
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +120 -121
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +1109 -1134
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +38 -38
- package/uuid.js.map +1 -1
- /package/{ktor-ktor-client-js.js.map → kotlinx-serialization-kotlinx-serialization-json-io.js.map} +0 -0
|
@@ -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.$_$.
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.wd;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.bd;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.nc;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.b;
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
29
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
36
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
37
|
-
var Enum = kotlin_kotlin.$_$.
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.ii;
|
|
27
|
+
var Comparator = kotlin_kotlin.$_$.uh;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.vc;
|
|
29
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
30
|
+
var Unit_instance = kotlin_kotlin.$_$.h5;
|
|
31
|
+
var take = kotlin_kotlin.$_$.n9;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.s9;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.m9;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.hj;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.wc;
|
|
36
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.xh;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.ab;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.fj;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
44
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
45
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.zc;
|
|
44
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.k6;
|
|
45
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
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.$_$.ya;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ia;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.xc;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.gi;
|
|
51
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.w2;
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.lj;
|
|
53
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.z2;
|
|
54
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.y2;
|
|
55
|
+
var addAll = kotlin_kotlin.$_$.y5;
|
|
56
|
+
var until = kotlin_kotlin.$_$.le;
|
|
57
|
+
var count = kotlin_kotlin.$_$.c7;
|
|
58
|
+
var Collection = kotlin_kotlin.$_$.j5;
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.kd;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.x9;
|
|
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.$_$.
|
|
67
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
75
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
77
|
-
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
63
|
+
var listOf = kotlin_kotlin.$_$.k8;
|
|
64
|
+
var first = kotlin_kotlin.$_$.p7;
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.k9;
|
|
66
|
+
var asReversed = kotlin_kotlin.$_$.c6;
|
|
67
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
68
|
+
var equals = kotlin_kotlin.$_$.oc;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.bc;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.uc;
|
|
71
|
+
var first_0 = kotlin_kotlin.$_$.o7;
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.ga;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.i9;
|
|
74
|
+
var lastOrNull = kotlin_kotlin.$_$.e8;
|
|
75
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.j9;
|
|
77
|
+
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.v1;
|
|
78
|
+
var compareTo = kotlin_kotlin.$_$.mc;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.zd;
|
|
80
|
+
var dropLast = kotlin_kotlin.$_$.e7;
|
|
81
|
+
var plus = kotlin_kotlin.$_$.v8;
|
|
82
|
+
var minus = kotlin_kotlin.$_$.p8;
|
|
83
|
+
var plus_0 = kotlin_kotlin.$_$.w8;
|
|
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.v63(cards, times) : $super.v63.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.x63(cards, times) : $super.x63.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.n65(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.n65.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.p65(cards, cardsCount, includeCardNames) : $super.p65.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.58';
|
|
131
131
|
}
|
|
132
|
-
protoOf(CoreConfig).
|
|
132
|
+
protoOf(CoreConfig).t41 = function () {
|
|
133
133
|
return this.version;
|
|
134
134
|
};
|
|
135
135
|
var CoreConfig_instance;
|
|
@@ -138,56 +138,56 @@
|
|
|
138
138
|
}
|
|
139
139
|
function CardIndexComparator() {
|
|
140
140
|
}
|
|
141
|
-
protoOf(CardIndexComparator).
|
|
142
|
-
return a.
|
|
141
|
+
protoOf(CardIndexComparator).u62 = function (a, b) {
|
|
142
|
+
return a.v62_1 - b.v62_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.u62(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.w62_1 = suit;
|
|
154
154
|
}
|
|
155
|
-
protoOf(CardSuitSortingComparator).
|
|
156
|
-
if (!a.
|
|
155
|
+
protoOf(CardSuitSortingComparator).u62 = function (a, b) {
|
|
156
|
+
if (!a.x62() || !b.x62()) {
|
|
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.w62_1.o2(a.y62());
|
|
160
|
+
var suitIndexR = this.w62_1.o2(b.y62());
|
|
161
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.z62() | 0;
|
|
162
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.z62() | 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.u62(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
168
168
|
};
|
|
169
169
|
function filterByCardName(_this__u8e3s4, name) {
|
|
170
170
|
// Inline function 'kotlin.collections.filter' call
|
|
171
171
|
var predicate = byCardNamePredicate(name.slice());
|
|
172
172
|
// Inline function 'kotlin.collections.filterTo' call
|
|
173
173
|
var destination = ArrayList_init_$Create$();
|
|
174
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
175
|
-
while (_iterator__ex2g4s.
|
|
176
|
-
var element = _iterator__ex2g4s.
|
|
174
|
+
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
175
|
+
while (_iterator__ex2g4s.u()) {
|
|
176
|
+
var element = _iterator__ex2g4s.v();
|
|
177
177
|
if (predicate(element)) {
|
|
178
|
-
destination.
|
|
178
|
+
destination.e1(element);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
return destination;
|
|
182
182
|
}
|
|
183
183
|
function CardNumberComparator() {
|
|
184
184
|
}
|
|
185
|
-
protoOf(CardNumberComparator).
|
|
186
|
-
return b.
|
|
185
|
+
protoOf(CardNumberComparator).u62 = function (a, b) {
|
|
186
|
+
return b.z62() - a.z62() | 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.u62(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.f3(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.f3(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.m().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.a1_1) {
|
|
247
247
|
case 0:
|
|
248
248
|
tmp = 'A';
|
|
249
249
|
break;
|
|
@@ -314,23 +314,23 @@
|
|
|
314
314
|
}
|
|
315
315
|
function Companion() {
|
|
316
316
|
}
|
|
317
|
-
protoOf(Companion).
|
|
317
|
+
protoOf(Companion).a63 = 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).b63 = function (suit, cardNumber) {
|
|
321
321
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
322
322
|
};
|
|
323
|
-
protoOf(Companion).
|
|
323
|
+
protoOf(Companion).c63 = function (index) {
|
|
324
324
|
return new GameCard(index);
|
|
325
325
|
};
|
|
326
|
-
protoOf(Companion).
|
|
326
|
+
protoOf(Companion).d63 = 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.e63()) {
|
|
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.v62_1;
|
|
342
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.l63(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).m63 = 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.d63(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.d63.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).n63 = 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.a1_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.v62_1 >= 150 && $this.v62_1 <= 202;
|
|
473
473
|
}
|
|
474
474
|
function CardName(name, ordinal) {
|
|
475
475
|
Enum.call(this, name, ordinal);
|
|
@@ -478,14 +478,14 @@
|
|
|
478
478
|
return getShortName(this);
|
|
479
479
|
};
|
|
480
480
|
function Companion_0() {
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
}
|
|
488
|
-
protoOf(Companion_0).
|
|
481
|
+
this.f63_1 = -1;
|
|
482
|
+
this.g63_1 = 13;
|
|
483
|
+
this.h63_1 = 52;
|
|
484
|
+
this.i63_1 = 150;
|
|
485
|
+
this.j63_1 = 53;
|
|
486
|
+
this.k63_1 = 999;
|
|
487
|
+
}
|
|
488
|
+
protoOf(Companion_0).l63 = function (_this__u8e3s4, playerIndex, reverse) {
|
|
489
489
|
var tmp;
|
|
490
490
|
if (reverse) {
|
|
491
491
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -555,84 +555,83 @@
|
|
|
555
555
|
return CardName_HIDDEN_instance;
|
|
556
556
|
}
|
|
557
557
|
function GameCard(index) {
|
|
558
|
-
this.
|
|
558
|
+
this.v62_1 = index;
|
|
559
559
|
}
|
|
560
|
-
protoOf(GameCard).
|
|
560
|
+
protoOf(GameCard).y62 = function () {
|
|
561
561
|
var tmp;
|
|
562
|
-
var containsArg = this.
|
|
562
|
+
var containsArg = this.v62_1;
|
|
563
563
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
564
564
|
tmp = Suit_DIAMOND_getInstance();
|
|
565
565
|
} else {
|
|
566
|
-
if (this.
|
|
566
|
+
if (this.v62_1 <= 26) {
|
|
567
567
|
tmp = Suit_SPADE_getInstance();
|
|
568
568
|
} else {
|
|
569
|
-
if (this.
|
|
569
|
+
if (this.v62_1 <= 39) {
|
|
570
570
|
tmp = Suit_HEART_getInstance();
|
|
571
571
|
} else {
|
|
572
|
-
if (this.
|
|
572
|
+
if (this.v62_1 <= 52) {
|
|
573
573
|
tmp = Suit_CLUB_getInstance();
|
|
574
574
|
} else {
|
|
575
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
575
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.v62_1);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
return tmp;
|
|
581
581
|
};
|
|
582
|
-
protoOf(GameCard).
|
|
582
|
+
protoOf(GameCard).z62 = function () {
|
|
583
583
|
var tmp;
|
|
584
|
-
if (this.
|
|
584
|
+
if (this.e63()) {
|
|
585
585
|
tmp = -1;
|
|
586
586
|
} else {
|
|
587
|
-
tmp = this.
|
|
587
|
+
tmp = this.v62_1 - imul(13, getIndex(this.y62())) | 0;
|
|
588
588
|
}
|
|
589
589
|
return tmp;
|
|
590
590
|
};
|
|
591
|
-
protoOf(GameCard).
|
|
592
|
-
return this.
|
|
591
|
+
protoOf(GameCard).m = function () {
|
|
592
|
+
return this.e63() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.z62());
|
|
593
593
|
};
|
|
594
|
-
protoOf(GameCard).
|
|
595
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
594
|
+
protoOf(GameCard).x62 = function () {
|
|
595
|
+
return !_get_isShirt__vd98rp(this) && !this.e63();
|
|
596
596
|
};
|
|
597
|
-
protoOf(GameCard).
|
|
598
|
-
return this.
|
|
597
|
+
protoOf(GameCard).o63 = function () {
|
|
598
|
+
return this.v62_1 === 999;
|
|
599
599
|
};
|
|
600
|
-
protoOf(GameCard).
|
|
601
|
-
return this.
|
|
600
|
+
protoOf(GameCard).e63 = function () {
|
|
601
|
+
return this.v62_1 >= 53 && this.v62_1 <= 105;
|
|
602
602
|
};
|
|
603
603
|
protoOf(GameCard).toString = function () {
|
|
604
|
-
return 'GameCard' + this.
|
|
604
|
+
return 'GameCard' + this.p63();
|
|
605
605
|
};
|
|
606
|
-
protoOf(GameCard).
|
|
607
|
-
return '{' + this.
|
|
606
|
+
protoOf(GameCard).p63 = function () {
|
|
607
|
+
return '{' + this.q63() + ', ' + this.v62_1 + '}';
|
|
608
608
|
};
|
|
609
|
-
protoOf(GameCard).
|
|
610
|
-
if (this.
|
|
609
|
+
protoOf(GameCard).q63 = function () {
|
|
610
|
+
if (this.o63()) {
|
|
611
611
|
return 'stub';
|
|
612
612
|
}
|
|
613
|
-
if (this.
|
|
613
|
+
if (this.e63()) {
|
|
614
614
|
return 'hidden';
|
|
615
615
|
}
|
|
616
616
|
if (_get_isShirt__vd98rp(this)) {
|
|
617
617
|
return 'shirt';
|
|
618
618
|
}
|
|
619
|
-
return this.
|
|
619
|
+
return this.y62().toString() + this.m().toString();
|
|
620
620
|
};
|
|
621
621
|
protoOf(GameCard).hashCode = function () {
|
|
622
|
-
return this.
|
|
622
|
+
return this.v62_1;
|
|
623
623
|
};
|
|
624
624
|
protoOf(GameCard).equals = function (other) {
|
|
625
625
|
if (this === other)
|
|
626
626
|
return true;
|
|
627
627
|
if (!(other instanceof GameCard))
|
|
628
628
|
return false;
|
|
629
|
-
|
|
630
|
-
if (!(this.x5b_1 === tmp0_other_with_cast.x5b_1))
|
|
629
|
+
if (!(this.v62_1 === other.v62_1))
|
|
631
630
|
return false;
|
|
632
631
|
return true;
|
|
633
632
|
};
|
|
634
633
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
635
|
-
return $this.
|
|
634
|
+
return $this.r63_1.o1();
|
|
636
635
|
}
|
|
637
636
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
638
637
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -643,7 +642,7 @@
|
|
|
643
642
|
var Suit_CLUB_instance;
|
|
644
643
|
function getSuitEmoji($this) {
|
|
645
644
|
var tmp;
|
|
646
|
-
switch ($this.
|
|
645
|
+
switch ($this.a1_1) {
|
|
647
646
|
case 0:
|
|
648
647
|
tmp = '\u2666\uFE0F';
|
|
649
648
|
break;
|
|
@@ -674,13 +673,13 @@
|
|
|
674
673
|
Companion_instance_1 = this;
|
|
675
674
|
var tmp = this;
|
|
676
675
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
677
|
-
tmp.
|
|
676
|
+
tmp.r63_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
678
677
|
}
|
|
679
|
-
protoOf(Companion_1).
|
|
678
|
+
protoOf(Companion_1).r1c = function () {
|
|
680
679
|
return _get_$cachedSerializer__te6jhj(this);
|
|
681
680
|
};
|
|
682
|
-
protoOf(Companion_1).
|
|
683
|
-
return this.
|
|
681
|
+
protoOf(Companion_1).x10 = function (typeParamsSerializers) {
|
|
682
|
+
return this.r1c();
|
|
684
683
|
};
|
|
685
684
|
var Companion_instance_1;
|
|
686
685
|
function Companion_getInstance_1() {
|
|
@@ -725,7 +724,7 @@
|
|
|
725
724
|
}
|
|
726
725
|
function getIndex(_this__u8e3s4) {
|
|
727
726
|
var tmp;
|
|
728
|
-
switch (_this__u8e3s4.
|
|
727
|
+
switch (_this__u8e3s4.a1_1) {
|
|
729
728
|
case 0:
|
|
730
729
|
tmp = 0;
|
|
731
730
|
break;
|
|
@@ -775,29 +774,29 @@
|
|
|
775
774
|
}
|
|
776
775
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
777
776
|
var tmp = new $getRandomOrgCardsCOROUTINE$($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
778
|
-
tmp.
|
|
779
|
-
tmp.
|
|
780
|
-
return tmp.
|
|
777
|
+
tmp.g9_1 = Unit_instance;
|
|
778
|
+
tmp.h9_1 = null;
|
|
779
|
+
return tmp.m9();
|
|
781
780
|
}
|
|
782
781
|
function normalizeCards($this, cards, leftCardIndexForEachSuit) {
|
|
783
|
-
var oneSuitCount = cards.
|
|
782
|
+
var oneSuitCount = cards.g1() / get_entries().g1() | 0;
|
|
784
783
|
// Inline function 'kotlin.collections.map' call
|
|
785
784
|
// Inline function 'kotlin.collections.mapTo' call
|
|
786
785
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(cards, 10));
|
|
787
|
-
var _iterator__ex2g4s = cards.
|
|
788
|
-
while (_iterator__ex2g4s.
|
|
789
|
-
var item = _iterator__ex2g4s.
|
|
786
|
+
var _iterator__ex2g4s = cards.t();
|
|
787
|
+
while (_iterator__ex2g4s.u()) {
|
|
788
|
+
var item = _iterator__ex2g4s.v();
|
|
790
789
|
var previousSuitNumber = item / oneSuitCount | 0;
|
|
791
790
|
var cardIndexShift = imul(leftCardIndexForEachSuit, previousSuitNumber + 1 | 0);
|
|
792
791
|
var newIndex = item + cardIndexShift | 0;
|
|
793
|
-
destination.
|
|
792
|
+
destination.e1(newIndex);
|
|
794
793
|
}
|
|
795
794
|
var newIndexes = destination;
|
|
796
795
|
return newIndexes;
|
|
797
796
|
}
|
|
798
797
|
function Companion_2() {
|
|
799
798
|
}
|
|
800
|
-
protoOf(Companion_2).
|
|
799
|
+
protoOf(Companion_2).o64 = function (randomPoolProvider, logger) {
|
|
801
800
|
var tmp0_random = new SecureRandom(logger);
|
|
802
801
|
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
803
802
|
};
|
|
@@ -807,40 +806,40 @@
|
|
|
807
806
|
}
|
|
808
807
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
809
808
|
CoroutineImpl.call(this, resultContinuation);
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
}
|
|
817
|
-
protoOf($createNewShuffledCardDeckCOROUTINE$).
|
|
818
|
-
var suspendResult = this.
|
|
809
|
+
this.x64_1 = _this__u8e3s4;
|
|
810
|
+
this.y64_1 = leftCardIndexForEachSuit;
|
|
811
|
+
this.z64_1 = rightCardIndexForEachSuit;
|
|
812
|
+
this.a65_1 = approximateRoundCountForGame;
|
|
813
|
+
this.b65_1 = userData;
|
|
814
|
+
this.c65_1 = provider;
|
|
815
|
+
}
|
|
816
|
+
protoOf($createNewShuffledCardDeckCOROUTINE$).m9 = function () {
|
|
817
|
+
var suspendResult = this.g9_1;
|
|
819
818
|
$sm: do
|
|
820
819
|
try {
|
|
821
|
-
var tmp = this.
|
|
820
|
+
var tmp = this.e9_1;
|
|
822
821
|
switch (tmp) {
|
|
823
822
|
case 0:
|
|
824
|
-
this.
|
|
825
|
-
var tmp0 = this.
|
|
823
|
+
this.f9_1 = 4;
|
|
824
|
+
var tmp0 = this.c65_1.a1_1;
|
|
826
825
|
if (tmp0 === 0) {
|
|
827
826
|
var tmp_0 = this;
|
|
828
|
-
var it = this.
|
|
829
|
-
tmp_0.
|
|
830
|
-
this.
|
|
827
|
+
var it = this.x64_1.s63(this.y64_1, this.z64_1);
|
|
828
|
+
tmp_0.d65_1 = this.x64_1.w63(it);
|
|
829
|
+
this.e9_1 = 3;
|
|
831
830
|
continue $sm;
|
|
832
831
|
} else {
|
|
833
832
|
if (tmp0 === 1) {
|
|
834
|
-
this.
|
|
835
|
-
suspendResult = getRandomOrgCards(this.
|
|
833
|
+
this.e9_1 = 2;
|
|
834
|
+
suspendResult = getRandomOrgCards(this.x64_1, this.y64_1, this.z64_1, this.a65_1, this.b65_1, false, this);
|
|
836
835
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
837
836
|
return suspendResult;
|
|
838
837
|
}
|
|
839
838
|
continue $sm;
|
|
840
839
|
} else {
|
|
841
840
|
if (tmp0 === 2) {
|
|
842
|
-
this.
|
|
843
|
-
suspendResult = getRandomOrgCards(this.
|
|
841
|
+
this.e9_1 = 1;
|
|
842
|
+
suspendResult = getRandomOrgCards(this.x64_1, this.y64_1, this.z64_1, this.a65_1, this.b65_1, true, this);
|
|
844
843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
845
844
|
return suspendResult;
|
|
846
845
|
}
|
|
@@ -854,84 +853,84 @@
|
|
|
854
853
|
|
|
855
854
|
break;
|
|
856
855
|
case 1:
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
856
|
+
this.d65_1 = suspendResult;
|
|
857
|
+
this.e9_1 = 3;
|
|
859
858
|
continue $sm;
|
|
860
859
|
case 2:
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
860
|
+
this.d65_1 = suspendResult;
|
|
861
|
+
this.e9_1 = 3;
|
|
863
862
|
continue $sm;
|
|
864
863
|
case 3:
|
|
865
|
-
return this.
|
|
864
|
+
return this.d65_1;
|
|
866
865
|
case 4:
|
|
867
|
-
throw this.
|
|
866
|
+
throw this.h9_1;
|
|
868
867
|
}
|
|
869
868
|
} catch ($p) {
|
|
870
869
|
var e = $p;
|
|
871
|
-
if (this.
|
|
870
|
+
if (this.f9_1 === 4) {
|
|
872
871
|
throw e;
|
|
873
872
|
} else {
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
873
|
+
this.e9_1 = this.f9_1;
|
|
874
|
+
this.h9_1 = e;
|
|
876
875
|
}
|
|
877
876
|
}
|
|
878
877
|
while (true);
|
|
879
878
|
};
|
|
880
879
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
881
880
|
CoroutineImpl.call(this, resultContinuation);
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
884
|
-
this.
|
|
885
|
-
this.
|
|
886
|
-
this.
|
|
887
|
-
this.
|
|
888
|
-
}
|
|
889
|
-
protoOf($getRandomOrgCardsCOROUTINE$).
|
|
890
|
-
var suspendResult = this.
|
|
881
|
+
this.h64_1 = _this__u8e3s4;
|
|
882
|
+
this.i64_1 = leftCardIndexForEachSuit;
|
|
883
|
+
this.j64_1 = rightCardIndexForEachSuit;
|
|
884
|
+
this.k64_1 = approximateRoundsCount;
|
|
885
|
+
this.l64_1 = userData;
|
|
886
|
+
this.m64_1 = signed;
|
|
887
|
+
}
|
|
888
|
+
protoOf($getRandomOrgCardsCOROUTINE$).m9 = function () {
|
|
889
|
+
var suspendResult = this.g9_1;
|
|
891
890
|
$sm: do
|
|
892
891
|
try {
|
|
893
|
-
var tmp = this.
|
|
892
|
+
var tmp = this.e9_1;
|
|
894
893
|
switch (tmp) {
|
|
895
894
|
case 0:
|
|
896
|
-
this.
|
|
897
|
-
var cardsCount = this.
|
|
898
|
-
var tmp0_$this = this.
|
|
895
|
+
this.f9_1 = 5;
|
|
896
|
+
var cardsCount = this.h64_1.h65(this.i64_1, this.j64_1);
|
|
897
|
+
var tmp0_$this = this.h64_1.f65_1;
|
|
899
898
|
var tmp1_max = cardsCount - 1 | 0;
|
|
900
|
-
this.
|
|
901
|
-
suspendResult = tmp0_$this.
|
|
899
|
+
this.e9_1 = 1;
|
|
900
|
+
suspendResult = tmp0_$this.j5y(this.k64_1, this.l64_1, 0, tmp1_max, cardsCount, this.m64_1, VOID, this);
|
|
902
901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
903
902
|
return suspendResult;
|
|
904
903
|
}
|
|
905
904
|
|
|
906
|
-
this.
|
|
905
|
+
this.e9_1 = 2;
|
|
907
906
|
continue $sm;
|
|
908
907
|
case 1:
|
|
909
|
-
var unboxed = suspendResult.
|
|
908
|
+
var unboxed = suspendResult.hm_1;
|
|
910
909
|
suspendResult = new Result(unboxed);
|
|
911
|
-
this.
|
|
910
|
+
this.e9_1 = 2;
|
|
912
911
|
continue $sm;
|
|
913
912
|
case 2:
|
|
914
|
-
var result = suspendResult.
|
|
913
|
+
var result = suspendResult.hm_1;
|
|
915
914
|
if (_Result___get_isSuccess__impl__sndoy8(result)) {
|
|
916
915
|
var tmp_0 = this;
|
|
917
916
|
throwOnFailure(result);
|
|
918
917
|
var tmp_1 = _Result___get_value__impl__bjfvqg(result);
|
|
919
918
|
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
920
|
-
var this_0 = normalizeCards(this.
|
|
919
|
+
var this_0 = normalizeCards(this.h64_1, tmp2_cards, this.i64_1);
|
|
921
920
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
922
|
-
var _iterator__ex2g4s = this_0.
|
|
923
|
-
while (_iterator__ex2g4s.
|
|
924
|
-
var item = _iterator__ex2g4s.
|
|
925
|
-
destination.
|
|
921
|
+
var _iterator__ex2g4s = this_0.t();
|
|
922
|
+
while (_iterator__ex2g4s.u()) {
|
|
923
|
+
var item = _iterator__ex2g4s.v();
|
|
924
|
+
destination.e1(Companion_instance.c63(item));
|
|
926
925
|
}
|
|
927
|
-
tmp_0.
|
|
928
|
-
this.
|
|
926
|
+
tmp_0.n64_1 = destination;
|
|
927
|
+
this.e9_1 = 4;
|
|
929
928
|
continue $sm;
|
|
930
929
|
} else {
|
|
931
930
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
934
|
-
suspendResult = this.
|
|
931
|
+
this.h64_1.g65_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
932
|
+
this.e9_1 = 3;
|
|
933
|
+
suspendResult = this.h64_1.t63(this.i64_1, this.j64_1, this.k64_1, this.l64_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
935
934
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
936
935
|
return suspendResult;
|
|
937
936
|
}
|
|
@@ -939,51 +938,51 @@
|
|
|
939
938
|
}
|
|
940
939
|
|
|
941
940
|
case 3:
|
|
942
|
-
this.
|
|
943
|
-
this.
|
|
941
|
+
this.n64_1 = suspendResult;
|
|
942
|
+
this.e9_1 = 4;
|
|
944
943
|
continue $sm;
|
|
945
944
|
case 4:
|
|
946
|
-
return this.
|
|
945
|
+
return this.n64_1;
|
|
947
946
|
case 5:
|
|
948
|
-
throw this.
|
|
947
|
+
throw this.h9_1;
|
|
949
948
|
}
|
|
950
949
|
} catch ($p) {
|
|
951
950
|
var e = $p;
|
|
952
|
-
if (this.
|
|
951
|
+
if (this.f9_1 === 5) {
|
|
953
952
|
throw e;
|
|
954
953
|
} else {
|
|
955
|
-
this.
|
|
956
|
-
this.
|
|
954
|
+
this.e9_1 = this.f9_1;
|
|
955
|
+
this.h9_1 = e;
|
|
957
956
|
}
|
|
958
957
|
}
|
|
959
958
|
while (true);
|
|
960
959
|
};
|
|
961
960
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
961
|
+
this.e65_1 = random;
|
|
962
|
+
this.f65_1 = randomPoolProvider;
|
|
963
|
+
this.g65_1 = logger;
|
|
965
964
|
}
|
|
966
|
-
protoOf(CardsDealerProviderImpl).
|
|
965
|
+
protoOf(CardsDealerProviderImpl).s63 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
967
966
|
// Inline function 'kotlin.collections.flatMap' call
|
|
968
967
|
var tmp0 = get_entries();
|
|
969
968
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
970
969
|
var destination = ArrayList_init_$Create$();
|
|
971
|
-
var _iterator__ex2g4s = tmp0.
|
|
972
|
-
while (_iterator__ex2g4s.
|
|
973
|
-
var element = _iterator__ex2g4s.
|
|
970
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
971
|
+
while (_iterator__ex2g4s.u()) {
|
|
972
|
+
var element = _iterator__ex2g4s.v();
|
|
974
973
|
// Inline function 'kotlin.collections.map' call
|
|
975
|
-
var this_0 = this.
|
|
974
|
+
var this_0 = this.i65(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
976
975
|
// Inline function 'kotlin.collections.mapTo' call
|
|
977
976
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
978
|
-
var inductionVariable = this_0.
|
|
979
|
-
var last = this_0.
|
|
977
|
+
var inductionVariable = this_0.r1_1;
|
|
978
|
+
var last = this_0.s1_1;
|
|
980
979
|
if (inductionVariable <= last)
|
|
981
980
|
do {
|
|
982
981
|
var item = inductionVariable;
|
|
983
982
|
inductionVariable = inductionVariable + 1 | 0;
|
|
984
983
|
var it = item;
|
|
985
|
-
var tmp$ret$0 = Companion_instance.
|
|
986
|
-
destination_0.
|
|
984
|
+
var tmp$ret$0 = Companion_instance.a63(element, it);
|
|
985
|
+
destination_0.e1(tmp$ret$0);
|
|
987
986
|
}
|
|
988
987
|
while (!(item === last));
|
|
989
988
|
var list = destination_0;
|
|
@@ -991,38 +990,38 @@
|
|
|
991
990
|
}
|
|
992
991
|
return destination;
|
|
993
992
|
};
|
|
994
|
-
protoOf(CardsDealerProviderImpl).
|
|
993
|
+
protoOf(CardsDealerProviderImpl).i65 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
995
994
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
996
995
|
};
|
|
997
|
-
protoOf(CardsDealerProviderImpl).
|
|
996
|
+
protoOf(CardsDealerProviderImpl).h65 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
998
997
|
// Inline function 'kotlin.collections.sumOf' call
|
|
999
998
|
var sum = 0;
|
|
1000
|
-
var _iterator__ex2g4s = get_entries().
|
|
1001
|
-
while (_iterator__ex2g4s.
|
|
1002
|
-
var element = _iterator__ex2g4s.
|
|
999
|
+
var _iterator__ex2g4s = get_entries().t();
|
|
1000
|
+
while (_iterator__ex2g4s.u()) {
|
|
1001
|
+
var element = _iterator__ex2g4s.v();
|
|
1003
1002
|
var tmp = sum;
|
|
1004
|
-
sum = tmp + count(this.
|
|
1003
|
+
sum = tmp + count(this.i65(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
1005
1004
|
}
|
|
1006
1005
|
return sum;
|
|
1007
1006
|
};
|
|
1008
|
-
protoOf(CardsDealerProviderImpl).
|
|
1007
|
+
protoOf(CardsDealerProviderImpl).t63 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1009
1008
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
1010
|
-
tmp.
|
|
1011
|
-
tmp.
|
|
1012
|
-
return tmp.
|
|
1009
|
+
tmp.g9_1 = Unit_instance;
|
|
1010
|
+
tmp.h9_1 = null;
|
|
1011
|
+
return tmp.m9();
|
|
1013
1012
|
};
|
|
1014
|
-
protoOf(CardsDealerProviderImpl).
|
|
1013
|
+
protoOf(CardsDealerProviderImpl).u63 = function (count, cards) {
|
|
1015
1014
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1016
1015
|
// Inline function 'kotlin.apply' call
|
|
1017
1016
|
var this_0 = ArrayList_init_$Create$();
|
|
1018
1017
|
$l$block: {
|
|
1019
|
-
var _iterator__ex2g4s = cards.
|
|
1020
|
-
$l$loop_0: while (_iterator__ex2g4s.
|
|
1021
|
-
var card = _iterator__ex2g4s.
|
|
1022
|
-
if (this_0.
|
|
1018
|
+
var _iterator__ex2g4s = cards.t();
|
|
1019
|
+
$l$loop_0: while (_iterator__ex2g4s.u()) {
|
|
1020
|
+
var card = _iterator__ex2g4s.v();
|
|
1021
|
+
if (this_0.g1() === count) {
|
|
1023
1022
|
break $l$block;
|
|
1024
1023
|
}
|
|
1025
|
-
var hasSimilarCard = this_0.
|
|
1024
|
+
var hasSimilarCard = this_0.m2(card);
|
|
1026
1025
|
if (hasSimilarCard) {
|
|
1027
1026
|
continue $l$loop_0;
|
|
1028
1027
|
}
|
|
@@ -1039,10 +1038,10 @@
|
|
|
1039
1038
|
tmp$ret$2 = false;
|
|
1040
1039
|
break $l$block_1;
|
|
1041
1040
|
}
|
|
1042
|
-
var _iterator__ex2g4s_0 = this_0.
|
|
1043
|
-
while (_iterator__ex2g4s_0.
|
|
1044
|
-
var element = _iterator__ex2g4s_0.
|
|
1045
|
-
if (element.
|
|
1041
|
+
var _iterator__ex2g4s_0 = this_0.t();
|
|
1042
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1043
|
+
var element = _iterator__ex2g4s_0.v();
|
|
1044
|
+
if (element.z62() === card.z62()) {
|
|
1046
1045
|
tmp$ret$2 = true;
|
|
1047
1046
|
break $l$block_1;
|
|
1048
1047
|
}
|
|
@@ -1052,12 +1051,12 @@
|
|
|
1052
1051
|
if (tmp$ret$2) {
|
|
1053
1052
|
continue $l$loop_0;
|
|
1054
1053
|
}
|
|
1055
|
-
this_0.
|
|
1054
|
+
this_0.e1(card);
|
|
1056
1055
|
}
|
|
1057
1056
|
}
|
|
1058
1057
|
return this_0;
|
|
1059
1058
|
};
|
|
1060
|
-
protoOf(CardsDealerProviderImpl).
|
|
1059
|
+
protoOf(CardsDealerProviderImpl).v63 = function (cards, times) {
|
|
1061
1060
|
// Inline function 'kotlin.let' call
|
|
1062
1061
|
var shuffled = toMutableList(cards);
|
|
1063
1062
|
var inductionVariable = 0;
|
|
@@ -1065,69 +1064,69 @@
|
|
|
1065
1064
|
do {
|
|
1066
1065
|
var i = inductionVariable;
|
|
1067
1066
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1068
|
-
shuffled = this.
|
|
1067
|
+
shuffled = this.e65_1.p62(shuffled);
|
|
1069
1068
|
}
|
|
1070
1069
|
while (inductionVariable < times);
|
|
1071
1070
|
return shuffled;
|
|
1072
1071
|
};
|
|
1073
|
-
protoOf(CardsDealerProviderImpl).
|
|
1074
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1072
|
+
protoOf(CardsDealerProviderImpl).x63 = function (cards, times) {
|
|
1073
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.e65_1), times, this.e65_1));
|
|
1075
1074
|
};
|
|
1076
1075
|
function Companion_3() {
|
|
1077
1076
|
}
|
|
1078
|
-
protoOf(Companion_3).
|
|
1077
|
+
protoOf(Companion_3).j65 = function () {
|
|
1079
1078
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1080
1079
|
// Inline function 'kotlin.apply' call
|
|
1081
1080
|
var this_0 = ArrayList_init_$Create$();
|
|
1082
|
-
this_0.
|
|
1083
|
-
this_0.
|
|
1084
|
-
this_0.
|
|
1085
|
-
this_0.
|
|
1086
|
-
this_0.
|
|
1081
|
+
this_0.i1(listOf([Companion_instance.b63(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b63(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.b63(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b63(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1082
|
+
this_0.i1(listOf([Companion_instance.b63(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.b63(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.b63(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.b63(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1083
|
+
this_0.i1(listOf([Companion_instance.b63(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b63(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1084
|
+
this_0.i1(listOf([Companion_instance.b63(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.b63(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1085
|
+
this_0.i1(listOf([Companion_instance.b63(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.b63(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.b63(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.b63(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.b63(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1087
1086
|
return this_0;
|
|
1088
1087
|
};
|
|
1089
|
-
protoOf(Companion_3).
|
|
1090
|
-
return listOf([Companion_instance.
|
|
1088
|
+
protoOf(Companion_3).k65 = function () {
|
|
1089
|
+
return listOf([Companion_instance.b63(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b63(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b63(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1091
1090
|
};
|
|
1092
1091
|
var Companion_instance_3;
|
|
1093
1092
|
function Companion_getInstance_3() {
|
|
1094
1093
|
return Companion_instance_3;
|
|
1095
1094
|
}
|
|
1096
1095
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1097
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1098
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1099
|
-
this.
|
|
1100
|
-
this.
|
|
1096
|
+
cards = cards === VOID ? Companion_instance_3.j65() : cards;
|
|
1097
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.k65() : cardsForLot;
|
|
1098
|
+
this.l65_1 = cards;
|
|
1099
|
+
this.m65_1 = cardsForLot;
|
|
1101
1100
|
}
|
|
1102
|
-
protoOf(FakeCardsDealerProvider).
|
|
1103
|
-
return this.
|
|
1101
|
+
protoOf(FakeCardsDealerProvider).s63 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1102
|
+
return this.l65_1;
|
|
1104
1103
|
};
|
|
1105
|
-
protoOf(FakeCardsDealerProvider).
|
|
1106
|
-
return this.
|
|
1104
|
+
protoOf(FakeCardsDealerProvider).t63 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1105
|
+
return this.l65_1;
|
|
1107
1106
|
};
|
|
1108
|
-
protoOf(FakeCardsDealerProvider).
|
|
1109
|
-
return this.
|
|
1107
|
+
protoOf(FakeCardsDealerProvider).u63 = function (count, cards) {
|
|
1108
|
+
return this.m65_1;
|
|
1110
1109
|
};
|
|
1111
|
-
protoOf(FakeCardsDealerProvider).
|
|
1110
|
+
protoOf(FakeCardsDealerProvider).v63 = function (cards, times) {
|
|
1112
1111
|
return cards;
|
|
1113
1112
|
};
|
|
1114
|
-
protoOf(FakeCardsDealerProvider).
|
|
1113
|
+
protoOf(FakeCardsDealerProvider).x63 = function (cards, times) {
|
|
1115
1114
|
return cards;
|
|
1116
1115
|
};
|
|
1117
1116
|
function CombinationsCheckerProvider() {
|
|
1118
1117
|
}
|
|
1119
1118
|
function createCombination($this, cards, supportedCombinations) {
|
|
1120
|
-
var size = cards.
|
|
1121
|
-
if (supportedCombinations.
|
|
1119
|
+
var size = cards.g1();
|
|
1120
|
+
if (supportedCombinations.m2(size)) {
|
|
1122
1121
|
return cards;
|
|
1123
1122
|
}
|
|
1124
1123
|
var fromLongestCombinations = asReversed(sorted(supportedCombinations));
|
|
1125
1124
|
var tmp$ret$1;
|
|
1126
1125
|
$l$block: {
|
|
1127
1126
|
// Inline function 'kotlin.collections.first' call
|
|
1128
|
-
var _iterator__ex2g4s = fromLongestCombinations.
|
|
1129
|
-
while (_iterator__ex2g4s.
|
|
1130
|
-
var element = _iterator__ex2g4s.
|
|
1127
|
+
var _iterator__ex2g4s = fromLongestCombinations.t();
|
|
1128
|
+
while (_iterator__ex2g4s.u()) {
|
|
1129
|
+
var element = _iterator__ex2g4s.v();
|
|
1131
1130
|
if (element <= size) {
|
|
1132
1131
|
tmp$ret$1 = element;
|
|
1133
1132
|
break $l$block;
|
|
@@ -1139,23 +1138,23 @@
|
|
|
1139
1138
|
return takeLast(cards, longestCombinationSupport);
|
|
1140
1139
|
}
|
|
1141
1140
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1142
|
-
this.
|
|
1141
|
+
this.s65_1 = function_0;
|
|
1143
1142
|
}
|
|
1144
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1145
|
-
return this.
|
|
1143
|
+
protoOf(sam$kotlin_Comparator$0).dd = function (a, b) {
|
|
1144
|
+
return this.s65_1(a, b);
|
|
1146
1145
|
};
|
|
1147
1146
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1148
|
-
return this.
|
|
1147
|
+
return this.dd(a, b);
|
|
1149
1148
|
};
|
|
1150
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1151
|
-
return this.
|
|
1149
|
+
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
1150
|
+
return this.s65_1;
|
|
1152
1151
|
};
|
|
1153
1152
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1154
1153
|
var tmp;
|
|
1155
1154
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1156
1155
|
var tmp_0;
|
|
1157
1156
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1158
|
-
tmp_0 = equals(this.
|
|
1157
|
+
tmp_0 = equals(this.s3(), other.s3());
|
|
1159
1158
|
} else {
|
|
1160
1159
|
tmp_0 = false;
|
|
1161
1160
|
}
|
|
@@ -1166,28 +1165,28 @@
|
|
|
1166
1165
|
return tmp;
|
|
1167
1166
|
};
|
|
1168
1167
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1169
|
-
return hashCode(this.
|
|
1168
|
+
return hashCode(this.s3());
|
|
1170
1169
|
};
|
|
1171
1170
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1172
1171
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1173
|
-
var tmp = first_0(a).
|
|
1174
|
-
var tmp$ret$1 = first_0(b).
|
|
1172
|
+
var tmp = first_0(a).v62_1;
|
|
1173
|
+
var tmp$ret$1 = first_0(b).v62_1;
|
|
1175
1174
|
return compareValues(tmp, tmp$ret$1);
|
|
1176
1175
|
}
|
|
1177
1176
|
function CombinationsCheckerProviderImpl() {
|
|
1178
1177
|
}
|
|
1179
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1178
|
+
protoOf(CombinationsCheckerProviderImpl).n65 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1180
1179
|
// Inline function 'kotlin.apply' call
|
|
1181
1180
|
var this_0 = toMutableList(cards);
|
|
1182
1181
|
sortWith(this_0, CardIndexComparator_instance);
|
|
1183
1182
|
// Inline function 'kotlin.collections.filter' call
|
|
1184
1183
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1185
1184
|
var destination = ArrayList_init_$Create$();
|
|
1186
|
-
var _iterator__ex2g4s = this_0.
|
|
1187
|
-
while (_iterator__ex2g4s.
|
|
1188
|
-
var element = _iterator__ex2g4s.
|
|
1189
|
-
if (element.
|
|
1190
|
-
destination.
|
|
1185
|
+
var _iterator__ex2g4s = this_0.t();
|
|
1186
|
+
while (_iterator__ex2g4s.u()) {
|
|
1187
|
+
var element = _iterator__ex2g4s.v();
|
|
1188
|
+
if (element.x62()) {
|
|
1189
|
+
destination.e1(element);
|
|
1191
1190
|
}
|
|
1192
1191
|
}
|
|
1193
1192
|
var sortedByIndexCards = toList(destination);
|
|
@@ -1196,110 +1195,110 @@
|
|
|
1196
1195
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1197
1196
|
var combinationCards = ArrayList_init_$Create$();
|
|
1198
1197
|
var inductionVariable = 0;
|
|
1199
|
-
var last = sortedByIndexCards.
|
|
1198
|
+
var last = sortedByIndexCards.g1() - 1 | 0;
|
|
1200
1199
|
if (inductionVariable <= last)
|
|
1201
1200
|
do {
|
|
1202
1201
|
var i = inductionVariable;
|
|
1203
1202
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1204
1203
|
var previousCard = lastOrNull(combinationCards);
|
|
1205
|
-
var currentCard = sortedByIndexCards.
|
|
1206
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1207
|
-
var passedCardNamesCheck = includeCardNames == null || includeCardNames.
|
|
1208
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1204
|
+
var currentCard = sortedByIndexCards.h1(i);
|
|
1205
|
+
var isNextInRow = !(previousCard == null) && currentCard.v62_1 === (previousCard.v62_1 + 1 | 0) && currentCard.y62().equals(previousCard.y62());
|
|
1206
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.m2(currentCard.m());
|
|
1207
|
+
var passedSuitCheck = suit == null || currentCard.y62().equals(suit);
|
|
1209
1208
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1210
|
-
combinationCards.
|
|
1209
|
+
combinationCards.e1(currentCard);
|
|
1211
1210
|
} else {
|
|
1212
|
-
if (combinationCards.
|
|
1213
|
-
combinations.
|
|
1211
|
+
if (combinationCards.g1() > (checkFromIndex - 1 | 0)) {
|
|
1212
|
+
combinations.i1(this.r65(toMutableList(combinationCards), supportedCombinations));
|
|
1214
1213
|
}
|
|
1215
|
-
combinationCards.
|
|
1214
|
+
combinationCards.c3();
|
|
1216
1215
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
1217
|
-
combinationCards.
|
|
1216
|
+
combinationCards.e1(currentCard);
|
|
1218
1217
|
}
|
|
1219
1218
|
}
|
|
1220
1219
|
}
|
|
1221
1220
|
while (inductionVariable <= last);
|
|
1222
|
-
if (combinationCards.
|
|
1223
|
-
combinations.
|
|
1221
|
+
if (combinationCards.g1() > (checkFromIndex - 1 | 0)) {
|
|
1222
|
+
combinations.i1(this.r65(toMutableList(combinationCards), supportedCombinations));
|
|
1224
1223
|
}
|
|
1225
1224
|
return combinations;
|
|
1226
1225
|
};
|
|
1227
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1226
|
+
protoOf(CombinationsCheckerProviderImpl).p65 = function (cards, cardsCount, includeCardNames) {
|
|
1228
1227
|
// Inline function 'kotlin.apply' call
|
|
1229
1228
|
var this_0 = toMutableList(cards);
|
|
1230
1229
|
sortWith(this_0, CardIndexComparator_instance);
|
|
1231
1230
|
// Inline function 'kotlin.collections.filter' call
|
|
1232
1231
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1233
1232
|
var destination = ArrayList_init_$Create$();
|
|
1234
|
-
var _iterator__ex2g4s = this_0.
|
|
1235
|
-
while (_iterator__ex2g4s.
|
|
1236
|
-
var element = _iterator__ex2g4s.
|
|
1237
|
-
if (element.
|
|
1238
|
-
destination.
|
|
1233
|
+
var _iterator__ex2g4s = this_0.t();
|
|
1234
|
+
while (_iterator__ex2g4s.u()) {
|
|
1235
|
+
var element = _iterator__ex2g4s.v();
|
|
1236
|
+
if (element.x62()) {
|
|
1237
|
+
destination.e1(element);
|
|
1239
1238
|
}
|
|
1240
1239
|
}
|
|
1241
1240
|
// Inline function 'kotlin.collections.filter' call
|
|
1242
1241
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1243
1242
|
var destination_0 = ArrayList_init_$Create$();
|
|
1244
|
-
var _iterator__ex2g4s_0 = destination.
|
|
1245
|
-
while (_iterator__ex2g4s_0.
|
|
1246
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1247
|
-
if (includeCardNames == null || includeCardNames.
|
|
1248
|
-
destination_0.
|
|
1243
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
1244
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1245
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
1246
|
+
if (includeCardNames == null || includeCardNames.m2(element_0.m())) {
|
|
1247
|
+
destination_0.e1(element_0);
|
|
1249
1248
|
}
|
|
1250
1249
|
}
|
|
1251
1250
|
var sortedByNumberCards = toList(destination_0);
|
|
1252
1251
|
// Inline function 'kotlin.collections.groupBy' call
|
|
1253
1252
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
1254
1253
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
1255
|
-
var _iterator__ex2g4s_1 = sortedByNumberCards.
|
|
1256
|
-
while (_iterator__ex2g4s_1.
|
|
1257
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
1258
|
-
var key = element_1.
|
|
1254
|
+
var _iterator__ex2g4s_1 = sortedByNumberCards.t();
|
|
1255
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
1256
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
1257
|
+
var key = element_1.z62();
|
|
1259
1258
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1260
|
-
var value = destination_1.
|
|
1259
|
+
var value = destination_1.w2(key);
|
|
1261
1260
|
var tmp;
|
|
1262
1261
|
if (value == null) {
|
|
1263
1262
|
var answer = ArrayList_init_$Create$();
|
|
1264
|
-
destination_1.
|
|
1263
|
+
destination_1.z2(key, answer);
|
|
1265
1264
|
tmp = answer;
|
|
1266
1265
|
} else {
|
|
1267
1266
|
tmp = value;
|
|
1268
1267
|
}
|
|
1269
1268
|
var list = tmp;
|
|
1270
|
-
list.
|
|
1269
|
+
list.e1(element_1);
|
|
1271
1270
|
}
|
|
1272
1271
|
// Inline function 'kotlin.collections.filter' call
|
|
1273
1272
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1274
1273
|
var destination_2 = LinkedHashMap_init_$Create$();
|
|
1275
1274
|
// Inline function 'kotlin.collections.iterator' call
|
|
1276
|
-
var _iterator__ex2g4s_2 = destination_1.
|
|
1277
|
-
while (_iterator__ex2g4s_2.
|
|
1278
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
1279
|
-
if (element_2.
|
|
1280
|
-
destination_2.
|
|
1275
|
+
var _iterator__ex2g4s_2 = destination_1.m1().t();
|
|
1276
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
1277
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
1278
|
+
if (element_2.o1().g1() >= cardsCount) {
|
|
1279
|
+
destination_2.z2(element_2.n1(), element_2.o1());
|
|
1281
1280
|
}
|
|
1282
1281
|
}
|
|
1283
|
-
var combinations = destination_2.
|
|
1282
|
+
var combinations = destination_2.y2();
|
|
1284
1283
|
// Inline function 'kotlin.collections.map' call
|
|
1285
1284
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1286
1285
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
1287
|
-
var _iterator__ex2g4s_3 = combinations.
|
|
1288
|
-
while (_iterator__ex2g4s_3.
|
|
1289
|
-
var item = _iterator__ex2g4s_3.
|
|
1286
|
+
var _iterator__ex2g4s_3 = combinations.t();
|
|
1287
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
1288
|
+
var item = _iterator__ex2g4s_3.v();
|
|
1290
1289
|
var tmp$ret$17 = sortedWith(item, CardIndexComparator_instance);
|
|
1291
|
-
destination_3.
|
|
1290
|
+
destination_3.e1(tmp$ret$17);
|
|
1292
1291
|
}
|
|
1293
1292
|
return destination_3;
|
|
1294
1293
|
};
|
|
1295
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1294
|
+
protoOf(CombinationsCheckerProviderImpl).r65 = function (cards, supportedCombinations) {
|
|
1296
1295
|
// Inline function 'kotlin.collections.minOf' call
|
|
1297
|
-
var iterator = supportedCombinations.
|
|
1298
|
-
if (!iterator.
|
|
1296
|
+
var iterator = supportedCombinations.t();
|
|
1297
|
+
if (!iterator.u())
|
|
1299
1298
|
throw NoSuchElementException_init_$Create$_0();
|
|
1300
|
-
var minValue = iterator.
|
|
1301
|
-
while (iterator.
|
|
1302
|
-
var v = iterator.
|
|
1299
|
+
var minValue = iterator.v();
|
|
1300
|
+
while (iterator.u()) {
|
|
1301
|
+
var v = iterator.v();
|
|
1303
1302
|
if (compareTo(minValue, v) > 0) {
|
|
1304
1303
|
minValue = v;
|
|
1305
1304
|
}
|
|
@@ -1308,10 +1307,10 @@
|
|
|
1308
1307
|
var cardsToCheck = toMutableList(cards);
|
|
1309
1308
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1310
1309
|
var combinations = ArrayList_init_$Create$();
|
|
1311
|
-
while (cardsToCheck.
|
|
1310
|
+
while (cardsToCheck.g1() >= shortestCombinationSupport) {
|
|
1312
1311
|
var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
|
|
1313
|
-
combinations.
|
|
1314
|
-
cardsToCheck.
|
|
1312
|
+
combinations.e1(toList(combinationCards));
|
|
1313
|
+
cardsToCheck.f3(combinationCards);
|
|
1315
1314
|
}
|
|
1316
1315
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
1317
1316
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
@@ -1322,74 +1321,74 @@
|
|
|
1322
1321
|
function DealerReducer() {
|
|
1323
1322
|
}
|
|
1324
1323
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1324
|
+
this.w65_1 = logger;
|
|
1325
|
+
this.x65_1 = enableLogs;
|
|
1327
1326
|
}
|
|
1328
|
-
protoOf(DealerReducerImpl).
|
|
1327
|
+
protoOf(DealerReducerImpl).t65 = function (cards, cardsToRemove) {
|
|
1329
1328
|
var list = cards;
|
|
1330
|
-
var _iterator__ex2g4s = cardsToRemove.
|
|
1331
|
-
while (_iterator__ex2g4s.
|
|
1332
|
-
var gameCard = _iterator__ex2g4s.
|
|
1333
|
-
list = this.
|
|
1329
|
+
var _iterator__ex2g4s = cardsToRemove.t();
|
|
1330
|
+
while (_iterator__ex2g4s.u()) {
|
|
1331
|
+
var gameCard = _iterator__ex2g4s.v();
|
|
1332
|
+
list = this.u65(list, gameCard);
|
|
1334
1333
|
}
|
|
1335
1334
|
return list;
|
|
1336
1335
|
};
|
|
1337
|
-
protoOf(DealerReducerImpl).
|
|
1336
|
+
protoOf(DealerReducerImpl).u65 = function (cards, cardToRemove) {
|
|
1338
1337
|
var tmp;
|
|
1339
|
-
if (!cardToRemove.
|
|
1340
|
-
if (this.
|
|
1341
|
-
this.
|
|
1338
|
+
if (!cardToRemove.e63() && cards.m2(cardToRemove)) {
|
|
1339
|
+
if (this.x65_1) {
|
|
1340
|
+
this.w65_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.g1() - 1 | 0));
|
|
1342
1341
|
}
|
|
1343
1342
|
tmp = minus(cards, cardToRemove);
|
|
1344
1343
|
} else {
|
|
1345
|
-
if (this.
|
|
1346
|
-
this.
|
|
1344
|
+
if (this.x65_1) {
|
|
1345
|
+
this.w65_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.g1() - 1 | 0));
|
|
1347
1346
|
}
|
|
1348
1347
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1349
1348
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1350
1349
|
var destination = ArrayList_init_$Create$();
|
|
1351
|
-
var _iterator__ex2g4s = cards.
|
|
1352
|
-
while (_iterator__ex2g4s.
|
|
1353
|
-
var element = _iterator__ex2g4s.
|
|
1354
|
-
if (!element.
|
|
1355
|
-
destination.
|
|
1350
|
+
var _iterator__ex2g4s = cards.t();
|
|
1351
|
+
while (_iterator__ex2g4s.u()) {
|
|
1352
|
+
var element = _iterator__ex2g4s.v();
|
|
1353
|
+
if (!element.e63()) {
|
|
1354
|
+
destination.e1(element);
|
|
1356
1355
|
}
|
|
1357
1356
|
}
|
|
1358
1357
|
var notHiddenCards = destination;
|
|
1359
1358
|
// Inline function 'kotlin.collections.filter' call
|
|
1360
1359
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1361
1360
|
var destination_0 = ArrayList_init_$Create$();
|
|
1362
|
-
var _iterator__ex2g4s_0 = cards.
|
|
1363
|
-
while (_iterator__ex2g4s_0.
|
|
1364
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1365
|
-
if (element_0.
|
|
1366
|
-
destination_0.
|
|
1361
|
+
var _iterator__ex2g4s_0 = cards.t();
|
|
1362
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1363
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
1364
|
+
if (element_0.e63()) {
|
|
1365
|
+
destination_0.e1(element_0);
|
|
1367
1366
|
}
|
|
1368
1367
|
}
|
|
1369
1368
|
var hiddenCards = destination_0;
|
|
1370
1369
|
if (hiddenCards.r()) {
|
|
1371
|
-
this.
|
|
1370
|
+
this.w65_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1372
1371
|
}
|
|
1373
1372
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1374
1373
|
}
|
|
1375
1374
|
return tmp;
|
|
1376
1375
|
};
|
|
1377
|
-
protoOf(DealerReducerImpl).
|
|
1378
|
-
if (this.
|
|
1379
|
-
this.
|
|
1376
|
+
protoOf(DealerReducerImpl).v65 = function (cards, cardToAdd) {
|
|
1377
|
+
if (this.x65_1) {
|
|
1378
|
+
this.w65_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.g1() + 1 | 0));
|
|
1380
1379
|
}
|
|
1381
|
-
if (cards.
|
|
1382
|
-
this.
|
|
1380
|
+
if (cards.m2(cardToAdd)) {
|
|
1381
|
+
this.w65_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1383
1382
|
}
|
|
1384
1383
|
return plus_0(cards, cardToAdd);
|
|
1385
1384
|
};
|
|
1386
1385
|
//region block: post-declaration
|
|
1387
|
-
protoOf(CardsDealerProviderImpl).
|
|
1388
|
-
protoOf(CardsDealerProviderImpl).
|
|
1389
|
-
protoOf(FakeCardsDealerProvider).
|
|
1390
|
-
protoOf(FakeCardsDealerProvider).
|
|
1391
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1392
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1386
|
+
protoOf(CardsDealerProviderImpl).w63 = standardShuffledCards$default;
|
|
1387
|
+
protoOf(CardsDealerProviderImpl).y63 = realLifeShuffledCards$default;
|
|
1388
|
+
protoOf(FakeCardsDealerProvider).w63 = standardShuffledCards$default;
|
|
1389
|
+
protoOf(FakeCardsDealerProvider).y63 = realLifeShuffledCards$default;
|
|
1390
|
+
protoOf(CombinationsCheckerProviderImpl).o65 = findCardsInRowCombinations$default;
|
|
1391
|
+
protoOf(CombinationsCheckerProviderImpl).q65 = findSameCardsNumberCombinations$default;
|
|
1393
1392
|
//endregion
|
|
1394
1393
|
//region block: init
|
|
1395
1394
|
CoreConfig_instance = new CoreConfig();
|