raspberry_games_server_game_logic 1.8.347 → 1.8.348
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 +74 -74
- package/Kosi-Kodein-kodein-di.js +635 -635
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1724 -1724
- package/Logic_Debertz-core.js +1836 -1836
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14979 -14979
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +1599 -1599
- package/error-library-error.js +53 -0
- package/error-library-error.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +2898 -2665
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +23 -23
- package/kotlinx-coroutines-core.js +2914 -2914
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +343 -343
- package/kotlinx-serialization-kotlinx-serialization-core.js +2006 -2006
- package/kotlinx-serialization-kotlinx-serialization-json.js +1537 -1537
- package/ktor-ktor-client-content-negotiation.js +214 -214
- package/ktor-ktor-client-core.js +2526 -2526
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +10 -10
- package/ktor-ktor-http.js +726 -726
- package/ktor-ktor-io.js +1624 -1624
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +277 -277
- package/ktor-ktor-serialization.js +131 -131
- package/ktor-ktor-utils.js +729 -729
- package/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
- package/random-library-crypto-rand.js +251 -0
- package/random-library-crypto-rand.js.map +1 -0
- package/random-library-secure-random.js +93 -0
- package/random-library-secure-random.js.map +1 -0
- package/raspberry-cardgame-lib-core.js +280 -280
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +101 -101
- package/raspberry-cardgame-lib-random.js +1107 -1040
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +27 -27
- package/secure-random-secure-random.js +0 -174
- package/secure-random-secure-random.js.map +0 -1
|
@@ -19,68 +19,68 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
24
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.qc;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ub;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.hb;
|
|
25
25
|
var THROW_CCE = kotlin_kotlin.$_$.og;
|
|
26
26
|
var Comparator = kotlin_kotlin.$_$.bg;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.f;
|
|
28
|
-
var take = kotlin_kotlin.$_$.
|
|
29
|
-
var toList = kotlin_kotlin.$_$.
|
|
30
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
31
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
28
|
+
var take = kotlin_kotlin.$_$.j9;
|
|
29
|
+
var toList = kotlin_kotlin.$_$.n9;
|
|
30
|
+
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
31
|
+
var takeLast = kotlin_kotlin.$_$.i9;
|
|
32
32
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
33
33
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.mh;
|
|
34
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
34
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.qb;
|
|
35
35
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
36
36
|
var Enum = kotlin_kotlin.$_$.eg;
|
|
37
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
37
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pb;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.ta;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i;
|
|
41
41
|
var lazy = kotlin_kotlin.$_$.kh;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
44
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.sb;
|
|
44
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.m6;
|
|
45
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
46
46
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
47
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
48
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
49
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
47
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ra;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
|
|
50
50
|
var Result = kotlin_kotlin.$_$.mg;
|
|
51
|
-
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.
|
|
51
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.y2;
|
|
52
52
|
var throwOnFailure = kotlin_kotlin.$_$.qh;
|
|
53
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
54
|
-
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.
|
|
55
|
-
var addAll = kotlin_kotlin.$_$.
|
|
53
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.b3;
|
|
54
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.a3;
|
|
55
|
+
var addAll = kotlin_kotlin.$_$.a6;
|
|
56
56
|
var until = kotlin_kotlin.$_$.gd;
|
|
57
|
-
var count = kotlin_kotlin.$_$.
|
|
58
|
-
var Collection = kotlin_kotlin.$_$.
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
57
|
+
var count = kotlin_kotlin.$_$.d7;
|
|
58
|
+
var Collection = kotlin_kotlin.$_$.l5;
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.dc;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.r9;
|
|
61
61
|
var riffle = kotlin_io_raspberryapps_cardgame_random.$_$.l;
|
|
62
62
|
var overhand = kotlin_io_raspberryapps_cardgame_random.$_$.k;
|
|
63
|
-
var listOf = kotlin_kotlin.$_$.
|
|
64
|
-
var first = kotlin_kotlin.$_$.
|
|
65
|
-
var sorted = kotlin_kotlin.$_$.
|
|
66
|
-
var asReversed = kotlin_kotlin.$_$.
|
|
63
|
+
var listOf = kotlin_kotlin.$_$.k8;
|
|
64
|
+
var first = kotlin_kotlin.$_$.p7;
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.g9;
|
|
66
|
+
var asReversed = kotlin_kotlin.$_$.e6;
|
|
67
67
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
68
|
-
var equals = kotlin_kotlin.$_$.
|
|
69
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
70
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
71
|
-
var first_0 = kotlin_kotlin.$_$.
|
|
72
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
73
|
-
var sortWith = kotlin_kotlin.$_$.
|
|
74
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
68
|
+
var equals = kotlin_kotlin.$_$.ib;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.va;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.ob;
|
|
71
|
+
var first_0 = kotlin_kotlin.$_$.o7;
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.aa;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.e9;
|
|
74
|
+
var lastOrNull = kotlin_kotlin.$_$.e8;
|
|
75
75
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.f9;
|
|
77
77
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.y1;
|
|
78
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
78
|
+
var compareTo = kotlin_kotlin.$_$.gb;
|
|
79
79
|
var toString = kotlin_kotlin.$_$.uc;
|
|
80
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
81
|
-
var plus = kotlin_kotlin.$_$.
|
|
82
|
-
var minus = kotlin_kotlin.$_$.
|
|
83
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
80
|
+
var dropLast = kotlin_kotlin.$_$.f7;
|
|
81
|
+
var plus = kotlin_kotlin.$_$.t8;
|
|
82
|
+
var minus = kotlin_kotlin.$_$.o8;
|
|
83
|
+
var plus_0 = kotlin_kotlin.$_$.u8;
|
|
84
84
|
//endregion
|
|
85
85
|
//region block: pre-declaration
|
|
86
86
|
initMetadataForObject(CoreConfig, 'CoreConfig');
|
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
|
|
96
96
|
function standardShuffledCards$default(cards, times, $super) {
|
|
97
97
|
times = times === VOID ? 3 : times;
|
|
98
|
-
return $super === VOID ? this.
|
|
98
|
+
return $super === VOID ? this.y6c(cards, times) : $super.y6c.call(this, cards, times);
|
|
99
99
|
}
|
|
100
100
|
function realLifeShuffledCards$default(cards, times, $super) {
|
|
101
101
|
times = times === VOID ? 20 : times;
|
|
102
|
-
return $super === VOID ? this.
|
|
102
|
+
return $super === VOID ? this.a6d(cards, times) : $super.a6d.call(this, cards, times);
|
|
103
103
|
}
|
|
104
104
|
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
|
|
105
105
|
initMetadataForCompanion(Companion_2);
|
|
@@ -112,12 +112,12 @@
|
|
|
112
112
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
113
113
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
114
114
|
suit = suit === VOID ? null : suit;
|
|
115
|
-
return $super === VOID ? this.
|
|
115
|
+
return $super === VOID ? this.y6e(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.y6e.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
116
116
|
}
|
|
117
117
|
function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
|
|
118
118
|
cardsCount = cardsCount === VOID ? 4 : cardsCount;
|
|
119
119
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
120
|
-
return $super === VOID ? this.
|
|
120
|
+
return $super === VOID ? this.a6f(cards, cardsCount, includeCardNames) : $super.a6f.call(this, cards, cardsCount, includeCardNames);
|
|
121
121
|
}
|
|
122
122
|
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
123
123
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
|
|
127
127
|
//endregion
|
|
128
128
|
function CoreConfig() {
|
|
129
|
-
this.version = '0.0.
|
|
129
|
+
this.version = '0.0.53';
|
|
130
130
|
}
|
|
131
|
-
protoOf(CoreConfig).
|
|
131
|
+
protoOf(CoreConfig).s32 = function () {
|
|
132
132
|
return this.version;
|
|
133
133
|
};
|
|
134
134
|
var CoreConfig_instance;
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
}
|
|
138
138
|
function CardIndexComparator() {
|
|
139
139
|
}
|
|
140
|
-
protoOf(CardIndexComparator).
|
|
141
|
-
return a.
|
|
140
|
+
protoOf(CardIndexComparator).d6c = function (a, b) {
|
|
141
|
+
return a.e6c_1 - b.e6c_1 | 0;
|
|
142
142
|
};
|
|
143
143
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
144
144
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
145
|
-
return this.
|
|
145
|
+
return this.d6c(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
146
146
|
};
|
|
147
147
|
var CardIndexComparator_instance;
|
|
148
148
|
function CardIndexComparator_getInstance() {
|
|
@@ -150,12 +150,12 @@
|
|
|
150
150
|
}
|
|
151
151
|
function CardNumberComparator() {
|
|
152
152
|
}
|
|
153
|
-
protoOf(CardNumberComparator).
|
|
154
|
-
return b.
|
|
153
|
+
protoOf(CardNumberComparator).d6c = function (a, b) {
|
|
154
|
+
return b.f6c() - a.f6c() | 0;
|
|
155
155
|
};
|
|
156
156
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
157
157
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
158
|
-
return this.
|
|
158
|
+
return this.d6c(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
159
159
|
};
|
|
160
160
|
var CardNumberComparator_instance;
|
|
161
161
|
function CardNumberComparator_getInstance() {
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
}
|
|
164
164
|
function distributeCardsBottom(_this__u8e3s4, count) {
|
|
165
165
|
var cardsToDeal = toList(take(_this__u8e3s4, count));
|
|
166
|
-
_this__u8e3s4.
|
|
166
|
+
_this__u8e3s4.c2(cardsToDeal);
|
|
167
167
|
return cardsToDeal;
|
|
168
168
|
}
|
|
169
169
|
function distributeCardsTop(_this__u8e3s4, count) {
|
|
170
170
|
var cardsToDeal = toList(takeLast(_this__u8e3s4, count));
|
|
171
|
-
_this__u8e3s4.
|
|
171
|
+
_this__u8e3s4.c2(cardsToDeal);
|
|
172
172
|
return cardsToDeal;
|
|
173
173
|
}
|
|
174
174
|
function filterByCardName(_this__u8e3s4, name) {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
while (inductionVariable < last) {
|
|
200
200
|
var element = tmp0[inductionVariable];
|
|
201
201
|
inductionVariable = inductionVariable + 1 | 0;
|
|
202
|
-
if (p1.
|
|
202
|
+
if (p1.s2().equals(element)) {
|
|
203
203
|
tmp$ret$1 = true;
|
|
204
204
|
break $l$block;
|
|
205
205
|
}
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
var CardName_HIDDEN_instance;
|
|
226
226
|
function getShortName($this) {
|
|
227
227
|
var tmp;
|
|
228
|
-
switch ($this.
|
|
228
|
+
switch ($this.r2_1) {
|
|
229
229
|
case 0:
|
|
230
230
|
tmp = 'A';
|
|
231
231
|
break;
|
|
@@ -296,41 +296,41 @@
|
|
|
296
296
|
}
|
|
297
297
|
function Companion() {
|
|
298
298
|
}
|
|
299
|
-
protoOf(Companion).
|
|
299
|
+
protoOf(Companion).g6c = function (suit, number) {
|
|
300
300
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
301
301
|
};
|
|
302
|
-
protoOf(Companion).
|
|
302
|
+
protoOf(Companion).h6c = function (suit, cardNumber) {
|
|
303
303
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
304
304
|
};
|
|
305
|
-
protoOf(Companion).
|
|
305
|
+
protoOf(Companion).i6c = function (index) {
|
|
306
306
|
return new GameCard(index);
|
|
307
307
|
};
|
|
308
|
-
protoOf(Companion).
|
|
308
|
+
protoOf(Companion).j6c = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
309
309
|
var tmp;
|
|
310
310
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
311
311
|
tmp = null;
|
|
312
312
|
} else {
|
|
313
313
|
// Inline function 'kotlin.takeIf' call
|
|
314
314
|
var tmp_0;
|
|
315
|
-
if (previousHiddenCardWithMaxIndex.
|
|
315
|
+
if (previousHiddenCardWithMaxIndex.k6c()) {
|
|
316
316
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
317
317
|
} else {
|
|
318
318
|
tmp_0 = null;
|
|
319
319
|
}
|
|
320
320
|
tmp = tmp_0;
|
|
321
321
|
}
|
|
322
|
-
var
|
|
323
|
-
var
|
|
324
|
-
var
|
|
322
|
+
var tmp1_safe_receiver = tmp;
|
|
323
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e6c_1;
|
|
324
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.q6c(tmp2_safe_receiver, playerIndex, reverse);
|
|
325
325
|
var tmp_1;
|
|
326
|
-
if (
|
|
326
|
+
if (tmp3_safe_receiver == null) {
|
|
327
327
|
tmp_1 = null;
|
|
328
328
|
} else {
|
|
329
329
|
// Inline function 'kotlin.let' call
|
|
330
|
-
tmp_1 =
|
|
330
|
+
tmp_1 = tmp3_safe_receiver + 1 | 0;
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
var previousGameCardPosition =
|
|
332
|
+
var tmp4_elvis_lhs = tmp_1;
|
|
333
|
+
var previousGameCardPosition = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
334
334
|
var tmp_2;
|
|
335
335
|
if (reverse) {
|
|
336
336
|
tmp_2 = ((53 + imul(playerIndex, 14) | 0) - position | 0) - previousGameCardPosition | 0;
|
|
@@ -340,10 +340,10 @@
|
|
|
340
340
|
var index = tmp_2;
|
|
341
341
|
return new GameCard(index);
|
|
342
342
|
};
|
|
343
|
-
protoOf(Companion).
|
|
343
|
+
protoOf(Companion).r6c = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
344
344
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
345
345
|
reverse = reverse === VOID ? false : reverse;
|
|
346
|
-
return $super === VOID ? this.
|
|
346
|
+
return $super === VOID ? this.j6c(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.j6c.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
347
347
|
};
|
|
348
348
|
var Companion_instance;
|
|
349
349
|
function Companion_getInstance() {
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
}
|
|
355
355
|
function getCardNumber($this, number) {
|
|
356
356
|
var tmp;
|
|
357
|
-
switch (number.
|
|
357
|
+
switch (number.r2_1) {
|
|
358
358
|
case 12:
|
|
359
359
|
tmp = 0;
|
|
360
360
|
break;
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
return tmp;
|
|
448
448
|
}
|
|
449
449
|
function _get_isShirt__vd98rp($this) {
|
|
450
|
-
return $this.
|
|
450
|
+
return $this.e6c_1 >= 150 && $this.e6c_1 <= 202;
|
|
451
451
|
}
|
|
452
452
|
function CardName(name, ordinal) {
|
|
453
453
|
Enum.call(this, name, ordinal);
|
|
@@ -456,13 +456,13 @@
|
|
|
456
456
|
return getShortName(this);
|
|
457
457
|
};
|
|
458
458
|
function Companion_0() {
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
461
|
-
this.
|
|
462
|
-
this.
|
|
463
|
-
this.
|
|
459
|
+
this.l6c_1 = -1;
|
|
460
|
+
this.m6c_1 = 13;
|
|
461
|
+
this.n6c_1 = 52;
|
|
462
|
+
this.o6c_1 = 150;
|
|
463
|
+
this.p6c_1 = 53;
|
|
464
464
|
}
|
|
465
|
-
protoOf(Companion_0).
|
|
465
|
+
protoOf(Companion_0).q6c = function (_this__u8e3s4, playerIndex, reverse) {
|
|
466
466
|
var tmp;
|
|
467
467
|
if (reverse) {
|
|
468
468
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -532,59 +532,59 @@
|
|
|
532
532
|
return CardName_HIDDEN_instance;
|
|
533
533
|
}
|
|
534
534
|
function GameCard(index) {
|
|
535
|
-
this.
|
|
535
|
+
this.e6c_1 = index;
|
|
536
536
|
}
|
|
537
|
-
protoOf(GameCard).
|
|
537
|
+
protoOf(GameCard).s6c = function () {
|
|
538
538
|
var tmp;
|
|
539
|
-
var containsArg = this.
|
|
539
|
+
var containsArg = this.e6c_1;
|
|
540
540
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
541
541
|
tmp = Suit_DIAMOND_getInstance();
|
|
542
542
|
} else {
|
|
543
|
-
if (this.
|
|
543
|
+
if (this.e6c_1 <= 26) {
|
|
544
544
|
tmp = Suit_SPADE_getInstance();
|
|
545
545
|
} else {
|
|
546
|
-
if (this.
|
|
546
|
+
if (this.e6c_1 <= 39) {
|
|
547
547
|
tmp = Suit_HEART_getInstance();
|
|
548
548
|
} else {
|
|
549
|
-
if (this.
|
|
549
|
+
if (this.e6c_1 <= 52) {
|
|
550
550
|
tmp = Suit_CLUB_getInstance();
|
|
551
551
|
} else {
|
|
552
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
552
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.e6c_1);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
return tmp;
|
|
558
558
|
};
|
|
559
|
-
protoOf(GameCard).
|
|
559
|
+
protoOf(GameCard).f6c = function () {
|
|
560
560
|
var tmp;
|
|
561
|
-
if (this.
|
|
561
|
+
if (this.k6c()) {
|
|
562
562
|
tmp = -1;
|
|
563
563
|
} else {
|
|
564
|
-
tmp = this.
|
|
564
|
+
tmp = this.e6c_1 - imul(13, getIndex(this.s6c())) | 0;
|
|
565
565
|
}
|
|
566
566
|
return tmp;
|
|
567
567
|
};
|
|
568
|
-
protoOf(GameCard).
|
|
569
|
-
return this.
|
|
568
|
+
protoOf(GameCard).s2 = function () {
|
|
569
|
+
return this.k6c() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.f6c());
|
|
570
570
|
};
|
|
571
|
-
protoOf(GameCard).
|
|
572
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
571
|
+
protoOf(GameCard).t6c = function () {
|
|
572
|
+
return !_get_isShirt__vd98rp(this) && !this.k6c();
|
|
573
573
|
};
|
|
574
|
-
protoOf(GameCard).
|
|
575
|
-
return this.
|
|
574
|
+
protoOf(GameCard).k6c = function () {
|
|
575
|
+
return this.e6c_1 >= 53 && this.e6c_1 <= 105;
|
|
576
576
|
};
|
|
577
577
|
protoOf(GameCard).toString = function () {
|
|
578
578
|
if (_get_isShirt__vd98rp(this)) {
|
|
579
|
-
return 'GameCard(SHIRT, ' + this.
|
|
579
|
+
return 'GameCard(SHIRT, ' + this.e6c_1 + ')';
|
|
580
580
|
}
|
|
581
|
-
if (this.
|
|
582
|
-
return 'GameCard(HIDDEN, ' + this.
|
|
581
|
+
if (this.k6c()) {
|
|
582
|
+
return 'GameCard(HIDDEN, ' + this.e6c_1 + ')';
|
|
583
583
|
}
|
|
584
|
-
return 'GameCard(' + this.
|
|
584
|
+
return 'GameCard(' + this.s6c().toString() + this.s2().toString() + ', ' + this.e6c_1 + ')';
|
|
585
585
|
};
|
|
586
586
|
protoOf(GameCard).hashCode = function () {
|
|
587
|
-
return this.
|
|
587
|
+
return this.e6c_1;
|
|
588
588
|
};
|
|
589
589
|
protoOf(GameCard).equals = function (other) {
|
|
590
590
|
if (this === other)
|
|
@@ -592,12 +592,12 @@
|
|
|
592
592
|
if (!(other instanceof GameCard))
|
|
593
593
|
return false;
|
|
594
594
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
595
|
-
if (!(this.
|
|
595
|
+
if (!(this.e6c_1 === tmp0_other_with_cast.e6c_1))
|
|
596
596
|
return false;
|
|
597
597
|
return true;
|
|
598
598
|
};
|
|
599
599
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
600
|
-
return $this.
|
|
600
|
+
return $this.u6c_1.u();
|
|
601
601
|
}
|
|
602
602
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
603
603
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
var Suit_CLUB_instance;
|
|
609
609
|
function getSuitEmoji($this) {
|
|
610
610
|
var tmp;
|
|
611
|
-
switch ($this.
|
|
611
|
+
switch ($this.r2_1) {
|
|
612
612
|
case 0:
|
|
613
613
|
tmp = '\u2666\uFE0F';
|
|
614
614
|
break;
|
|
@@ -639,13 +639,13 @@
|
|
|
639
639
|
Companion_instance_1 = this;
|
|
640
640
|
var tmp = this;
|
|
641
641
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
642
|
-
tmp.
|
|
642
|
+
tmp.u6c_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
643
643
|
}
|
|
644
|
-
protoOf(Companion_1).
|
|
644
|
+
protoOf(Companion_1).k51 = function () {
|
|
645
645
|
return _get_$cachedSerializer__te6jhj(this);
|
|
646
646
|
};
|
|
647
|
-
protoOf(Companion_1).
|
|
648
|
-
return this.
|
|
647
|
+
protoOf(Companion_1).z4k = function (typeParamsSerializers) {
|
|
648
|
+
return this.k51();
|
|
649
649
|
};
|
|
650
650
|
var Companion_instance_1;
|
|
651
651
|
function Companion_getInstance_1() {
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
}
|
|
691
691
|
function getIndex(_this__u8e3s4) {
|
|
692
692
|
var tmp;
|
|
693
|
-
switch (_this__u8e3s4.
|
|
693
|
+
switch (_this__u8e3s4.r2_1) {
|
|
694
694
|
case 0:
|
|
695
695
|
tmp = 0;
|
|
696
696
|
break;
|
|
@@ -740,9 +740,9 @@
|
|
|
740
740
|
}
|
|
741
741
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
742
742
|
var tmp = new $getRandomOrgCardsCOROUTINE$($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
743
|
-
tmp.
|
|
744
|
-
tmp.
|
|
745
|
-
return tmp.
|
|
743
|
+
tmp.n9_1 = Unit_instance;
|
|
744
|
+
tmp.o9_1 = null;
|
|
745
|
+
return tmp.t9();
|
|
746
746
|
}
|
|
747
747
|
function normalizeCards($this, cards, leftCardIndexForEachSuit) {
|
|
748
748
|
var oneSuitCount = cards.m() / get_entries().m() | 0;
|
|
@@ -762,9 +762,9 @@
|
|
|
762
762
|
}
|
|
763
763
|
function Companion_2() {
|
|
764
764
|
}
|
|
765
|
-
protoOf(Companion_2).
|
|
766
|
-
var
|
|
767
|
-
return new CardsDealerProviderImpl(
|
|
765
|
+
protoOf(Companion_2).y6d = function (randomPoolProvider, logger) {
|
|
766
|
+
var tmp0_random = new SecureRandom(logger);
|
|
767
|
+
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
768
768
|
};
|
|
769
769
|
var Companion_instance_2;
|
|
770
770
|
function Companion_getInstance_2() {
|
|
@@ -772,41 +772,41 @@
|
|
|
772
772
|
}
|
|
773
773
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
774
774
|
CoroutineImpl.call(this, resultContinuation);
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
781
|
-
}
|
|
782
|
-
protoOf($createNewShuffledCardDeckCOROUTINE$).
|
|
783
|
-
var suspendResult = this.
|
|
775
|
+
this.h6e_1 = _this__u8e3s4;
|
|
776
|
+
this.i6e_1 = leftCardIndexForEachSuit;
|
|
777
|
+
this.j6e_1 = rightCardIndexForEachSuit;
|
|
778
|
+
this.k6e_1 = approximateRoundCountForGame;
|
|
779
|
+
this.l6e_1 = userData;
|
|
780
|
+
this.m6e_1 = provider;
|
|
781
|
+
}
|
|
782
|
+
protoOf($createNewShuffledCardDeckCOROUTINE$).t9 = function () {
|
|
783
|
+
var suspendResult = this.n9_1;
|
|
784
784
|
$sm: do
|
|
785
785
|
try {
|
|
786
|
-
var tmp = this.
|
|
786
|
+
var tmp = this.l9_1;
|
|
787
787
|
switch (tmp) {
|
|
788
788
|
case 0:
|
|
789
|
-
this.
|
|
790
|
-
this.
|
|
791
|
-
this.
|
|
792
|
-
if (this.
|
|
789
|
+
this.m9_1 = 4;
|
|
790
|
+
this.n6e_1 = this.m6e_1;
|
|
791
|
+
this.o6e_1 = this.n6e_1.r2_1;
|
|
792
|
+
if (this.o6e_1 === 0) {
|
|
793
793
|
var tmp_0 = this;
|
|
794
|
-
var it = this.
|
|
795
|
-
tmp_0.
|
|
796
|
-
this.
|
|
794
|
+
var it = this.h6e_1.v6c(this.i6e_1, this.j6e_1);
|
|
795
|
+
tmp_0.p6e_1 = this.h6e_1.z6c(it);
|
|
796
|
+
this.l9_1 = 3;
|
|
797
797
|
continue $sm;
|
|
798
798
|
} else {
|
|
799
|
-
if (this.
|
|
800
|
-
this.
|
|
801
|
-
suspendResult = getRandomOrgCards(this.
|
|
799
|
+
if (this.o6e_1 === 1) {
|
|
800
|
+
this.l9_1 = 2;
|
|
801
|
+
suspendResult = getRandomOrgCards(this.h6e_1, this.i6e_1, this.j6e_1, this.k6e_1, this.l6e_1, false, this);
|
|
802
802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
803
803
|
return suspendResult;
|
|
804
804
|
}
|
|
805
805
|
continue $sm;
|
|
806
806
|
} else {
|
|
807
|
-
if (this.
|
|
808
|
-
this.
|
|
809
|
-
suspendResult = getRandomOrgCards(this.
|
|
807
|
+
if (this.o6e_1 === 2) {
|
|
808
|
+
this.l9_1 = 1;
|
|
809
|
+
suspendResult = getRandomOrgCards(this.h6e_1, this.i6e_1, this.j6e_1, this.k6e_1, this.l6e_1, true, this);
|
|
810
810
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
811
811
|
return suspendResult;
|
|
812
812
|
}
|
|
@@ -820,86 +820,86 @@
|
|
|
820
820
|
|
|
821
821
|
break;
|
|
822
822
|
case 1:
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
823
|
+
this.p6e_1 = suspendResult;
|
|
824
|
+
this.l9_1 = 3;
|
|
825
825
|
continue $sm;
|
|
826
826
|
case 2:
|
|
827
|
-
this.
|
|
828
|
-
this.
|
|
827
|
+
this.p6e_1 = suspendResult;
|
|
828
|
+
this.l9_1 = 3;
|
|
829
829
|
continue $sm;
|
|
830
830
|
case 3:
|
|
831
|
-
return this.
|
|
831
|
+
return this.p6e_1;
|
|
832
832
|
case 4:
|
|
833
|
-
throw this.
|
|
833
|
+
throw this.o9_1;
|
|
834
834
|
}
|
|
835
835
|
} catch ($p) {
|
|
836
836
|
var e = $p;
|
|
837
|
-
if (this.
|
|
837
|
+
if (this.m9_1 === 4) {
|
|
838
838
|
throw e;
|
|
839
839
|
} else {
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
840
|
+
this.l9_1 = this.m9_1;
|
|
841
|
+
this.o9_1 = e;
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
while (true);
|
|
845
845
|
};
|
|
846
846
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
847
847
|
CoroutineImpl.call(this, resultContinuation);
|
|
848
|
-
this.
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
852
|
-
this.
|
|
853
|
-
this.
|
|
854
|
-
}
|
|
855
|
-
protoOf($getRandomOrgCardsCOROUTINE$).
|
|
856
|
-
var suspendResult = this.
|
|
848
|
+
this.l6d_1 = _this__u8e3s4;
|
|
849
|
+
this.m6d_1 = leftCardIndexForEachSuit;
|
|
850
|
+
this.n6d_1 = rightCardIndexForEachSuit;
|
|
851
|
+
this.o6d_1 = approximateRoundsCount;
|
|
852
|
+
this.p6d_1 = userData;
|
|
853
|
+
this.q6d_1 = signed;
|
|
854
|
+
}
|
|
855
|
+
protoOf($getRandomOrgCardsCOROUTINE$).t9 = function () {
|
|
856
|
+
var suspendResult = this.n9_1;
|
|
857
857
|
$sm: do
|
|
858
858
|
try {
|
|
859
|
-
var tmp = this.
|
|
859
|
+
var tmp = this.l9_1;
|
|
860
860
|
switch (tmp) {
|
|
861
861
|
case 0:
|
|
862
|
-
this.
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
865
|
-
this.
|
|
866
|
-
this.
|
|
867
|
-
suspendResult = this.
|
|
862
|
+
this.m9_1 = 5;
|
|
863
|
+
this.r6d_1 = this.l6d_1.c6d(this.m6d_1, this.n6d_1);
|
|
864
|
+
this.s6d_1 = this.l6d_1.r6e_1;
|
|
865
|
+
this.t6d_1 = this.r6d_1 - 1 | 0;
|
|
866
|
+
this.l9_1 = 1;
|
|
867
|
+
suspendResult = this.s6d_1.q5w(this.o6d_1, this.p6d_1, 0, this.t6d_1, this.r6d_1, this.q6d_1, VOID, this);
|
|
868
868
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
869
869
|
return suspendResult;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
|
-
this.
|
|
872
|
+
this.l9_1 = 2;
|
|
873
873
|
continue $sm;
|
|
874
874
|
case 1:
|
|
875
|
-
this.
|
|
876
|
-
suspendResult = new Result(this.
|
|
877
|
-
this.
|
|
875
|
+
this.u6d_1 = suspendResult.qm_1;
|
|
876
|
+
suspendResult = new Result(this.u6d_1);
|
|
877
|
+
this.l9_1 = 2;
|
|
878
878
|
continue $sm;
|
|
879
879
|
case 2:
|
|
880
|
-
this.
|
|
881
|
-
if (_Result___get_isSuccess__impl__sndoy8(this.
|
|
880
|
+
this.v6d_1 = suspendResult.qm_1;
|
|
881
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.v6d_1)) {
|
|
882
882
|
var tmp_0 = this;
|
|
883
|
-
var this_0 = this.
|
|
883
|
+
var this_0 = this.v6d_1;
|
|
884
884
|
throwOnFailure(this_0);
|
|
885
885
|
var tmp_1 = _Result___get_value__impl__bjfvqg(this_0);
|
|
886
|
-
var
|
|
887
|
-
var this_1 = normalizeCards(this.
|
|
886
|
+
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
887
|
+
var this_1 = normalizeCards(this.l6d_1, tmp2_cards, this.m6d_1);
|
|
888
888
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
889
889
|
var _iterator__ex2g4s = this_1.j();
|
|
890
890
|
while (_iterator__ex2g4s.k()) {
|
|
891
891
|
var item = _iterator__ex2g4s.l();
|
|
892
|
-
destination.e(Companion_instance.
|
|
892
|
+
destination.e(Companion_instance.i6c(item));
|
|
893
893
|
}
|
|
894
|
-
tmp_0.
|
|
895
|
-
this.
|
|
894
|
+
tmp_0.w6d_1 = destination;
|
|
895
|
+
this.l9_1 = 4;
|
|
896
896
|
continue $sm;
|
|
897
897
|
} else {
|
|
898
|
-
this.
|
|
899
|
-
var
|
|
900
|
-
this.
|
|
901
|
-
this.
|
|
902
|
-
suspendResult = this.
|
|
898
|
+
this.x6d_1 = Result__exceptionOrNull_impl_p6xea9(this.v6d_1);
|
|
899
|
+
var tmp3_safe_receiver = this.x6d_1;
|
|
900
|
+
this.l6d_1.s6e_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (tmp3_safe_receiver == null ? null : tmp3_safe_receiver.message), this.x6d_1);
|
|
901
|
+
this.l9_1 = 3;
|
|
902
|
+
suspendResult = this.l6d_1.w6c(this.m6d_1, this.n6d_1, this.o6d_1, this.p6d_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
903
903
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
904
904
|
return suspendResult;
|
|
905
905
|
}
|
|
@@ -907,31 +907,31 @@
|
|
|
907
907
|
}
|
|
908
908
|
|
|
909
909
|
case 3:
|
|
910
|
-
this.
|
|
911
|
-
this.
|
|
910
|
+
this.w6d_1 = suspendResult;
|
|
911
|
+
this.l9_1 = 4;
|
|
912
912
|
continue $sm;
|
|
913
913
|
case 4:
|
|
914
|
-
return this.
|
|
914
|
+
return this.w6d_1;
|
|
915
915
|
case 5:
|
|
916
|
-
throw this.
|
|
916
|
+
throw this.o9_1;
|
|
917
917
|
}
|
|
918
918
|
} catch ($p) {
|
|
919
919
|
var e = $p;
|
|
920
|
-
if (this.
|
|
920
|
+
if (this.m9_1 === 5) {
|
|
921
921
|
throw e;
|
|
922
922
|
} else {
|
|
923
|
-
this.
|
|
924
|
-
this.
|
|
923
|
+
this.l9_1 = this.m9_1;
|
|
924
|
+
this.o9_1 = e;
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
while (true);
|
|
928
928
|
};
|
|
929
929
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
930
|
+
this.q6e_1 = random;
|
|
931
|
+
this.r6e_1 = randomPoolProvider;
|
|
932
|
+
this.s6e_1 = logger;
|
|
933
933
|
}
|
|
934
|
-
protoOf(CardsDealerProviderImpl).
|
|
934
|
+
protoOf(CardsDealerProviderImpl).v6c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
935
935
|
// Inline function 'kotlin.collections.flatMap' call
|
|
936
936
|
var tmp0 = get_entries();
|
|
937
937
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -940,7 +940,7 @@
|
|
|
940
940
|
while (_iterator__ex2g4s.k()) {
|
|
941
941
|
var element = _iterator__ex2g4s.l();
|
|
942
942
|
// Inline function 'kotlin.collections.map' call
|
|
943
|
-
var this_0 = this.
|
|
943
|
+
var this_0 = this.t6e(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
944
944
|
// Inline function 'kotlin.collections.mapTo' call
|
|
945
945
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
946
946
|
var inductionVariable = this_0.a1_1;
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
var item = inductionVariable;
|
|
951
951
|
inductionVariable = inductionVariable + 1 | 0;
|
|
952
952
|
var it = item;
|
|
953
|
-
var tmp$ret$0 = Companion_instance.
|
|
953
|
+
var tmp$ret$0 = Companion_instance.g6c(element, it);
|
|
954
954
|
destination_0.e(tmp$ret$0);
|
|
955
955
|
}
|
|
956
956
|
while (!(item === last));
|
|
@@ -959,27 +959,27 @@
|
|
|
959
959
|
}
|
|
960
960
|
return destination;
|
|
961
961
|
};
|
|
962
|
-
protoOf(CardsDealerProviderImpl).
|
|
962
|
+
protoOf(CardsDealerProviderImpl).t6e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
963
963
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
964
964
|
};
|
|
965
|
-
protoOf(CardsDealerProviderImpl).
|
|
965
|
+
protoOf(CardsDealerProviderImpl).c6d = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
966
966
|
// Inline function 'kotlin.collections.sumOf' call
|
|
967
967
|
var sum = 0;
|
|
968
968
|
var _iterator__ex2g4s = get_entries().j();
|
|
969
969
|
while (_iterator__ex2g4s.k()) {
|
|
970
970
|
var element = _iterator__ex2g4s.l();
|
|
971
971
|
var tmp = sum;
|
|
972
|
-
sum = tmp + count(this.
|
|
972
|
+
sum = tmp + count(this.t6e(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
973
973
|
}
|
|
974
974
|
return sum;
|
|
975
975
|
};
|
|
976
|
-
protoOf(CardsDealerProviderImpl).
|
|
976
|
+
protoOf(CardsDealerProviderImpl).w6c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
977
977
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
978
|
-
tmp.
|
|
979
|
-
tmp.
|
|
980
|
-
return tmp.
|
|
978
|
+
tmp.n9_1 = Unit_instance;
|
|
979
|
+
tmp.o9_1 = null;
|
|
980
|
+
return tmp.t9();
|
|
981
981
|
};
|
|
982
|
-
protoOf(CardsDealerProviderImpl).
|
|
982
|
+
protoOf(CardsDealerProviderImpl).x6c = function (count, cards) {
|
|
983
983
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
984
984
|
// Inline function 'kotlin.apply' call
|
|
985
985
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -990,7 +990,7 @@
|
|
|
990
990
|
if (this_0.m() === count) {
|
|
991
991
|
break $l$block;
|
|
992
992
|
}
|
|
993
|
-
var hasSimilarCard = this_0.
|
|
993
|
+
var hasSimilarCard = this_0.v1(card);
|
|
994
994
|
if (hasSimilarCard) {
|
|
995
995
|
continue $l$loop_0;
|
|
996
996
|
}
|
|
@@ -1010,7 +1010,7 @@
|
|
|
1010
1010
|
var _iterator__ex2g4s_0 = this_0.j();
|
|
1011
1011
|
while (_iterator__ex2g4s_0.k()) {
|
|
1012
1012
|
var element = _iterator__ex2g4s_0.l();
|
|
1013
|
-
if (element.
|
|
1013
|
+
if (element.f6c() === card.f6c()) {
|
|
1014
1014
|
tmp$ret$2 = true;
|
|
1015
1015
|
break $l$block_1;
|
|
1016
1016
|
}
|
|
@@ -1025,7 +1025,7 @@
|
|
|
1025
1025
|
}
|
|
1026
1026
|
return this_0;
|
|
1027
1027
|
};
|
|
1028
|
-
protoOf(CardsDealerProviderImpl).
|
|
1028
|
+
protoOf(CardsDealerProviderImpl).y6c = function (cards, times) {
|
|
1029
1029
|
// Inline function 'kotlin.let' call
|
|
1030
1030
|
var shuffled = toMutableList(cards);
|
|
1031
1031
|
var inductionVariable = 0;
|
|
@@ -1033,63 +1033,63 @@
|
|
|
1033
1033
|
do {
|
|
1034
1034
|
var i = inductionVariable;
|
|
1035
1035
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1036
|
-
shuffled = this.
|
|
1036
|
+
shuffled = this.q6e_1.c62(shuffled);
|
|
1037
1037
|
}
|
|
1038
1038
|
while (inductionVariable < times);
|
|
1039
1039
|
return shuffled;
|
|
1040
1040
|
};
|
|
1041
|
-
protoOf(CardsDealerProviderImpl).
|
|
1042
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1041
|
+
protoOf(CardsDealerProviderImpl).a6d = function (cards, times) {
|
|
1042
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.q6e_1), times, this.q6e_1));
|
|
1043
1043
|
};
|
|
1044
1044
|
function Companion_3() {
|
|
1045
1045
|
}
|
|
1046
|
-
protoOf(Companion_3).
|
|
1046
|
+
protoOf(Companion_3).u6e = function () {
|
|
1047
1047
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1048
1048
|
// Inline function 'kotlin.apply' call
|
|
1049
1049
|
var this_0 = ArrayList_init_$Create$();
|
|
1050
|
-
this_0.n(listOf([Companion_instance.
|
|
1051
|
-
this_0.n(listOf([Companion_instance.
|
|
1052
|
-
this_0.n(listOf([Companion_instance.
|
|
1053
|
-
this_0.n(listOf([Companion_instance.
|
|
1054
|
-
this_0.n(listOf([Companion_instance.
|
|
1050
|
+
this_0.n(listOf([Companion_instance.h6c(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1051
|
+
this_0.n(listOf([Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.h6c(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.h6c(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.h6c(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1052
|
+
this_0.n(listOf([Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1053
|
+
this_0.n(listOf([Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.h6c(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1054
|
+
this_0.n(listOf([Companion_instance.h6c(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.h6c(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.h6c(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1055
1055
|
return this_0;
|
|
1056
1056
|
};
|
|
1057
|
-
protoOf(Companion_3).
|
|
1058
|
-
return listOf([Companion_instance.
|
|
1057
|
+
protoOf(Companion_3).v6e = function () {
|
|
1058
|
+
return listOf([Companion_instance.h6c(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.h6c(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.h6c(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1059
1059
|
};
|
|
1060
1060
|
var Companion_instance_3;
|
|
1061
1061
|
function Companion_getInstance_3() {
|
|
1062
1062
|
return Companion_instance_3;
|
|
1063
1063
|
}
|
|
1064
1064
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1065
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1066
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1067
|
-
this.
|
|
1068
|
-
this.
|
|
1065
|
+
cards = cards === VOID ? Companion_instance_3.u6e() : cards;
|
|
1066
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.v6e() : cardsForLot;
|
|
1067
|
+
this.w6e_1 = cards;
|
|
1068
|
+
this.x6e_1 = cardsForLot;
|
|
1069
1069
|
}
|
|
1070
|
-
protoOf(FakeCardsDealerProvider).
|
|
1071
|
-
return this.
|
|
1070
|
+
protoOf(FakeCardsDealerProvider).v6c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1071
|
+
return this.w6e_1;
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf(FakeCardsDealerProvider).
|
|
1074
|
-
return this.
|
|
1073
|
+
protoOf(FakeCardsDealerProvider).w6c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1074
|
+
return this.w6e_1;
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(FakeCardsDealerProvider).
|
|
1077
|
-
return this.
|
|
1076
|
+
protoOf(FakeCardsDealerProvider).x6c = function (count, cards) {
|
|
1077
|
+
return this.x6e_1;
|
|
1078
1078
|
};
|
|
1079
|
-
protoOf(FakeCardsDealerProvider).
|
|
1079
|
+
protoOf(FakeCardsDealerProvider).y6c = function (cards, times) {
|
|
1080
1080
|
return cards;
|
|
1081
1081
|
};
|
|
1082
|
-
protoOf(FakeCardsDealerProvider).
|
|
1082
|
+
protoOf(FakeCardsDealerProvider).a6d = function (cards, times) {
|
|
1083
1083
|
return cards;
|
|
1084
1084
|
};
|
|
1085
|
-
protoOf(FakeCardsDealerProvider).
|
|
1086
|
-
return this.
|
|
1085
|
+
protoOf(FakeCardsDealerProvider).c6d = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1086
|
+
return this.w6e_1.m();
|
|
1087
1087
|
};
|
|
1088
1088
|
function CombinationsCheckerProvider() {
|
|
1089
1089
|
}
|
|
1090
1090
|
function createCombination($this, cards, supportedCombinations) {
|
|
1091
1091
|
var size = cards.m();
|
|
1092
|
-
if (supportedCombinations.
|
|
1092
|
+
if (supportedCombinations.v1(size)) {
|
|
1093
1093
|
return cards;
|
|
1094
1094
|
}
|
|
1095
1095
|
var fromLongestCombinations = asReversed(sorted(supportedCombinations));
|
|
@@ -1110,23 +1110,23 @@
|
|
|
1110
1110
|
return takeLast(cards, longestCombinationSupport);
|
|
1111
1111
|
}
|
|
1112
1112
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1113
|
-
this.
|
|
1113
|
+
this.d6f_1 = function_0;
|
|
1114
1114
|
}
|
|
1115
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1116
|
-
return this.
|
|
1115
|
+
protoOf(sam$kotlin_Comparator$0).bd = function (a, b) {
|
|
1116
|
+
return this.d6f_1(a, b);
|
|
1117
1117
|
};
|
|
1118
1118
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1119
|
-
return this.
|
|
1119
|
+
return this.bd(a, b);
|
|
1120
1120
|
};
|
|
1121
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1122
|
-
return this.
|
|
1121
|
+
protoOf(sam$kotlin_Comparator$0).u3 = function () {
|
|
1122
|
+
return this.d6f_1;
|
|
1123
1123
|
};
|
|
1124
1124
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1125
1125
|
var tmp;
|
|
1126
1126
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1127
1127
|
var tmp_0;
|
|
1128
1128
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1129
|
-
tmp_0 = equals(this.
|
|
1129
|
+
tmp_0 = equals(this.u3(), other.u3());
|
|
1130
1130
|
} else {
|
|
1131
1131
|
tmp_0 = false;
|
|
1132
1132
|
}
|
|
@@ -1137,17 +1137,17 @@
|
|
|
1137
1137
|
return tmp;
|
|
1138
1138
|
};
|
|
1139
1139
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1140
|
-
return hashCode(this.
|
|
1140
|
+
return hashCode(this.u3());
|
|
1141
1141
|
};
|
|
1142
1142
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1143
1143
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1144
|
-
var tmp = first_0(a).
|
|
1145
|
-
var tmp$ret$1 = first_0(b).
|
|
1144
|
+
var tmp = first_0(a).e6c_1;
|
|
1145
|
+
var tmp$ret$1 = first_0(b).e6c_1;
|
|
1146
1146
|
return compareValues(tmp, tmp$ret$1);
|
|
1147
1147
|
}
|
|
1148
1148
|
function CombinationsCheckerProviderImpl() {
|
|
1149
1149
|
}
|
|
1150
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1150
|
+
protoOf(CombinationsCheckerProviderImpl).y6e = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1151
1151
|
// Inline function 'kotlin.apply' call
|
|
1152
1152
|
var this_0 = toMutableList(cards);
|
|
1153
1153
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1157,7 +1157,7 @@
|
|
|
1157
1157
|
var _iterator__ex2g4s = this_0.j();
|
|
1158
1158
|
while (_iterator__ex2g4s.k()) {
|
|
1159
1159
|
var element = _iterator__ex2g4s.l();
|
|
1160
|
-
if (element.
|
|
1160
|
+
if (element.t6c()) {
|
|
1161
1161
|
destination.e(element);
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
@@ -1174,16 +1174,16 @@
|
|
|
1174
1174
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1175
1175
|
var previousCard = lastOrNull(combinationCards);
|
|
1176
1176
|
var currentCard = sortedByIndexCards.o(i);
|
|
1177
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1178
|
-
var passedCardNamesCheck = includeCardNames == null || includeCardNames.
|
|
1179
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1177
|
+
var isNextInRow = !(previousCard == null) && currentCard.e6c_1 === (previousCard.e6c_1 + 1 | 0) && currentCard.s6c().equals(previousCard.s6c());
|
|
1178
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.v1(currentCard.s2());
|
|
1179
|
+
var passedSuitCheck = suit == null || currentCard.s6c().equals(suit);
|
|
1180
1180
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1181
1181
|
combinationCards.e(currentCard);
|
|
1182
1182
|
} else {
|
|
1183
1183
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1184
|
-
combinations.n(this.
|
|
1184
|
+
combinations.n(this.c6f(toMutableList(combinationCards), supportedCombinations));
|
|
1185
1185
|
}
|
|
1186
|
-
combinationCards.
|
|
1186
|
+
combinationCards.d2();
|
|
1187
1187
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
1188
1188
|
combinationCards.e(currentCard);
|
|
1189
1189
|
}
|
|
@@ -1191,11 +1191,11 @@
|
|
|
1191
1191
|
}
|
|
1192
1192
|
while (inductionVariable <= last);
|
|
1193
1193
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1194
|
-
combinations.n(this.
|
|
1194
|
+
combinations.n(this.c6f(toMutableList(combinationCards), supportedCombinations));
|
|
1195
1195
|
}
|
|
1196
1196
|
return combinations;
|
|
1197
1197
|
};
|
|
1198
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1198
|
+
protoOf(CombinationsCheckerProviderImpl).a6f = function (cards, cardsCount, includeCardNames) {
|
|
1199
1199
|
// Inline function 'kotlin.apply' call
|
|
1200
1200
|
var this_0 = toMutableList(cards);
|
|
1201
1201
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
var _iterator__ex2g4s = this_0.j();
|
|
1206
1206
|
while (_iterator__ex2g4s.k()) {
|
|
1207
1207
|
var element = _iterator__ex2g4s.l();
|
|
1208
|
-
if (element.
|
|
1208
|
+
if (element.t6c()) {
|
|
1209
1209
|
destination.e(element);
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
@@ -1215,7 +1215,7 @@
|
|
|
1215
1215
|
var _iterator__ex2g4s_0 = destination.j();
|
|
1216
1216
|
while (_iterator__ex2g4s_0.k()) {
|
|
1217
1217
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
1218
|
-
if (includeCardNames == null || includeCardNames.
|
|
1218
|
+
if (includeCardNames == null || includeCardNames.v1(element_0.s2())) {
|
|
1219
1219
|
destination_0.e(element_0);
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
@@ -1226,13 +1226,13 @@
|
|
|
1226
1226
|
var _iterator__ex2g4s_1 = sortedByNumberCards.j();
|
|
1227
1227
|
while (_iterator__ex2g4s_1.k()) {
|
|
1228
1228
|
var element_1 = _iterator__ex2g4s_1.l();
|
|
1229
|
-
var key = element_1.
|
|
1229
|
+
var key = element_1.f6c();
|
|
1230
1230
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1231
|
-
var value = destination_1.
|
|
1231
|
+
var value = destination_1.k2(key);
|
|
1232
1232
|
var tmp;
|
|
1233
1233
|
if (value == null) {
|
|
1234
1234
|
var answer = ArrayList_init_$Create$();
|
|
1235
|
-
destination_1.
|
|
1235
|
+
destination_1.n2(key, answer);
|
|
1236
1236
|
tmp = answer;
|
|
1237
1237
|
} else {
|
|
1238
1238
|
tmp = value;
|
|
@@ -1248,10 +1248,10 @@
|
|
|
1248
1248
|
while (_iterator__ex2g4s_2.k()) {
|
|
1249
1249
|
var element_2 = _iterator__ex2g4s_2.l();
|
|
1250
1250
|
if (element_2.u().m() >= cardsCount) {
|
|
1251
|
-
destination_2.
|
|
1251
|
+
destination_2.n2(element_2.t(), element_2.u());
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
|
-
var combinations = destination_2.
|
|
1254
|
+
var combinations = destination_2.m2();
|
|
1255
1255
|
// Inline function 'kotlin.collections.map' call
|
|
1256
1256
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1257
1257
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
@@ -1263,7 +1263,7 @@
|
|
|
1263
1263
|
}
|
|
1264
1264
|
return destination_3;
|
|
1265
1265
|
};
|
|
1266
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1266
|
+
protoOf(CombinationsCheckerProviderImpl).c6f = function (cards, supportedCombinations) {
|
|
1267
1267
|
// Inline function 'kotlin.collections.minOf' call
|
|
1268
1268
|
var iterator = supportedCombinations.j();
|
|
1269
1269
|
if (!iterator.k())
|
|
@@ -1282,7 +1282,7 @@
|
|
|
1282
1282
|
while (cardsToCheck.m() >= shortestCombinationSupport) {
|
|
1283
1283
|
var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
|
|
1284
1284
|
combinations.e(toList(combinationCards));
|
|
1285
|
-
cardsToCheck.
|
|
1285
|
+
cardsToCheck.c2(combinationCards);
|
|
1286
1286
|
}
|
|
1287
1287
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
1288
1288
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
@@ -1293,28 +1293,28 @@
|
|
|
1293
1293
|
function DealerReducer() {
|
|
1294
1294
|
}
|
|
1295
1295
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1296
|
-
this.
|
|
1297
|
-
this.
|
|
1296
|
+
this.h6f_1 = logger;
|
|
1297
|
+
this.i6f_1 = enableLogs;
|
|
1298
1298
|
}
|
|
1299
|
-
protoOf(DealerReducerImpl).
|
|
1299
|
+
protoOf(DealerReducerImpl).e6f = function (cards, cardsToRemove) {
|
|
1300
1300
|
var list = cards;
|
|
1301
1301
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1302
1302
|
while (_iterator__ex2g4s.k()) {
|
|
1303
1303
|
var gameCard = _iterator__ex2g4s.l();
|
|
1304
|
-
list = this.
|
|
1304
|
+
list = this.f6f(list, gameCard);
|
|
1305
1305
|
}
|
|
1306
1306
|
return list;
|
|
1307
1307
|
};
|
|
1308
|
-
protoOf(DealerReducerImpl).
|
|
1308
|
+
protoOf(DealerReducerImpl).f6f = function (cards, cardToRemove) {
|
|
1309
1309
|
var tmp;
|
|
1310
|
-
if (!cardToRemove.
|
|
1311
|
-
if (this.
|
|
1312
|
-
this.
|
|
1310
|
+
if (!cardToRemove.k6c() && cards.v1(cardToRemove)) {
|
|
1311
|
+
if (this.i6f_1) {
|
|
1312
|
+
this.h6f_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1313
1313
|
}
|
|
1314
1314
|
tmp = minus(cards, cardToRemove);
|
|
1315
1315
|
} else {
|
|
1316
|
-
if (this.
|
|
1317
|
-
this.
|
|
1316
|
+
if (this.i6f_1) {
|
|
1317
|
+
this.h6f_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1318
1318
|
}
|
|
1319
1319
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1320
1320
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1322,7 +1322,7 @@
|
|
|
1322
1322
|
var _iterator__ex2g4s = cards.j();
|
|
1323
1323
|
while (_iterator__ex2g4s.k()) {
|
|
1324
1324
|
var element = _iterator__ex2g4s.l();
|
|
1325
|
-
if (!element.
|
|
1325
|
+
if (!element.k6c()) {
|
|
1326
1326
|
destination.e(element);
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
@@ -1333,34 +1333,34 @@
|
|
|
1333
1333
|
var _iterator__ex2g4s_0 = cards.j();
|
|
1334
1334
|
while (_iterator__ex2g4s_0.k()) {
|
|
1335
1335
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
1336
|
-
if (element_0.
|
|
1336
|
+
if (element_0.k6c()) {
|
|
1337
1337
|
destination_0.e(element_0);
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
var hiddenCards = destination_0;
|
|
1341
1341
|
if (hiddenCards.p()) {
|
|
1342
|
-
this.
|
|
1342
|
+
this.h6f_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1343
1343
|
}
|
|
1344
1344
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1345
1345
|
}
|
|
1346
1346
|
return tmp;
|
|
1347
1347
|
};
|
|
1348
|
-
protoOf(DealerReducerImpl).
|
|
1349
|
-
if (this.
|
|
1350
|
-
this.
|
|
1348
|
+
protoOf(DealerReducerImpl).g6f = function (cards, cardToAdd) {
|
|
1349
|
+
if (this.i6f_1) {
|
|
1350
|
+
this.h6f_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1351
1351
|
}
|
|
1352
|
-
if (cards.
|
|
1353
|
-
this.
|
|
1352
|
+
if (cards.v1(cardToAdd)) {
|
|
1353
|
+
this.h6f_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1354
1354
|
}
|
|
1355
1355
|
return plus_0(cards, cardToAdd);
|
|
1356
1356
|
};
|
|
1357
1357
|
//region block: post-declaration
|
|
1358
|
-
protoOf(CardsDealerProviderImpl).
|
|
1359
|
-
protoOf(CardsDealerProviderImpl).
|
|
1360
|
-
protoOf(FakeCardsDealerProvider).
|
|
1361
|
-
protoOf(FakeCardsDealerProvider).
|
|
1362
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1363
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1358
|
+
protoOf(CardsDealerProviderImpl).z6c = standardShuffledCards$default;
|
|
1359
|
+
protoOf(CardsDealerProviderImpl).b6d = realLifeShuffledCards$default;
|
|
1360
|
+
protoOf(FakeCardsDealerProvider).z6c = standardShuffledCards$default;
|
|
1361
|
+
protoOf(FakeCardsDealerProvider).b6d = realLifeShuffledCards$default;
|
|
1362
|
+
protoOf(CombinationsCheckerProviderImpl).z6e = findCardsInRowCombinations$default;
|
|
1363
|
+
protoOf(CombinationsCheckerProviderImpl).b6f = findSameCardsNumberCombinations$default;
|
|
1364
1364
|
//endregion
|
|
1365
1365
|
//region block: init
|
|
1366
1366
|
CoreConfig_instance = new CoreConfig();
|