client_plugin_logic_deb 1.8.450 → 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 +94 -94
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +828 -788
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1927 -1927
- 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-client_plugin.d.ts +784 -698
- package/Logic_Debertz-client_plugin.js +5091 -5091
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2256 -2270
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +21274 -21284
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +13527 -13574
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +2260 -2273
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +5716 -4843
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +3652 -3603
- 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 +1699 -438
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2256 -2255
- 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 +1630 -1630
- 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 +6643 -3939
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +2627 -893
- 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 +1268 -1128
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2624 -5540
- 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 +333 -339
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +143 -153
- 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 +376 -377
- 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 +1181 -1207
- 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.$_$.be;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.gd;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.sc;
|
|
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.$_$.ni;
|
|
27
|
+
var Comparator = kotlin_kotlin.$_$.zh;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ad;
|
|
29
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
30
|
+
var Unit_instance = kotlin_kotlin.$_$.i5;
|
|
31
|
+
var take = kotlin_kotlin.$_$.r9;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.w9;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.q9;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.mj;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.bd;
|
|
36
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.ci;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.fb;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.kj;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
44
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
45
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ed;
|
|
44
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.m6;
|
|
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.$_$.db;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.na;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.cd;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.li;
|
|
51
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.x2;
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.qj;
|
|
53
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.a3;
|
|
54
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.z2;
|
|
55
|
+
var addAll = kotlin_kotlin.$_$.a6;
|
|
56
|
+
var until = kotlin_kotlin.$_$.qe;
|
|
57
|
+
var count = kotlin_kotlin.$_$.e7;
|
|
58
|
+
var Collection = kotlin_kotlin.$_$.k5;
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.pd;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.ca;
|
|
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.$_$.n8;
|
|
64
|
+
var first = kotlin_kotlin.$_$.s7;
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.o9;
|
|
66
|
+
var asReversed = kotlin_kotlin.$_$.e6;
|
|
67
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
68
|
+
var equals = kotlin_kotlin.$_$.tc;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.gc;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.zc;
|
|
71
|
+
var first_0 = kotlin_kotlin.$_$.r7;
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.la;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.m9;
|
|
74
|
+
var lastOrNull = kotlin_kotlin.$_$.h8;
|
|
75
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.n9;
|
|
77
|
+
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.v1;
|
|
78
|
+
var compareTo = kotlin_kotlin.$_$.rc;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.ee;
|
|
80
|
+
var dropLast = kotlin_kotlin.$_$.g7;
|
|
81
|
+
var plus = kotlin_kotlin.$_$.z8;
|
|
82
|
+
var minus = kotlin_kotlin.$_$.s8;
|
|
83
|
+
var plus_0 = kotlin_kotlin.$_$.a9;
|
|
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.q6l(cards, times) : $super.q6l.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.s6l(cards, times) : $super.s6l.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.i6n(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.i6n.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.k6n(cards, cardsCount, includeCardNames) : $super.k6n.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).g46 = function () {
|
|
133
133
|
return this.version;
|
|
134
134
|
};
|
|
135
135
|
var CoreConfig_instance;
|
|
@@ -137,44 +137,44 @@
|
|
|
137
137
|
return CoreConfig_instance;
|
|
138
138
|
}
|
|
139
139
|
function CardSuitSortingComparator(suit) {
|
|
140
|
-
this.
|
|
140
|
+
this.p6k_1 = suit;
|
|
141
141
|
}
|
|
142
|
-
protoOf(CardSuitSortingComparator).
|
|
143
|
-
if (!a.
|
|
142
|
+
protoOf(CardSuitSortingComparator).q6k = function (a, b) {
|
|
143
|
+
if (!a.s6k() || !b.s6k()) {
|
|
144
144
|
return 0;
|
|
145
145
|
}
|
|
146
|
-
var suitIndexL = this.
|
|
147
|
-
var suitIndexR = this.
|
|
148
|
-
var sortedNumberL = imul(suitIndexL, 13) + a.
|
|
149
|
-
var sortedNumberR = imul(suitIndexR, 13) + b.
|
|
146
|
+
var suitIndexL = this.p6k_1.o2(a.t6k());
|
|
147
|
+
var suitIndexR = this.p6k_1.o2(b.t6k());
|
|
148
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.u6k() | 0;
|
|
149
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.u6k() | 0;
|
|
150
150
|
return sortedNumberL - sortedNumberR | 0;
|
|
151
151
|
};
|
|
152
152
|
protoOf(CardSuitSortingComparator).compare = function (a, b) {
|
|
153
153
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
154
|
-
return this.
|
|
154
|
+
return this.q6k(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
155
155
|
};
|
|
156
156
|
function filterByCardName(_this__u8e3s4, name) {
|
|
157
157
|
// Inline function 'kotlin.collections.filter' call
|
|
158
158
|
var predicate = byCardNamePredicate(name.slice());
|
|
159
159
|
// Inline function 'kotlin.collections.filterTo' call
|
|
160
160
|
var destination = ArrayList_init_$Create$();
|
|
161
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
162
|
-
while (_iterator__ex2g4s.
|
|
163
|
-
var element = _iterator__ex2g4s.
|
|
161
|
+
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
162
|
+
while (_iterator__ex2g4s.u()) {
|
|
163
|
+
var element = _iterator__ex2g4s.v();
|
|
164
164
|
if (predicate(element)) {
|
|
165
|
-
destination.
|
|
165
|
+
destination.e1(element);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
return destination;
|
|
169
169
|
}
|
|
170
170
|
function CardNumberComparator() {
|
|
171
171
|
}
|
|
172
|
-
protoOf(CardNumberComparator).
|
|
173
|
-
return b.
|
|
172
|
+
protoOf(CardNumberComparator).q6k = function (a, b) {
|
|
173
|
+
return b.u6k() - a.u6k() | 0;
|
|
174
174
|
};
|
|
175
175
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
176
176
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
177
|
-
return this.
|
|
177
|
+
return this.q6k(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
178
178
|
};
|
|
179
179
|
var CardNumberComparator_instance;
|
|
180
180
|
function CardNumberComparator_getInstance() {
|
|
@@ -182,22 +182,22 @@
|
|
|
182
182
|
}
|
|
183
183
|
function distributeCardsBottom(_this__u8e3s4, count) {
|
|
184
184
|
var cardsToDeal = toList(take(_this__u8e3s4, count));
|
|
185
|
-
_this__u8e3s4.
|
|
185
|
+
_this__u8e3s4.a3(cardsToDeal);
|
|
186
186
|
return cardsToDeal;
|
|
187
187
|
}
|
|
188
188
|
function distributeCardsTop(_this__u8e3s4, count) {
|
|
189
189
|
var cardsToDeal = toList(takeLast(_this__u8e3s4, count));
|
|
190
|
-
_this__u8e3s4.
|
|
190
|
+
_this__u8e3s4.a3(cardsToDeal);
|
|
191
191
|
return cardsToDeal;
|
|
192
192
|
}
|
|
193
193
|
function CardIndexComparator() {
|
|
194
194
|
}
|
|
195
|
-
protoOf(CardIndexComparator).
|
|
196
|
-
return a.
|
|
195
|
+
protoOf(CardIndexComparator).q6k = function (a, b) {
|
|
196
|
+
return a.r6k_1 - b.r6k_1 | 0;
|
|
197
197
|
};
|
|
198
198
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
199
199
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
200
|
-
return this.
|
|
200
|
+
return this.q6k(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
201
201
|
};
|
|
202
202
|
var CardIndexComparator_instance;
|
|
203
203
|
function CardIndexComparator_getInstance() {
|
|
@@ -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).v6k = function (suit, number) {
|
|
318
318
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
319
319
|
};
|
|
320
|
-
protoOf(Companion).
|
|
320
|
+
protoOf(Companion).w6k = function (suit, cardNumber) {
|
|
321
321
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
322
322
|
};
|
|
323
|
-
protoOf(Companion).
|
|
323
|
+
protoOf(Companion).x6k = function (index) {
|
|
324
324
|
return new GameCard(index);
|
|
325
325
|
};
|
|
326
|
-
protoOf(Companion).
|
|
326
|
+
protoOf(Companion).y6k = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
327
327
|
var tmp;
|
|
328
328
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
329
329
|
tmp = null;
|
|
330
330
|
} else {
|
|
331
331
|
// Inline function 'kotlin.takeIf' call
|
|
332
332
|
var tmp_0;
|
|
333
|
-
if (previousHiddenCardWithMaxIndex.
|
|
333
|
+
if (previousHiddenCardWithMaxIndex.z6k()) {
|
|
334
334
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
335
335
|
} else {
|
|
336
336
|
tmp_0 = null;
|
|
@@ -338,8 +338,8 @@
|
|
|
338
338
|
tmp = tmp_0;
|
|
339
339
|
}
|
|
340
340
|
var tmp1_safe_receiver = tmp;
|
|
341
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
342
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
341
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r6k_1;
|
|
342
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.g6l(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).h6l = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
362
362
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
363
363
|
reverse = reverse === VOID ? false : reverse;
|
|
364
|
-
return $super === VOID ? this.
|
|
364
|
+
return $super === VOID ? this.y6k(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.y6k.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).i6l = 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.r6k_1 >= 150 && $this.r6k_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.a6l_1 = -1;
|
|
482
|
+
this.b6l_1 = 13;
|
|
483
|
+
this.c6l_1 = 52;
|
|
484
|
+
this.d6l_1 = 150;
|
|
485
|
+
this.e6l_1 = 53;
|
|
486
|
+
this.f6l_1 = 999;
|
|
487
|
+
}
|
|
488
|
+
protoOf(Companion_0).g6l = 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.r6k_1 = index;
|
|
559
559
|
}
|
|
560
|
-
protoOf(GameCard).
|
|
560
|
+
protoOf(GameCard).t6k = function () {
|
|
561
561
|
var tmp;
|
|
562
|
-
var containsArg = this.
|
|
562
|
+
var containsArg = this.r6k_1;
|
|
563
563
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
564
564
|
tmp = Suit_DIAMOND_getInstance();
|
|
565
565
|
} else {
|
|
566
|
-
if (this.
|
|
566
|
+
if (this.r6k_1 <= 26) {
|
|
567
567
|
tmp = Suit_SPADE_getInstance();
|
|
568
568
|
} else {
|
|
569
|
-
if (this.
|
|
569
|
+
if (this.r6k_1 <= 39) {
|
|
570
570
|
tmp = Suit_HEART_getInstance();
|
|
571
571
|
} else {
|
|
572
|
-
if (this.
|
|
572
|
+
if (this.r6k_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.r6k_1);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
return tmp;
|
|
581
581
|
};
|
|
582
|
-
protoOf(GameCard).
|
|
582
|
+
protoOf(GameCard).u6k = function () {
|
|
583
583
|
var tmp;
|
|
584
|
-
if (this.
|
|
584
|
+
if (this.z6k()) {
|
|
585
585
|
tmp = -1;
|
|
586
586
|
} else {
|
|
587
|
-
tmp = this.
|
|
587
|
+
tmp = this.r6k_1 - imul(13, getIndex(this.t6k())) | 0;
|
|
588
588
|
}
|
|
589
589
|
return tmp;
|
|
590
590
|
};
|
|
591
|
-
protoOf(GameCard).
|
|
592
|
-
return this.
|
|
591
|
+
protoOf(GameCard).m = function () {
|
|
592
|
+
return this.z6k() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.u6k());
|
|
593
593
|
};
|
|
594
|
-
protoOf(GameCard).
|
|
595
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
594
|
+
protoOf(GameCard).s6k = function () {
|
|
595
|
+
return !_get_isShirt__vd98rp(this) && !this.z6k();
|
|
596
596
|
};
|
|
597
|
-
protoOf(GameCard).
|
|
598
|
-
return this.
|
|
597
|
+
protoOf(GameCard).j6l = function () {
|
|
598
|
+
return this.r6k_1 === 999;
|
|
599
599
|
};
|
|
600
|
-
protoOf(GameCard).
|
|
601
|
-
return this.
|
|
600
|
+
protoOf(GameCard).z6k = function () {
|
|
601
|
+
return this.r6k_1 >= 53 && this.r6k_1 <= 105;
|
|
602
602
|
};
|
|
603
603
|
protoOf(GameCard).toString = function () {
|
|
604
|
-
return 'GameCard' + this.
|
|
604
|
+
return 'GameCard' + this.k6l();
|
|
605
605
|
};
|
|
606
|
-
protoOf(GameCard).
|
|
607
|
-
return '{' + this.
|
|
606
|
+
protoOf(GameCard).k6l = function () {
|
|
607
|
+
return '{' + this.l6l() + ', ' + this.r6k_1 + '}';
|
|
608
608
|
};
|
|
609
|
-
protoOf(GameCard).
|
|
610
|
-
if (this.
|
|
609
|
+
protoOf(GameCard).l6l = function () {
|
|
610
|
+
if (this.j6l()) {
|
|
611
611
|
return 'stub';
|
|
612
612
|
}
|
|
613
|
-
if (this.
|
|
613
|
+
if (this.z6k()) {
|
|
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.t6k().toString() + this.m().toString();
|
|
620
620
|
};
|
|
621
621
|
protoOf(GameCard).hashCode = function () {
|
|
622
|
-
return this.
|
|
622
|
+
return this.r6k_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.p5t_1 === tmp0_other_with_cast.p5t_1))
|
|
629
|
+
if (!(this.r6k_1 === other.r6k_1))
|
|
631
630
|
return false;
|
|
632
631
|
return true;
|
|
633
632
|
};
|
|
634
633
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
635
|
-
return $this.
|
|
634
|
+
return $this.m6l_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.m6l_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
678
677
|
}
|
|
679
|
-
protoOf(Companion_1).
|
|
678
|
+
protoOf(Companion_1).e5e = 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.e5e();
|
|
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).k6m = 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.t6m_1 = _this__u8e3s4;
|
|
810
|
+
this.u6m_1 = leftCardIndexForEachSuit;
|
|
811
|
+
this.v6m_1 = rightCardIndexForEachSuit;
|
|
812
|
+
this.w6m_1 = approximateRoundCountForGame;
|
|
813
|
+
this.x6m_1 = userData;
|
|
814
|
+
this.y6m_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.y6m_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.t6m_1.n6l(this.u6m_1, this.v6m_1);
|
|
828
|
+
tmp_0.z6m_1 = this.t6m_1.r6l(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.t6m_1, this.u6m_1, this.v6m_1, this.w6m_1, this.x6m_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.t6m_1, this.u6m_1, this.v6m_1, this.w6m_1, this.x6m_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.z6m_1 = suspendResult;
|
|
857
|
+
this.e9_1 = 3;
|
|
859
858
|
continue $sm;
|
|
860
859
|
case 2:
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
860
|
+
this.z6m_1 = suspendResult;
|
|
861
|
+
this.e9_1 = 3;
|
|
863
862
|
continue $sm;
|
|
864
863
|
case 3:
|
|
865
|
-
return this.
|
|
864
|
+
return this.z6m_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.d6m_1 = _this__u8e3s4;
|
|
882
|
+
this.e6m_1 = leftCardIndexForEachSuit;
|
|
883
|
+
this.f6m_1 = rightCardIndexForEachSuit;
|
|
884
|
+
this.g6m_1 = approximateRoundsCount;
|
|
885
|
+
this.h6m_1 = userData;
|
|
886
|
+
this.i6m_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.d6m_1.u6l(this.e6m_1, this.f6m_1);
|
|
897
|
+
var tmp0_$this = this.d6m_1.b6n_1;
|
|
899
898
|
var tmp1_max = cardsCount - 1 | 0;
|
|
900
|
-
this.
|
|
901
|
-
suspendResult = tmp0_$this.
|
|
899
|
+
this.e9_1 = 1;
|
|
900
|
+
suspendResult = tmp0_$this.k6f(this.g6m_1, this.h6m_1, 0, tmp1_max, cardsCount, this.i6m_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.d6m_1, tmp2_cards, this.e6m_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.x6k(item));
|
|
926
925
|
}
|
|
927
|
-
tmp_0.
|
|
928
|
-
this.
|
|
926
|
+
tmp_0.j6m_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.d6m_1.c6n_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
932
|
+
this.e9_1 = 3;
|
|
933
|
+
suspendResult = this.d6m_1.o6l(this.e6m_1, this.f6m_1, this.g6m_1, this.h6m_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.j6m_1 = suspendResult;
|
|
942
|
+
this.e9_1 = 4;
|
|
944
943
|
continue $sm;
|
|
945
944
|
case 4:
|
|
946
|
-
return this.
|
|
945
|
+
return this.j6m_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.a6n_1 = random;
|
|
962
|
+
this.b6n_1 = randomPoolProvider;
|
|
963
|
+
this.c6n_1 = logger;
|
|
965
964
|
}
|
|
966
|
-
protoOf(CardsDealerProviderImpl).
|
|
965
|
+
protoOf(CardsDealerProviderImpl).n6l = 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.d6n(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.v6k(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).d6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
995
994
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
996
995
|
};
|
|
997
|
-
protoOf(CardsDealerProviderImpl).
|
|
996
|
+
protoOf(CardsDealerProviderImpl).u6l = 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.d6n(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
1005
1004
|
}
|
|
1006
1005
|
return sum;
|
|
1007
1006
|
};
|
|
1008
|
-
protoOf(CardsDealerProviderImpl).
|
|
1007
|
+
protoOf(CardsDealerProviderImpl).o6l = 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).p6l = 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
|
}
|
|
@@ -1031,7 +1030,7 @@
|
|
|
1031
1030
|
// Inline function 'kotlin.collections.any' call
|
|
1032
1031
|
var tmp;
|
|
1033
1032
|
if (isInterface(this_0, Collection)) {
|
|
1034
|
-
tmp = this_0.
|
|
1033
|
+
tmp = this_0.r();
|
|
1035
1034
|
} else {
|
|
1036
1035
|
tmp = false;
|
|
1037
1036
|
}
|
|
@@ -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.u6k() === card.u6k()) {
|
|
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).q6l = function (cards, times) {
|
|
1061
1060
|
// Inline function 'kotlin.let' call
|
|
1062
1061
|
var shuffled = toMutableList(cards);
|
|
1063
1062
|
var inductionVariable = 0;
|
|
@@ -1065,72 +1064,72 @@
|
|
|
1065
1064
|
do {
|
|
1066
1065
|
var i = inductionVariable;
|
|
1067
1066
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1068
|
-
shuffled = this.
|
|
1067
|
+
shuffled = this.a6n_1.n6k(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).s6l = function (cards, times) {
|
|
1073
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.a6n_1), times, this.a6n_1));
|
|
1075
1074
|
};
|
|
1076
1075
|
function Companion_3() {
|
|
1077
1076
|
}
|
|
1078
|
-
protoOf(Companion_3).
|
|
1077
|
+
protoOf(Companion_3).e6n = 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.w6k(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1082
|
+
this_0.i1(listOf([Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1083
|
+
this_0.i1(listOf([Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1084
|
+
this_0.i1(listOf([Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1085
|
+
this_0.i1(listOf([Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.w6k(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1087
1086
|
return this_0;
|
|
1088
1087
|
};
|
|
1089
|
-
protoOf(Companion_3).
|
|
1090
|
-
return listOf([Companion_instance.
|
|
1088
|
+
protoOf(Companion_3).f6n = function () {
|
|
1089
|
+
return listOf([Companion_instance.w6k(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w6k(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
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.e6n() : cards;
|
|
1097
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.f6n() : cardsForLot;
|
|
1098
|
+
this.g6n_1 = cards;
|
|
1099
|
+
this.h6n_1 = cardsForLot;
|
|
1101
1100
|
}
|
|
1102
|
-
protoOf(FakeCardsDealerProvider).
|
|
1103
|
-
return this.
|
|
1101
|
+
protoOf(FakeCardsDealerProvider).n6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1102
|
+
return this.g6n_1;
|
|
1104
1103
|
};
|
|
1105
|
-
protoOf(FakeCardsDealerProvider).
|
|
1106
|
-
return this.
|
|
1104
|
+
protoOf(FakeCardsDealerProvider).o6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1105
|
+
return this.g6n_1;
|
|
1107
1106
|
};
|
|
1108
|
-
protoOf(FakeCardsDealerProvider).
|
|
1109
|
-
return this.
|
|
1107
|
+
protoOf(FakeCardsDealerProvider).p6l = function (count, cards) {
|
|
1108
|
+
return this.h6n_1;
|
|
1110
1109
|
};
|
|
1111
|
-
protoOf(FakeCardsDealerProvider).
|
|
1110
|
+
protoOf(FakeCardsDealerProvider).q6l = function (cards, times) {
|
|
1112
1111
|
return cards;
|
|
1113
1112
|
};
|
|
1114
|
-
protoOf(FakeCardsDealerProvider).
|
|
1113
|
+
protoOf(FakeCardsDealerProvider).s6l = function (cards, times) {
|
|
1115
1114
|
return cards;
|
|
1116
1115
|
};
|
|
1117
|
-
protoOf(FakeCardsDealerProvider).
|
|
1118
|
-
return this.
|
|
1116
|
+
protoOf(FakeCardsDealerProvider).u6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1117
|
+
return this.g6n_1.g1();
|
|
1119
1118
|
};
|
|
1120
1119
|
function CombinationsCheckerProvider() {
|
|
1121
1120
|
}
|
|
1122
1121
|
function createCombination($this, cards, supportedCombinations) {
|
|
1123
|
-
var size = cards.
|
|
1124
|
-
if (supportedCombinations.
|
|
1122
|
+
var size = cards.g1();
|
|
1123
|
+
if (supportedCombinations.m2(size)) {
|
|
1125
1124
|
return cards;
|
|
1126
1125
|
}
|
|
1127
1126
|
var fromLongestCombinations = asReversed(sorted(supportedCombinations));
|
|
1128
1127
|
var tmp$ret$1;
|
|
1129
1128
|
$l$block: {
|
|
1130
1129
|
// Inline function 'kotlin.collections.first' call
|
|
1131
|
-
var _iterator__ex2g4s = fromLongestCombinations.
|
|
1132
|
-
while (_iterator__ex2g4s.
|
|
1133
|
-
var element = _iterator__ex2g4s.
|
|
1130
|
+
var _iterator__ex2g4s = fromLongestCombinations.t();
|
|
1131
|
+
while (_iterator__ex2g4s.u()) {
|
|
1132
|
+
var element = _iterator__ex2g4s.v();
|
|
1134
1133
|
if (element <= size) {
|
|
1135
1134
|
tmp$ret$1 = element;
|
|
1136
1135
|
break $l$block;
|
|
@@ -1142,23 +1141,23 @@
|
|
|
1142
1141
|
return takeLast(cards, longestCombinationSupport);
|
|
1143
1142
|
}
|
|
1144
1143
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1145
|
-
this.
|
|
1144
|
+
this.n6n_1 = function_0;
|
|
1146
1145
|
}
|
|
1147
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1148
|
-
return this.
|
|
1146
|
+
protoOf(sam$kotlin_Comparator$0).dd = function (a, b) {
|
|
1147
|
+
return this.n6n_1(a, b);
|
|
1149
1148
|
};
|
|
1150
1149
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1151
|
-
return this.
|
|
1150
|
+
return this.dd(a, b);
|
|
1152
1151
|
};
|
|
1153
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1154
|
-
return this.
|
|
1152
|
+
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
1153
|
+
return this.n6n_1;
|
|
1155
1154
|
};
|
|
1156
1155
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1157
1156
|
var tmp;
|
|
1158
1157
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1159
1158
|
var tmp_0;
|
|
1160
1159
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1161
|
-
tmp_0 = equals(this.
|
|
1160
|
+
tmp_0 = equals(this.s3(), other.s3());
|
|
1162
1161
|
} else {
|
|
1163
1162
|
tmp_0 = false;
|
|
1164
1163
|
}
|
|
@@ -1169,28 +1168,28 @@
|
|
|
1169
1168
|
return tmp;
|
|
1170
1169
|
};
|
|
1171
1170
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1172
|
-
return hashCode(this.
|
|
1171
|
+
return hashCode(this.s3());
|
|
1173
1172
|
};
|
|
1174
1173
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1175
1174
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1176
|
-
var tmp = first_0(a).
|
|
1177
|
-
var tmp$ret$1 = first_0(b).
|
|
1175
|
+
var tmp = first_0(a).r6k_1;
|
|
1176
|
+
var tmp$ret$1 = first_0(b).r6k_1;
|
|
1178
1177
|
return compareValues(tmp, tmp$ret$1);
|
|
1179
1178
|
}
|
|
1180
1179
|
function CombinationsCheckerProviderImpl() {
|
|
1181
1180
|
}
|
|
1182
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1181
|
+
protoOf(CombinationsCheckerProviderImpl).i6n = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1183
1182
|
// Inline function 'kotlin.apply' call
|
|
1184
1183
|
var this_0 = toMutableList(cards);
|
|
1185
1184
|
sortWith(this_0, CardIndexComparator_instance);
|
|
1186
1185
|
// Inline function 'kotlin.collections.filter' call
|
|
1187
1186
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1188
1187
|
var destination = ArrayList_init_$Create$();
|
|
1189
|
-
var _iterator__ex2g4s = this_0.
|
|
1190
|
-
while (_iterator__ex2g4s.
|
|
1191
|
-
var element = _iterator__ex2g4s.
|
|
1192
|
-
if (element.
|
|
1193
|
-
destination.
|
|
1188
|
+
var _iterator__ex2g4s = this_0.t();
|
|
1189
|
+
while (_iterator__ex2g4s.u()) {
|
|
1190
|
+
var element = _iterator__ex2g4s.v();
|
|
1191
|
+
if (element.s6k()) {
|
|
1192
|
+
destination.e1(element);
|
|
1194
1193
|
}
|
|
1195
1194
|
}
|
|
1196
1195
|
var sortedByIndexCards = toList(destination);
|
|
@@ -1199,110 +1198,110 @@
|
|
|
1199
1198
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1200
1199
|
var combinationCards = ArrayList_init_$Create$();
|
|
1201
1200
|
var inductionVariable = 0;
|
|
1202
|
-
var last = sortedByIndexCards.
|
|
1201
|
+
var last = sortedByIndexCards.g1() - 1 | 0;
|
|
1203
1202
|
if (inductionVariable <= last)
|
|
1204
1203
|
do {
|
|
1205
1204
|
var i = inductionVariable;
|
|
1206
1205
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1207
1206
|
var previousCard = lastOrNull(combinationCards);
|
|
1208
|
-
var currentCard = sortedByIndexCards.
|
|
1209
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1210
|
-
var passedCardNamesCheck = includeCardNames == null || includeCardNames.
|
|
1211
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1207
|
+
var currentCard = sortedByIndexCards.h1(i);
|
|
1208
|
+
var isNextInRow = !(previousCard == null) && currentCard.r6k_1 === (previousCard.r6k_1 + 1 | 0) && currentCard.t6k().equals(previousCard.t6k());
|
|
1209
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.m2(currentCard.m());
|
|
1210
|
+
var passedSuitCheck = suit == null || currentCard.t6k().equals(suit);
|
|
1212
1211
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1213
|
-
combinationCards.
|
|
1212
|
+
combinationCards.e1(currentCard);
|
|
1214
1213
|
} else {
|
|
1215
|
-
if (combinationCards.
|
|
1216
|
-
combinations.
|
|
1214
|
+
if (combinationCards.g1() > (checkFromIndex - 1 | 0)) {
|
|
1215
|
+
combinations.i1(this.m6n(toMutableList(combinationCards), supportedCombinations));
|
|
1217
1216
|
}
|
|
1218
|
-
combinationCards.
|
|
1217
|
+
combinationCards.b3();
|
|
1219
1218
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
1220
|
-
combinationCards.
|
|
1219
|
+
combinationCards.e1(currentCard);
|
|
1221
1220
|
}
|
|
1222
1221
|
}
|
|
1223
1222
|
}
|
|
1224
1223
|
while (inductionVariable <= last);
|
|
1225
|
-
if (combinationCards.
|
|
1226
|
-
combinations.
|
|
1224
|
+
if (combinationCards.g1() > (checkFromIndex - 1 | 0)) {
|
|
1225
|
+
combinations.i1(this.m6n(toMutableList(combinationCards), supportedCombinations));
|
|
1227
1226
|
}
|
|
1228
1227
|
return combinations;
|
|
1229
1228
|
};
|
|
1230
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1229
|
+
protoOf(CombinationsCheckerProviderImpl).k6n = function (cards, cardsCount, includeCardNames) {
|
|
1231
1230
|
// Inline function 'kotlin.apply' call
|
|
1232
1231
|
var this_0 = toMutableList(cards);
|
|
1233
1232
|
sortWith(this_0, CardIndexComparator_instance);
|
|
1234
1233
|
// Inline function 'kotlin.collections.filter' call
|
|
1235
1234
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1236
1235
|
var destination = ArrayList_init_$Create$();
|
|
1237
|
-
var _iterator__ex2g4s = this_0.
|
|
1238
|
-
while (_iterator__ex2g4s.
|
|
1239
|
-
var element = _iterator__ex2g4s.
|
|
1240
|
-
if (element.
|
|
1241
|
-
destination.
|
|
1236
|
+
var _iterator__ex2g4s = this_0.t();
|
|
1237
|
+
while (_iterator__ex2g4s.u()) {
|
|
1238
|
+
var element = _iterator__ex2g4s.v();
|
|
1239
|
+
if (element.s6k()) {
|
|
1240
|
+
destination.e1(element);
|
|
1242
1241
|
}
|
|
1243
1242
|
}
|
|
1244
1243
|
// Inline function 'kotlin.collections.filter' call
|
|
1245
1244
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1246
1245
|
var destination_0 = ArrayList_init_$Create$();
|
|
1247
|
-
var _iterator__ex2g4s_0 = destination.
|
|
1248
|
-
while (_iterator__ex2g4s_0.
|
|
1249
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1250
|
-
if (includeCardNames == null || includeCardNames.
|
|
1251
|
-
destination_0.
|
|
1246
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
1247
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1248
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
1249
|
+
if (includeCardNames == null || includeCardNames.m2(element_0.m())) {
|
|
1250
|
+
destination_0.e1(element_0);
|
|
1252
1251
|
}
|
|
1253
1252
|
}
|
|
1254
1253
|
var sortedByNumberCards = toList(destination_0);
|
|
1255
1254
|
// Inline function 'kotlin.collections.groupBy' call
|
|
1256
1255
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
1257
1256
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
1258
|
-
var _iterator__ex2g4s_1 = sortedByNumberCards.
|
|
1259
|
-
while (_iterator__ex2g4s_1.
|
|
1260
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
1261
|
-
var key = element_1.
|
|
1257
|
+
var _iterator__ex2g4s_1 = sortedByNumberCards.t();
|
|
1258
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
1259
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
1260
|
+
var key = element_1.u6k();
|
|
1262
1261
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1263
|
-
var value = destination_1.
|
|
1262
|
+
var value = destination_1.v2(key);
|
|
1264
1263
|
var tmp;
|
|
1265
1264
|
if (value == null) {
|
|
1266
1265
|
var answer = ArrayList_init_$Create$();
|
|
1267
|
-
destination_1.
|
|
1266
|
+
destination_1.g3(key, answer);
|
|
1268
1267
|
tmp = answer;
|
|
1269
1268
|
} else {
|
|
1270
1269
|
tmp = value;
|
|
1271
1270
|
}
|
|
1272
1271
|
var list = tmp;
|
|
1273
|
-
list.
|
|
1272
|
+
list.e1(element_1);
|
|
1274
1273
|
}
|
|
1275
1274
|
// Inline function 'kotlin.collections.filter' call
|
|
1276
1275
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1277
1276
|
var destination_2 = LinkedHashMap_init_$Create$();
|
|
1278
1277
|
// Inline function 'kotlin.collections.iterator' call
|
|
1279
|
-
var _iterator__ex2g4s_2 = destination_1.
|
|
1280
|
-
while (_iterator__ex2g4s_2.
|
|
1281
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
1282
|
-
if (element_2.
|
|
1283
|
-
destination_2.
|
|
1278
|
+
var _iterator__ex2g4s_2 = destination_1.m1().t();
|
|
1279
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
1280
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
1281
|
+
if (element_2.o1().g1() >= cardsCount) {
|
|
1282
|
+
destination_2.g3(element_2.n1(), element_2.o1());
|
|
1284
1283
|
}
|
|
1285
1284
|
}
|
|
1286
|
-
var combinations = destination_2.
|
|
1285
|
+
var combinations = destination_2.x2();
|
|
1287
1286
|
// Inline function 'kotlin.collections.map' call
|
|
1288
1287
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1289
1288
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
1290
|
-
var _iterator__ex2g4s_3 = combinations.
|
|
1291
|
-
while (_iterator__ex2g4s_3.
|
|
1292
|
-
var item = _iterator__ex2g4s_3.
|
|
1289
|
+
var _iterator__ex2g4s_3 = combinations.t();
|
|
1290
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
1291
|
+
var item = _iterator__ex2g4s_3.v();
|
|
1293
1292
|
var tmp$ret$17 = sortedWith(item, CardIndexComparator_instance);
|
|
1294
|
-
destination_3.
|
|
1293
|
+
destination_3.e1(tmp$ret$17);
|
|
1295
1294
|
}
|
|
1296
1295
|
return destination_3;
|
|
1297
1296
|
};
|
|
1298
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1297
|
+
protoOf(CombinationsCheckerProviderImpl).m6n = function (cards, supportedCombinations) {
|
|
1299
1298
|
// Inline function 'kotlin.collections.minOf' call
|
|
1300
|
-
var iterator = supportedCombinations.
|
|
1301
|
-
if (!iterator.
|
|
1299
|
+
var iterator = supportedCombinations.t();
|
|
1300
|
+
if (!iterator.u())
|
|
1302
1301
|
throw NoSuchElementException_init_$Create$_0();
|
|
1303
|
-
var minValue = iterator.
|
|
1304
|
-
while (iterator.
|
|
1305
|
-
var v = iterator.
|
|
1302
|
+
var minValue = iterator.v();
|
|
1303
|
+
while (iterator.u()) {
|
|
1304
|
+
var v = iterator.v();
|
|
1306
1305
|
if (compareTo(minValue, v) > 0) {
|
|
1307
1306
|
minValue = v;
|
|
1308
1307
|
}
|
|
@@ -1311,10 +1310,10 @@
|
|
|
1311
1310
|
var cardsToCheck = toMutableList(cards);
|
|
1312
1311
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1313
1312
|
var combinations = ArrayList_init_$Create$();
|
|
1314
|
-
while (cardsToCheck.
|
|
1313
|
+
while (cardsToCheck.g1() >= shortestCombinationSupport) {
|
|
1315
1314
|
var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
|
|
1316
|
-
combinations.
|
|
1317
|
-
cardsToCheck.
|
|
1315
|
+
combinations.e1(toList(combinationCards));
|
|
1316
|
+
cardsToCheck.a3(combinationCards);
|
|
1318
1317
|
}
|
|
1319
1318
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
1320
1319
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
@@ -1325,74 +1324,74 @@
|
|
|
1325
1324
|
function DealerReducer() {
|
|
1326
1325
|
}
|
|
1327
1326
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1327
|
+
this.r6n_1 = logger;
|
|
1328
|
+
this.s6n_1 = enableLogs;
|
|
1330
1329
|
}
|
|
1331
|
-
protoOf(DealerReducerImpl).
|
|
1330
|
+
protoOf(DealerReducerImpl).o6n = function (cards, cardsToRemove) {
|
|
1332
1331
|
var list = cards;
|
|
1333
|
-
var _iterator__ex2g4s = cardsToRemove.
|
|
1334
|
-
while (_iterator__ex2g4s.
|
|
1335
|
-
var gameCard = _iterator__ex2g4s.
|
|
1336
|
-
list = this.
|
|
1332
|
+
var _iterator__ex2g4s = cardsToRemove.t();
|
|
1333
|
+
while (_iterator__ex2g4s.u()) {
|
|
1334
|
+
var gameCard = _iterator__ex2g4s.v();
|
|
1335
|
+
list = this.p6n(list, gameCard);
|
|
1337
1336
|
}
|
|
1338
1337
|
return list;
|
|
1339
1338
|
};
|
|
1340
|
-
protoOf(DealerReducerImpl).
|
|
1339
|
+
protoOf(DealerReducerImpl).p6n = function (cards, cardToRemove) {
|
|
1341
1340
|
var tmp;
|
|
1342
|
-
if (!cardToRemove.
|
|
1343
|
-
if (this.
|
|
1344
|
-
this.
|
|
1341
|
+
if (!cardToRemove.z6k() && cards.m2(cardToRemove)) {
|
|
1342
|
+
if (this.s6n_1) {
|
|
1343
|
+
this.r6n_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.g1() - 1 | 0));
|
|
1345
1344
|
}
|
|
1346
1345
|
tmp = minus(cards, cardToRemove);
|
|
1347
1346
|
} else {
|
|
1348
|
-
if (this.
|
|
1349
|
-
this.
|
|
1347
|
+
if (this.s6n_1) {
|
|
1348
|
+
this.r6n_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.g1() - 1 | 0));
|
|
1350
1349
|
}
|
|
1351
1350
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1352
1351
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
1353
1352
|
var destination = ArrayList_init_$Create$();
|
|
1354
|
-
var _iterator__ex2g4s = cards.
|
|
1355
|
-
while (_iterator__ex2g4s.
|
|
1356
|
-
var element = _iterator__ex2g4s.
|
|
1357
|
-
if (!element.
|
|
1358
|
-
destination.
|
|
1353
|
+
var _iterator__ex2g4s = cards.t();
|
|
1354
|
+
while (_iterator__ex2g4s.u()) {
|
|
1355
|
+
var element = _iterator__ex2g4s.v();
|
|
1356
|
+
if (!element.z6k()) {
|
|
1357
|
+
destination.e1(element);
|
|
1359
1358
|
}
|
|
1360
1359
|
}
|
|
1361
1360
|
var notHiddenCards = destination;
|
|
1362
1361
|
// Inline function 'kotlin.collections.filter' call
|
|
1363
1362
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1364
1363
|
var destination_0 = ArrayList_init_$Create$();
|
|
1365
|
-
var _iterator__ex2g4s_0 = cards.
|
|
1366
|
-
while (_iterator__ex2g4s_0.
|
|
1367
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1368
|
-
if (element_0.
|
|
1369
|
-
destination_0.
|
|
1364
|
+
var _iterator__ex2g4s_0 = cards.t();
|
|
1365
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
1366
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
1367
|
+
if (element_0.z6k()) {
|
|
1368
|
+
destination_0.e1(element_0);
|
|
1370
1369
|
}
|
|
1371
1370
|
}
|
|
1372
1371
|
var hiddenCards = destination_0;
|
|
1373
|
-
if (hiddenCards.
|
|
1374
|
-
this.
|
|
1372
|
+
if (hiddenCards.r()) {
|
|
1373
|
+
this.r6n_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1375
1374
|
}
|
|
1376
1375
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1377
1376
|
}
|
|
1378
1377
|
return tmp;
|
|
1379
1378
|
};
|
|
1380
|
-
protoOf(DealerReducerImpl).
|
|
1381
|
-
if (this.
|
|
1382
|
-
this.
|
|
1379
|
+
protoOf(DealerReducerImpl).q6n = function (cards, cardToAdd) {
|
|
1380
|
+
if (this.s6n_1) {
|
|
1381
|
+
this.r6n_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.g1() + 1 | 0));
|
|
1383
1382
|
}
|
|
1384
|
-
if (cards.
|
|
1385
|
-
this.
|
|
1383
|
+
if (cards.m2(cardToAdd)) {
|
|
1384
|
+
this.r6n_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1386
1385
|
}
|
|
1387
1386
|
return plus_0(cards, cardToAdd);
|
|
1388
1387
|
};
|
|
1389
1388
|
//region block: post-declaration
|
|
1390
|
-
protoOf(CardsDealerProviderImpl).
|
|
1391
|
-
protoOf(CardsDealerProviderImpl).
|
|
1392
|
-
protoOf(FakeCardsDealerProvider).
|
|
1393
|
-
protoOf(FakeCardsDealerProvider).
|
|
1394
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1395
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1389
|
+
protoOf(CardsDealerProviderImpl).r6l = standardShuffledCards$default;
|
|
1390
|
+
protoOf(CardsDealerProviderImpl).t6l = realLifeShuffledCards$default;
|
|
1391
|
+
protoOf(FakeCardsDealerProvider).r6l = standardShuffledCards$default;
|
|
1392
|
+
protoOf(FakeCardsDealerProvider).t6l = realLifeShuffledCards$default;
|
|
1393
|
+
protoOf(CombinationsCheckerProviderImpl).j6n = findCardsInRowCombinations$default;
|
|
1394
|
+
protoOf(CombinationsCheckerProviderImpl).l6n = findSameCardsNumberCombinations$default;
|
|
1396
1395
|
//endregion
|
|
1397
1396
|
//region block: init
|
|
1398
1397
|
CoreConfig_instance = new CoreConfig();
|