client_plugin_logic_deb 1.8.232 → 1.8.244
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 +82 -82
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +735 -730
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1556 -1521
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +12 -7
- package/Logic_Debertz-client_plugin.js +4688 -4686
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2098 -2098
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +16021 -15859
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +10716 -10633
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1204 -1168
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2322 -2585
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3156 -3162
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +978 -577
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2026 -2047
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1556 -1556
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +219 -219
- package/ktor-ktor-client-core.js +2533 -2533
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +747 -747
- package/ktor-ktor-io.js +1650 -1650
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +273 -273
- package/ktor-ktor-serialization.js +131 -131
- package/ktor-ktor-utils.js +727 -727
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +60 -60
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +272 -272
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +987 -986
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +20 -20
- package/uuid.js +32 -32
|
@@ -19,66 +19,66 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
24
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
25
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
26
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
27
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.uc;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.yb;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.kb;
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.sg;
|
|
26
|
+
var Comparator = kotlin_kotlin.$_$.eg;
|
|
27
|
+
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
28
28
|
var VOID = kotlin_kotlin.$_$.f;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
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.$_$.
|
|
30
|
+
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
31
|
+
var take = kotlin_kotlin.$_$.o9;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.s9;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.n9;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.qh;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
36
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.hg;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.xa;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.k;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.oh;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
44
|
-
var until = kotlin_kotlin.$_$.
|
|
45
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
44
|
+
var until = kotlin_kotlin.$_$.kd;
|
|
45
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
46
46
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
47
|
-
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.
|
|
48
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
49
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
50
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
51
|
-
var count = kotlin_kotlin.$_$.
|
|
52
|
-
var Result = kotlin_kotlin.$_$.
|
|
53
|
-
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.
|
|
54
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
55
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
56
|
-
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.
|
|
57
|
-
var addAll = kotlin_kotlin.$_$.
|
|
58
|
-
var Collection = kotlin_kotlin.$_$.
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
61
|
-
var listOf = kotlin_kotlin.$_$.
|
|
62
|
-
var first = kotlin_kotlin.$_$.
|
|
63
|
-
var sorted = kotlin_kotlin.$_$.
|
|
64
|
-
var asReversed = kotlin_kotlin.$_$.
|
|
65
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
66
|
-
var equals = kotlin_kotlin.$_$.
|
|
67
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
68
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
69
|
-
var first_0 = kotlin_kotlin.$_$.
|
|
70
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
71
|
-
var sortWith = kotlin_kotlin.$_$.
|
|
72
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
47
|
+
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.k;
|
|
48
|
+
var CoroutineImpl = kotlin_kotlin.$_$.va;
|
|
49
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
50
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.vb;
|
|
51
|
+
var count = kotlin_kotlin.$_$.j7;
|
|
52
|
+
var Result = kotlin_kotlin.$_$.qg;
|
|
53
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.g3;
|
|
54
|
+
var throwOnFailure = kotlin_kotlin.$_$.uh;
|
|
55
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.j3;
|
|
56
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.i3;
|
|
57
|
+
var addAll = kotlin_kotlin.$_$.g6;
|
|
58
|
+
var Collection = kotlin_kotlin.$_$.r5;
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.hc;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.w9;
|
|
61
|
+
var listOf = kotlin_kotlin.$_$.q8;
|
|
62
|
+
var first = kotlin_kotlin.$_$.v7;
|
|
63
|
+
var sorted = kotlin_kotlin.$_$.l9;
|
|
64
|
+
var asReversed = kotlin_kotlin.$_$.k6;
|
|
65
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.d2;
|
|
66
|
+
var equals = kotlin_kotlin.$_$.lb;
|
|
67
|
+
var FunctionAdapter = kotlin_kotlin.$_$.za;
|
|
68
|
+
var hashCode = kotlin_kotlin.$_$.sb;
|
|
69
|
+
var first_0 = kotlin_kotlin.$_$.u7;
|
|
70
|
+
var compareValues = kotlin_kotlin.$_$.ea;
|
|
71
|
+
var sortWith = kotlin_kotlin.$_$.j9;
|
|
72
|
+
var lastOrNull = kotlin_kotlin.$_$.k8;
|
|
73
73
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
74
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
75
|
-
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
76
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
77
|
-
var toString = kotlin_kotlin.$_$.
|
|
78
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
79
|
-
var plus = kotlin_kotlin.$_$.
|
|
80
|
-
var minus = kotlin_kotlin.$_$.
|
|
81
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
74
|
+
var sortedWith = kotlin_kotlin.$_$.k9;
|
|
75
|
+
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.b2;
|
|
76
|
+
var compareTo = kotlin_kotlin.$_$.jb;
|
|
77
|
+
var toString = kotlin_kotlin.$_$.yc;
|
|
78
|
+
var dropLast = kotlin_kotlin.$_$.l7;
|
|
79
|
+
var plus = kotlin_kotlin.$_$.z8;
|
|
80
|
+
var minus = kotlin_kotlin.$_$.u8;
|
|
81
|
+
var plus_0 = kotlin_kotlin.$_$.a9;
|
|
82
82
|
//endregion
|
|
83
83
|
//region block: pre-declaration
|
|
84
84
|
initMetadataForObject(CoreConfig, 'CoreConfig');
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
|
|
95
95
|
function standardShuffledCards$default(cards, times, $super) {
|
|
96
96
|
times = times === VOID ? 3 : times;
|
|
97
|
-
return $super === VOID ? this.
|
|
97
|
+
return $super === VOID ? this.x6a(cards, times) : $super.x6a.call(this, cards, times);
|
|
98
98
|
}
|
|
99
99
|
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
|
|
100
100
|
initMetadataForCompanion(Companion_2);
|
|
@@ -107,12 +107,12 @@
|
|
|
107
107
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
108
108
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
109
109
|
suit = suit === VOID ? null : suit;
|
|
110
|
-
return $super === VOID ? this.
|
|
110
|
+
return $super === VOID ? this.t6c(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.t6c.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
111
111
|
}
|
|
112
112
|
function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
|
|
113
113
|
cardsCount = cardsCount === VOID ? 4 : cardsCount;
|
|
114
114
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
115
|
-
return $super === VOID ? this.
|
|
115
|
+
return $super === VOID ? this.v6c(cards, cardsCount, includeCardNames) : $super.v6c.call(this, cards, cardsCount, includeCardNames);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
118
118
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
function CoreConfig() {
|
|
124
124
|
this.version = '0.0.37';
|
|
125
125
|
}
|
|
126
|
-
protoOf(CoreConfig).
|
|
126
|
+
protoOf(CoreConfig).i33 = function () {
|
|
127
127
|
return this.version;
|
|
128
128
|
};
|
|
129
129
|
var CoreConfig_instance;
|
|
@@ -131,30 +131,30 @@
|
|
|
131
131
|
return CoreConfig_instance;
|
|
132
132
|
}
|
|
133
133
|
function CardSuitSortingComparator(suit) {
|
|
134
|
-
this.
|
|
134
|
+
this.c6a_1 = suit;
|
|
135
135
|
}
|
|
136
|
-
protoOf(CardSuitSortingComparator).
|
|
137
|
-
if (!a.
|
|
136
|
+
protoOf(CardSuitSortingComparator).d6a = function (a, b) {
|
|
137
|
+
if (!a.f6a() || !b.f6a()) {
|
|
138
138
|
return 0;
|
|
139
139
|
}
|
|
140
|
-
var suitIndexL = this.
|
|
141
|
-
var suitIndexR = this.
|
|
142
|
-
var sortedNumberL = imul(suitIndexL, 13) + a.
|
|
143
|
-
var sortedNumberR = imul(suitIndexR, 13) + b.
|
|
140
|
+
var suitIndexL = this.c6a_1.u1(a.g6a());
|
|
141
|
+
var suitIndexR = this.c6a_1.u1(b.g6a());
|
|
142
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.h6a() | 0;
|
|
143
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.h6a() | 0;
|
|
144
144
|
return sortedNumberL - sortedNumberR | 0;
|
|
145
145
|
};
|
|
146
146
|
protoOf(CardSuitSortingComparator).compare = function (a, b) {
|
|
147
147
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
148
|
-
return this.
|
|
148
|
+
return this.d6a(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
149
149
|
};
|
|
150
150
|
function CardIndexComparator() {
|
|
151
151
|
}
|
|
152
|
-
protoOf(CardIndexComparator).
|
|
153
|
-
return a.
|
|
152
|
+
protoOf(CardIndexComparator).d6a = function (a, b) {
|
|
153
|
+
return a.e6a_1 - b.e6a_1 | 0;
|
|
154
154
|
};
|
|
155
155
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
156
156
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
157
|
-
return this.
|
|
157
|
+
return this.d6a(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
158
158
|
};
|
|
159
159
|
var CardIndexComparator_instance;
|
|
160
160
|
function CardIndexComparator_getInstance() {
|
|
@@ -176,12 +176,12 @@
|
|
|
176
176
|
}
|
|
177
177
|
function CardNumberComparator() {
|
|
178
178
|
}
|
|
179
|
-
protoOf(CardNumberComparator).
|
|
180
|
-
return b.
|
|
179
|
+
protoOf(CardNumberComparator).d6a = function (a, b) {
|
|
180
|
+
return b.h6a() - a.h6a() | 0;
|
|
181
181
|
};
|
|
182
182
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
183
183
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
184
|
-
return this.
|
|
184
|
+
return this.d6a(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
185
185
|
};
|
|
186
186
|
var CardNumberComparator_instance;
|
|
187
187
|
function CardNumberComparator_getInstance() {
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
var element = indexedObject[inductionVariable];
|
|
213
213
|
inductionVariable = inductionVariable + 1 | 0;
|
|
214
214
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.byCardNamePredicate.<anonymous>.<anonymous>' call
|
|
215
|
-
if (p1.
|
|
215
|
+
if (p1.o2().equals(element)) {
|
|
216
216
|
tmp$ret$1 = true;
|
|
217
217
|
break $l$block;
|
|
218
218
|
}
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
var CardName_STUB_instance;
|
|
239
239
|
function getShortName($this) {
|
|
240
240
|
var tmp;
|
|
241
|
-
switch ($this.
|
|
241
|
+
switch ($this.n2_1) {
|
|
242
242
|
case 0:
|
|
243
243
|
tmp = 'A';
|
|
244
244
|
break;
|
|
@@ -309,16 +309,16 @@
|
|
|
309
309
|
}
|
|
310
310
|
function Companion() {
|
|
311
311
|
}
|
|
312
|
-
protoOf(Companion).
|
|
312
|
+
protoOf(Companion).i6a = function (suit, number) {
|
|
313
313
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
314
314
|
};
|
|
315
|
-
protoOf(Companion).
|
|
315
|
+
protoOf(Companion).j6a = function (suit, cardNumber) {
|
|
316
316
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
317
317
|
};
|
|
318
|
-
protoOf(Companion).
|
|
318
|
+
protoOf(Companion).k6a = function (index) {
|
|
319
319
|
return new GameCard(index);
|
|
320
320
|
};
|
|
321
|
-
protoOf(Companion).
|
|
321
|
+
protoOf(Companion).l6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
322
322
|
var tmp;
|
|
323
323
|
if (previousStubCardWithMaxIndex == null) {
|
|
324
324
|
tmp = null;
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
// Inline function 'kotlin.contracts.contract' call
|
|
328
328
|
var tmp_0;
|
|
329
329
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
|
|
330
|
-
if (previousStubCardWithMaxIndex.
|
|
330
|
+
if (previousStubCardWithMaxIndex.m6a()) {
|
|
331
331
|
tmp_0 = previousStubCardWithMaxIndex;
|
|
332
332
|
} else {
|
|
333
333
|
tmp_0 = null;
|
|
@@ -335,8 +335,8 @@
|
|
|
335
335
|
tmp = tmp_0;
|
|
336
336
|
}
|
|
337
337
|
var tmp3_safe_receiver = tmp;
|
|
338
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
339
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.
|
|
338
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.e6a_1;
|
|
339
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.r6a(tmp4_safe_receiver, playerIndex, reverse);
|
|
340
340
|
var tmp_1;
|
|
341
341
|
if (tmp5_safe_receiver == null) {
|
|
342
342
|
tmp_1 = null;
|
|
@@ -357,10 +357,10 @@
|
|
|
357
357
|
var index = tmp_2;
|
|
358
358
|
return new GameCard(index);
|
|
359
359
|
};
|
|
360
|
-
protoOf(Companion).
|
|
360
|
+
protoOf(Companion).s6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
|
|
361
361
|
previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
|
|
362
362
|
reverse = reverse === VOID ? false : reverse;
|
|
363
|
-
return $super === VOID ? this.
|
|
363
|
+
return $super === VOID ? this.l6a(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.l6a.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
364
364
|
};
|
|
365
365
|
var Companion_instance;
|
|
366
366
|
function Companion_getInstance() {
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
}
|
|
372
372
|
function getCardNumber($this, number) {
|
|
373
373
|
var tmp;
|
|
374
|
-
switch (number.
|
|
374
|
+
switch (number.n2_1) {
|
|
375
375
|
case 12:
|
|
376
376
|
tmp = 0;
|
|
377
377
|
break;
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
return tmp;
|
|
465
465
|
}
|
|
466
466
|
function _get_isShirt__vd98rp($this) {
|
|
467
|
-
return $this.
|
|
467
|
+
return $this.e6a_1 === 52;
|
|
468
468
|
}
|
|
469
469
|
function CardName(name, ordinal) {
|
|
470
470
|
Enum.call(this, name, ordinal);
|
|
@@ -473,12 +473,12 @@
|
|
|
473
473
|
return getShortName(this);
|
|
474
474
|
};
|
|
475
475
|
function Companion_0() {
|
|
476
|
-
this.
|
|
477
|
-
this.
|
|
478
|
-
this.
|
|
479
|
-
this.
|
|
476
|
+
this.n6a_1 = -1;
|
|
477
|
+
this.o6a_1 = 13;
|
|
478
|
+
this.p6a_1 = 52;
|
|
479
|
+
this.q6a_1 = 53;
|
|
480
480
|
}
|
|
481
|
-
protoOf(Companion_0).
|
|
481
|
+
protoOf(Companion_0).r6a = function (_this__u8e3s4, playerIndex, reverse) {
|
|
482
482
|
var tmp;
|
|
483
483
|
if (reverse) {
|
|
484
484
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -548,59 +548,59 @@
|
|
|
548
548
|
return CardName_STUB_instance;
|
|
549
549
|
}
|
|
550
550
|
function GameCard(index) {
|
|
551
|
-
this.
|
|
551
|
+
this.e6a_1 = index;
|
|
552
552
|
}
|
|
553
|
-
protoOf(GameCard).
|
|
553
|
+
protoOf(GameCard).g6a = function () {
|
|
554
554
|
var tmp;
|
|
555
|
-
var containsArg = this.
|
|
555
|
+
var containsArg = this.e6a_1;
|
|
556
556
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
557
557
|
tmp = Suit_DIAMOND_getInstance();
|
|
558
558
|
} else {
|
|
559
|
-
if (this.
|
|
559
|
+
if (this.e6a_1 <= 26) {
|
|
560
560
|
tmp = Suit_SPADE_getInstance();
|
|
561
561
|
} else {
|
|
562
|
-
if (this.
|
|
562
|
+
if (this.e6a_1 <= 39) {
|
|
563
563
|
tmp = Suit_HEART_getInstance();
|
|
564
564
|
} else {
|
|
565
|
-
if (this.
|
|
565
|
+
if (this.e6a_1 <= 52) {
|
|
566
566
|
tmp = Suit_CLUB_getInstance();
|
|
567
567
|
} else {
|
|
568
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
568
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.e6a_1);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
return tmp;
|
|
574
574
|
};
|
|
575
|
-
protoOf(GameCard).
|
|
575
|
+
protoOf(GameCard).h6a = function () {
|
|
576
576
|
var tmp;
|
|
577
|
-
if (this.
|
|
577
|
+
if (this.m6a()) {
|
|
578
578
|
tmp = -1;
|
|
579
579
|
} else {
|
|
580
|
-
tmp = this.
|
|
580
|
+
tmp = this.e6a_1 - imul(13, getIndex(this.g6a())) | 0;
|
|
581
581
|
}
|
|
582
582
|
return tmp;
|
|
583
583
|
};
|
|
584
|
-
protoOf(GameCard).
|
|
585
|
-
return this.
|
|
584
|
+
protoOf(GameCard).o2 = function () {
|
|
585
|
+
return this.m6a() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.h6a());
|
|
586
586
|
};
|
|
587
|
-
protoOf(GameCard).
|
|
588
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
587
|
+
protoOf(GameCard).f6a = function () {
|
|
588
|
+
return !_get_isShirt__vd98rp(this) && !this.m6a();
|
|
589
589
|
};
|
|
590
|
-
protoOf(GameCard).
|
|
591
|
-
return this.
|
|
590
|
+
protoOf(GameCard).m6a = function () {
|
|
591
|
+
return this.e6a_1 >= 53;
|
|
592
592
|
};
|
|
593
593
|
protoOf(GameCard).toString = function () {
|
|
594
594
|
if (_get_isShirt__vd98rp(this)) {
|
|
595
595
|
return 'GameCard(SHIRT)';
|
|
596
596
|
}
|
|
597
|
-
if (this.
|
|
598
|
-
return 'GameCard(STUB, ' + this.
|
|
597
|
+
if (this.m6a()) {
|
|
598
|
+
return 'GameCard(STUB, ' + this.e6a_1 + ')';
|
|
599
599
|
}
|
|
600
|
-
return 'GameCard(' + this.
|
|
600
|
+
return 'GameCard(' + this.g6a().toString() + this.o2().toString() + ', ' + this.e6a_1 + ')';
|
|
601
601
|
};
|
|
602
602
|
protoOf(GameCard).hashCode = function () {
|
|
603
|
-
return this.
|
|
603
|
+
return this.e6a_1;
|
|
604
604
|
};
|
|
605
605
|
protoOf(GameCard).equals = function (other) {
|
|
606
606
|
if (this === other)
|
|
@@ -608,12 +608,12 @@
|
|
|
608
608
|
if (!(other instanceof GameCard))
|
|
609
609
|
return false;
|
|
610
610
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
611
|
-
if (!(this.
|
|
611
|
+
if (!(this.e6a_1 === tmp0_other_with_cast.e6a_1))
|
|
612
612
|
return false;
|
|
613
613
|
return true;
|
|
614
614
|
};
|
|
615
615
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
616
|
-
return $this.
|
|
616
|
+
return $this.t6a_1.u();
|
|
617
617
|
}
|
|
618
618
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
619
619
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
var Suit_CLUB_instance;
|
|
625
625
|
function getSuitEmoji($this) {
|
|
626
626
|
var tmp;
|
|
627
|
-
switch ($this.
|
|
627
|
+
switch ($this.n2_1) {
|
|
628
628
|
case 0:
|
|
629
629
|
tmp = '\u2666\uFE0F';
|
|
630
630
|
break;
|
|
@@ -655,13 +655,13 @@
|
|
|
655
655
|
Companion_instance_1 = this;
|
|
656
656
|
var tmp = this;
|
|
657
657
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
658
|
-
tmp.
|
|
658
|
+
tmp.t6a_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
659
659
|
}
|
|
660
|
-
protoOf(Companion_1).
|
|
660
|
+
protoOf(Companion_1).r50 = function () {
|
|
661
661
|
return _get_$cachedSerializer__te6jhj(this);
|
|
662
662
|
};
|
|
663
|
-
protoOf(Companion_1).
|
|
664
|
-
return this.
|
|
663
|
+
protoOf(Companion_1).o4k = function (typeParamsSerializers) {
|
|
664
|
+
return this.r50();
|
|
665
665
|
};
|
|
666
666
|
var Companion_instance_1;
|
|
667
667
|
function Companion_getInstance_1() {
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
}
|
|
707
707
|
function getIndex(_this__u8e3s4) {
|
|
708
708
|
var tmp;
|
|
709
|
-
switch (_this__u8e3s4.
|
|
709
|
+
switch (_this__u8e3s4.n2_1) {
|
|
710
710
|
case 0:
|
|
711
711
|
tmp = 0;
|
|
712
712
|
break;
|
|
@@ -759,9 +759,9 @@
|
|
|
759
759
|
}
|
|
760
760
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
761
761
|
var tmp = new $getRandomOrgCardsCOROUTINE$1($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
762
|
-
tmp.
|
|
763
|
-
tmp.
|
|
764
|
-
return tmp.
|
|
762
|
+
tmp.g9_1 = Unit_instance;
|
|
763
|
+
tmp.h9_1 = null;
|
|
764
|
+
return tmp.m9();
|
|
765
765
|
}
|
|
766
766
|
function normalizeCards($this, cards, leftCardIndexForEachSuit) {
|
|
767
767
|
var oneSuitCount = cards.m() / get_entries().m() | 0;
|
|
@@ -782,7 +782,7 @@
|
|
|
782
782
|
}
|
|
783
783
|
function Companion_2() {
|
|
784
784
|
}
|
|
785
|
-
protoOf(Companion_2).
|
|
785
|
+
protoOf(Companion_2).u6b = function (randomPoolProvider, logger) {
|
|
786
786
|
var tmp17_random = new SecureRandom(logger);
|
|
787
787
|
return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
|
|
788
788
|
};
|
|
@@ -792,41 +792,41 @@
|
|
|
792
792
|
}
|
|
793
793
|
function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
794
794
|
CoroutineImpl.call(this, resultContinuation);
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
}
|
|
802
|
-
protoOf($createNewShuffledCardDeckCOROUTINE$0).
|
|
803
|
-
var suspendResult = this.
|
|
795
|
+
this.d6c_1 = _this__u8e3s4;
|
|
796
|
+
this.e6c_1 = leftCardIndexForEachSuit;
|
|
797
|
+
this.f6c_1 = rightCardIndexForEachSuit;
|
|
798
|
+
this.g6c_1 = approximateRoundCountForGame;
|
|
799
|
+
this.h6c_1 = userData;
|
|
800
|
+
this.i6c_1 = provider;
|
|
801
|
+
}
|
|
802
|
+
protoOf($createNewShuffledCardDeckCOROUTINE$0).m9 = function () {
|
|
803
|
+
var suspendResult = this.g9_1;
|
|
804
804
|
$sm: do
|
|
805
805
|
try {
|
|
806
|
-
var tmp = this.
|
|
806
|
+
var tmp = this.e9_1;
|
|
807
807
|
switch (tmp) {
|
|
808
808
|
case 0:
|
|
809
|
-
this.
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
812
|
-
if (this.
|
|
809
|
+
this.f9_1 = 4;
|
|
810
|
+
this.j6c_1 = this.i6c_1;
|
|
811
|
+
this.k6c_1 = this.j6c_1.n2_1;
|
|
812
|
+
if (this.k6c_1 === 0) {
|
|
813
813
|
var tmp_0 = this;
|
|
814
|
-
var it = this.
|
|
815
|
-
tmp_0.
|
|
816
|
-
this.
|
|
814
|
+
var it = this.d6c_1.u6a(this.e6c_1, this.f6c_1);
|
|
815
|
+
tmp_0.l6c_1 = this.d6c_1.y6a(it);
|
|
816
|
+
this.e9_1 = 3;
|
|
817
817
|
continue $sm;
|
|
818
818
|
} else {
|
|
819
|
-
if (this.
|
|
820
|
-
this.
|
|
821
|
-
suspendResult = getRandomOrgCards(this.
|
|
819
|
+
if (this.k6c_1 === 1) {
|
|
820
|
+
this.e9_1 = 2;
|
|
821
|
+
suspendResult = getRandomOrgCards(this.d6c_1, this.e6c_1, this.f6c_1, this.g6c_1, this.h6c_1, false, this);
|
|
822
822
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
823
823
|
return suspendResult;
|
|
824
824
|
}
|
|
825
825
|
continue $sm;
|
|
826
826
|
} else {
|
|
827
|
-
if (this.
|
|
828
|
-
this.
|
|
829
|
-
suspendResult = getRandomOrgCards(this.
|
|
827
|
+
if (this.k6c_1 === 2) {
|
|
828
|
+
this.e9_1 = 1;
|
|
829
|
+
suspendResult = getRandomOrgCards(this.d6c_1, this.e6c_1, this.f6c_1, this.g6c_1, this.h6c_1, true, this);
|
|
830
830
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
831
831
|
return suspendResult;
|
|
832
832
|
}
|
|
@@ -840,95 +840,95 @@
|
|
|
840
840
|
|
|
841
841
|
break;
|
|
842
842
|
case 1:
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
843
|
+
this.l6c_1 = suspendResult;
|
|
844
|
+
this.e9_1 = 3;
|
|
845
845
|
continue $sm;
|
|
846
846
|
case 2:
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
847
|
+
this.l6c_1 = suspendResult;
|
|
848
|
+
this.e9_1 = 3;
|
|
849
849
|
continue $sm;
|
|
850
850
|
case 3:
|
|
851
|
-
return this.
|
|
851
|
+
return this.l6c_1;
|
|
852
852
|
case 4:
|
|
853
|
-
throw this.
|
|
853
|
+
throw this.h9_1;
|
|
854
854
|
}
|
|
855
855
|
} catch ($p) {
|
|
856
856
|
var e = $p;
|
|
857
|
-
if (this.
|
|
857
|
+
if (this.f9_1 === 4) {
|
|
858
858
|
throw e;
|
|
859
859
|
} else {
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
860
|
+
this.e9_1 = this.f9_1;
|
|
861
|
+
this.h9_1 = e;
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
while (true);
|
|
865
865
|
};
|
|
866
866
|
function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
867
867
|
CoroutineImpl.call(this, resultContinuation);
|
|
868
|
-
this.
|
|
869
|
-
this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
}
|
|
875
|
-
protoOf($getRandomOrgCardsCOROUTINE$1).
|
|
876
|
-
var suspendResult = this.
|
|
868
|
+
this.h6b_1 = _this__u8e3s4;
|
|
869
|
+
this.i6b_1 = leftCardIndexForEachSuit;
|
|
870
|
+
this.j6b_1 = rightCardIndexForEachSuit;
|
|
871
|
+
this.k6b_1 = approximateRoundsCount;
|
|
872
|
+
this.l6b_1 = userData;
|
|
873
|
+
this.m6b_1 = signed;
|
|
874
|
+
}
|
|
875
|
+
protoOf($getRandomOrgCardsCOROUTINE$1).m9 = function () {
|
|
876
|
+
var suspendResult = this.g9_1;
|
|
877
877
|
$sm: do
|
|
878
878
|
try {
|
|
879
|
-
var tmp = this.
|
|
879
|
+
var tmp = this.e9_1;
|
|
880
880
|
switch (tmp) {
|
|
881
881
|
case 0:
|
|
882
|
-
this.
|
|
882
|
+
this.f9_1 = 5;
|
|
883
883
|
var tmp_0 = this;
|
|
884
884
|
var sum = 0;
|
|
885
885
|
var tmp0_iterator = get_entries().j();
|
|
886
886
|
while (tmp0_iterator.k()) {
|
|
887
887
|
var element = tmp0_iterator.l();
|
|
888
888
|
var tmp_1 = sum;
|
|
889
|
-
sum = tmp_1 + count(getCardsRange(this.
|
|
889
|
+
sum = tmp_1 + count(getCardsRange(this.h6b_1, this.i6b_1, this.j6b_1)) | 0;
|
|
890
890
|
}
|
|
891
891
|
|
|
892
|
-
tmp_0.
|
|
893
|
-
this.
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
896
|
-
suspendResult = this.
|
|
892
|
+
tmp_0.n6b_1 = sum;
|
|
893
|
+
this.o6b_1 = this.h6b_1.n6c_1;
|
|
894
|
+
this.p6b_1 = this.n6b_1 - 1 | 0;
|
|
895
|
+
this.e9_1 = 1;
|
|
896
|
+
suspendResult = this.o6b_1.y5u(this.k6b_1, this.l6b_1, 0, this.p6b_1, this.n6b_1, this.m6b_1, VOID, this);
|
|
897
897
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
898
898
|
return suspendResult;
|
|
899
899
|
}
|
|
900
900
|
|
|
901
|
-
this.
|
|
901
|
+
this.e9_1 = 2;
|
|
902
902
|
continue $sm;
|
|
903
903
|
case 1:
|
|
904
|
-
this.
|
|
905
|
-
suspendResult = new Result(this.
|
|
906
|
-
this.
|
|
904
|
+
this.q6b_1 = suspendResult.dk_1;
|
|
905
|
+
suspendResult = new Result(this.q6b_1);
|
|
906
|
+
this.e9_1 = 2;
|
|
907
907
|
continue $sm;
|
|
908
908
|
case 2:
|
|
909
|
-
this.
|
|
910
|
-
if (_Result___get_isSuccess__impl__sndoy8(this.
|
|
909
|
+
this.r6b_1 = suspendResult.dk_1;
|
|
910
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.r6b_1)) {
|
|
911
911
|
var tmp_2 = this;
|
|
912
|
-
var this_0 = this.
|
|
912
|
+
var this_0 = this.r6b_1;
|
|
913
913
|
throwOnFailure(this_0);
|
|
914
914
|
var tmp_3 = _Result___get_value__impl__bjfvqg(this_0);
|
|
915
915
|
var tmp14_cards = ((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE()).cards;
|
|
916
|
-
var this_1 = normalizeCards(this.
|
|
916
|
+
var this_1 = normalizeCards(this.h6b_1, tmp14_cards, this.i6b_1);
|
|
917
917
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
918
918
|
var tmp0_iterator_0 = this_1.j();
|
|
919
919
|
while (tmp0_iterator_0.k()) {
|
|
920
920
|
var item = tmp0_iterator_0.l();
|
|
921
|
-
destination.e(Companion_instance.
|
|
921
|
+
destination.e(Companion_instance.k6a(item));
|
|
922
922
|
}
|
|
923
|
-
tmp_2.
|
|
924
|
-
this.
|
|
923
|
+
tmp_2.s6b_1 = destination;
|
|
924
|
+
this.e9_1 = 4;
|
|
925
925
|
continue $sm;
|
|
926
926
|
} else {
|
|
927
|
-
this.
|
|
928
|
-
var tmp15_safe_receiver = this.
|
|
929
|
-
this.
|
|
930
|
-
this.
|
|
931
|
-
suspendResult = this.
|
|
927
|
+
this.t6b_1 = Result__exceptionOrNull_impl_p6xea9(this.r6b_1);
|
|
928
|
+
var tmp15_safe_receiver = this.t6b_1;
|
|
929
|
+
this.h6b_1.o6c_1.w('CardsDealerProvider', 'createNewShuffledCardDeck error message = ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.t6b_1);
|
|
930
|
+
this.e9_1 = 3;
|
|
931
|
+
suspendResult = this.h6b_1.v6a(this.i6b_1, this.j6b_1, this.k6b_1, this.l6b_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
932
932
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
933
933
|
return suspendResult;
|
|
934
934
|
}
|
|
@@ -936,31 +936,31 @@
|
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
case 3:
|
|
939
|
-
this.
|
|
940
|
-
this.
|
|
939
|
+
this.s6b_1 = suspendResult;
|
|
940
|
+
this.e9_1 = 4;
|
|
941
941
|
continue $sm;
|
|
942
942
|
case 4:
|
|
943
|
-
return this.
|
|
943
|
+
return this.s6b_1;
|
|
944
944
|
case 5:
|
|
945
|
-
throw this.
|
|
945
|
+
throw this.h9_1;
|
|
946
946
|
}
|
|
947
947
|
} catch ($p) {
|
|
948
948
|
var e = $p;
|
|
949
|
-
if (this.
|
|
949
|
+
if (this.f9_1 === 5) {
|
|
950
950
|
throw e;
|
|
951
951
|
} else {
|
|
952
|
-
this.
|
|
953
|
-
this.
|
|
952
|
+
this.e9_1 = this.f9_1;
|
|
953
|
+
this.h9_1 = e;
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
while (true);
|
|
957
957
|
};
|
|
958
958
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
959
|
+
this.m6c_1 = random;
|
|
960
|
+
this.n6c_1 = randomPoolProvider;
|
|
961
|
+
this.o6c_1 = logger;
|
|
962
962
|
}
|
|
963
|
-
protoOf(CardsDealerProviderImpl).
|
|
963
|
+
protoOf(CardsDealerProviderImpl).u6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
964
964
|
// Inline function 'kotlin.collections.flatMap' call
|
|
965
965
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
966
966
|
var this_0 = get_entries();
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
inductionVariable = inductionVariable + 1 | 0;
|
|
982
982
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
|
|
983
983
|
var it = item;
|
|
984
|
-
var tmp$ret$0 = Companion_instance.
|
|
984
|
+
var tmp$ret$0 = Companion_instance.i6a(element, it);
|
|
985
985
|
destination_0.e(tmp$ret$0);
|
|
986
986
|
}
|
|
987
987
|
while (!(item === last));
|
|
@@ -990,13 +990,13 @@
|
|
|
990
990
|
}
|
|
991
991
|
return destination;
|
|
992
992
|
};
|
|
993
|
-
protoOf(CardsDealerProviderImpl).
|
|
993
|
+
protoOf(CardsDealerProviderImpl).v6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
994
994
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
995
|
-
tmp.
|
|
996
|
-
tmp.
|
|
997
|
-
return tmp.
|
|
995
|
+
tmp.g9_1 = Unit_instance;
|
|
996
|
+
tmp.h9_1 = null;
|
|
997
|
+
return tmp.m9();
|
|
998
998
|
};
|
|
999
|
-
protoOf(CardsDealerProviderImpl).
|
|
999
|
+
protoOf(CardsDealerProviderImpl).w6a = function (count, cards) {
|
|
1000
1000
|
// Inline function 'kotlin.apply' call
|
|
1001
1001
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1002
1002
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1030,7 +1030,7 @@
|
|
|
1030
1030
|
while (tmp0_iterator.k()) {
|
|
1031
1031
|
var element = tmp0_iterator.l();
|
|
1032
1032
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
|
|
1033
|
-
if (element.
|
|
1033
|
+
if (element.h6a() === card.h6a()) {
|
|
1034
1034
|
tmp$ret$2 = true;
|
|
1035
1035
|
break $l$block_1;
|
|
1036
1036
|
}
|
|
@@ -1045,7 +1045,7 @@
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return this_0;
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(CardsDealerProviderImpl).
|
|
1048
|
+
protoOf(CardsDealerProviderImpl).x6a = function (cards, times) {
|
|
1049
1049
|
// Inline function 'kotlin.let' call
|
|
1050
1050
|
// Inline function 'kotlin.contracts.contract' call
|
|
1051
1051
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
|
|
@@ -1055,49 +1055,49 @@
|
|
|
1055
1055
|
do {
|
|
1056
1056
|
var i = inductionVariable;
|
|
1057
1057
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1058
|
-
shuffled = this.
|
|
1058
|
+
shuffled = this.m6c_1.x5z(shuffled);
|
|
1059
1059
|
}
|
|
1060
1060
|
while (inductionVariable < times);
|
|
1061
1061
|
return shuffled;
|
|
1062
1062
|
};
|
|
1063
1063
|
function Companion_3() {
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf(Companion_3).
|
|
1065
|
+
protoOf(Companion_3).p6c = function () {
|
|
1066
1066
|
// Inline function 'kotlin.apply' call
|
|
1067
1067
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1068
1068
|
var this_0 = ArrayList_init_$Create$();
|
|
1069
1069
|
// Inline function 'kotlin.contracts.contract' call
|
|
1070
1070
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
|
|
1071
|
-
this_0.n(listOf([Companion_instance.
|
|
1072
|
-
this_0.n(listOf([Companion_instance.
|
|
1073
|
-
this_0.n(listOf([Companion_instance.
|
|
1074
|
-
this_0.n(listOf([Companion_instance.
|
|
1075
|
-
this_0.n(listOf([Companion_instance.
|
|
1071
|
+
this_0.n(listOf([Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1072
|
+
this_0.n(listOf([Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1073
|
+
this_0.n(listOf([Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1074
|
+
this_0.n(listOf([Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
|
|
1075
|
+
this_0.n(listOf([Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1076
1076
|
return this_0;
|
|
1077
1077
|
};
|
|
1078
|
-
protoOf(Companion_3).
|
|
1079
|
-
return listOf([Companion_instance.
|
|
1078
|
+
protoOf(Companion_3).q6c = function () {
|
|
1079
|
+
return listOf([Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1080
1080
|
};
|
|
1081
1081
|
var Companion_instance_3;
|
|
1082
1082
|
function Companion_getInstance_3() {
|
|
1083
1083
|
return Companion_instance_3;
|
|
1084
1084
|
}
|
|
1085
1085
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1086
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1087
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1088
|
-
this.
|
|
1089
|
-
this.
|
|
1086
|
+
cards = cards === VOID ? Companion_instance_3.p6c() : cards;
|
|
1087
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.q6c() : cardsForLot;
|
|
1088
|
+
this.r6c_1 = cards;
|
|
1089
|
+
this.s6c_1 = cardsForLot;
|
|
1090
1090
|
}
|
|
1091
|
-
protoOf(FakeCardsDealerProvider).
|
|
1092
|
-
return this.
|
|
1091
|
+
protoOf(FakeCardsDealerProvider).u6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1092
|
+
return this.r6c_1;
|
|
1093
1093
|
};
|
|
1094
|
-
protoOf(FakeCardsDealerProvider).
|
|
1095
|
-
return this.
|
|
1094
|
+
protoOf(FakeCardsDealerProvider).v6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1095
|
+
return this.r6c_1;
|
|
1096
1096
|
};
|
|
1097
|
-
protoOf(FakeCardsDealerProvider).
|
|
1098
|
-
return this.
|
|
1097
|
+
protoOf(FakeCardsDealerProvider).w6a = function (count, cards) {
|
|
1098
|
+
return this.s6c_1;
|
|
1099
1099
|
};
|
|
1100
|
-
protoOf(FakeCardsDealerProvider).
|
|
1100
|
+
protoOf(FakeCardsDealerProvider).x6a = function (cards, times) {
|
|
1101
1101
|
return cards;
|
|
1102
1102
|
};
|
|
1103
1103
|
function CombinationsCheckerProvider() {
|
|
@@ -1126,23 +1126,23 @@
|
|
|
1126
1126
|
return takeLast(cards, longestCombinationSupport);
|
|
1127
1127
|
}
|
|
1128
1128
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1129
|
-
this.
|
|
1129
|
+
this.y6c_1 = function_0;
|
|
1130
1130
|
}
|
|
1131
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1132
|
-
return this.
|
|
1131
|
+
protoOf(sam$kotlin_Comparator$0).mc = function (a, b) {
|
|
1132
|
+
return this.y6c_1(a, b);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1135
|
-
return this.
|
|
1135
|
+
return this.mc(a, b);
|
|
1136
1136
|
};
|
|
1137
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1138
|
-
return this.
|
|
1137
|
+
protoOf(sam$kotlin_Comparator$0).o3 = function () {
|
|
1138
|
+
return this.y6c_1;
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1141
1141
|
var tmp;
|
|
1142
1142
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1143
1143
|
var tmp_0;
|
|
1144
1144
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1145
|
-
tmp_0 = equals(this.
|
|
1145
|
+
tmp_0 = equals(this.o3(), other.o3());
|
|
1146
1146
|
} else {
|
|
1147
1147
|
tmp_0 = false;
|
|
1148
1148
|
}
|
|
@@ -1153,19 +1153,19 @@
|
|
|
1153
1153
|
return tmp;
|
|
1154
1154
|
};
|
|
1155
1155
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1156
|
-
return hashCode(this.
|
|
1156
|
+
return hashCode(this.o3());
|
|
1157
1157
|
};
|
|
1158
1158
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1159
1159
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1160
1160
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1161
|
-
var tmp = first_0(a).
|
|
1161
|
+
var tmp = first_0(a).e6a_1;
|
|
1162
1162
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1163
|
-
var tmp$ret$1 = first_0(b).
|
|
1163
|
+
var tmp$ret$1 = first_0(b).e6a_1;
|
|
1164
1164
|
return compareValues(tmp, tmp$ret$1);
|
|
1165
1165
|
}
|
|
1166
1166
|
function CombinationsCheckerProviderImpl() {
|
|
1167
1167
|
}
|
|
1168
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1168
|
+
protoOf(CombinationsCheckerProviderImpl).t6c = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1169
1169
|
// Inline function 'kotlin.collections.filter' call
|
|
1170
1170
|
// Inline function 'kotlin.apply' call
|
|
1171
1171
|
var this_0 = toMutableList(cards);
|
|
@@ -1178,7 +1178,7 @@
|
|
|
1178
1178
|
while (tmp0_iterator.k()) {
|
|
1179
1179
|
var element = tmp0_iterator.l();
|
|
1180
1180
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
|
|
1181
|
-
if (element.
|
|
1181
|
+
if (element.f6a()) {
|
|
1182
1182
|
destination.e(element);
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
@@ -1195,14 +1195,14 @@
|
|
|
1195
1195
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1196
1196
|
var previousCard = lastOrNull(combinationCards);
|
|
1197
1197
|
var currentCard = sortedByIndexCards.o(i);
|
|
1198
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1199
|
-
var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.
|
|
1200
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1198
|
+
var isNextInRow = !(previousCard == null) && currentCard.e6a_1 === (previousCard.e6a_1 + 1 | 0) && currentCard.g6a().equals(previousCard.g6a());
|
|
1199
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.o2());
|
|
1200
|
+
var passedSuitCheck = suit == null || currentCard.g6a().equals(suit);
|
|
1201
1201
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1202
1202
|
combinationCards.e(currentCard);
|
|
1203
1203
|
} else {
|
|
1204
1204
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1205
|
-
combinations.n(this.
|
|
1205
|
+
combinations.n(this.x6c(toMutableList(combinationCards), supportedCombinations));
|
|
1206
1206
|
}
|
|
1207
1207
|
combinationCards.a2();
|
|
1208
1208
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1212,11 +1212,11 @@
|
|
|
1212
1212
|
}
|
|
1213
1213
|
while (inductionVariable <= last);
|
|
1214
1214
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1215
|
-
combinations.n(this.
|
|
1215
|
+
combinations.n(this.x6c(toMutableList(combinationCards), supportedCombinations));
|
|
1216
1216
|
}
|
|
1217
1217
|
return combinations;
|
|
1218
1218
|
};
|
|
1219
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1219
|
+
protoOf(CombinationsCheckerProviderImpl).v6c = function (cards, cardsCount, includeCardNames) {
|
|
1220
1220
|
// Inline function 'kotlin.collections.filter' call
|
|
1221
1221
|
// Inline function 'kotlin.collections.filter' call
|
|
1222
1222
|
// Inline function 'kotlin.apply' call
|
|
@@ -1230,7 +1230,7 @@
|
|
|
1230
1230
|
while (tmp0_iterator.k()) {
|
|
1231
1231
|
var element = tmp0_iterator.l();
|
|
1232
1232
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1233
|
-
if (element.
|
|
1233
|
+
if (element.f6a()) {
|
|
1234
1234
|
destination.e(element);
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
@@ -1240,7 +1240,7 @@
|
|
|
1240
1240
|
while (tmp0_iterator_0.k()) {
|
|
1241
1241
|
var element_0 = tmp0_iterator_0.l();
|
|
1242
1242
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1243
|
-
if (includeCardNames == null || includeCardNames.s1(element_0.
|
|
1243
|
+
if (includeCardNames == null || includeCardNames.s1(element_0.o2())) {
|
|
1244
1244
|
destination_0.e(element_0);
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
@@ -1253,14 +1253,14 @@
|
|
|
1253
1253
|
while (tmp0_iterator_1.k()) {
|
|
1254
1254
|
var element_1 = tmp0_iterator_1.l();
|
|
1255
1255
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1256
|
-
var key = element_1.
|
|
1256
|
+
var key = element_1.h6a();
|
|
1257
1257
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1258
|
-
var value = destination_1.
|
|
1258
|
+
var value = destination_1.g2(key);
|
|
1259
1259
|
var tmp;
|
|
1260
1260
|
if (value == null) {
|
|
1261
1261
|
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
1262
1262
|
var answer = ArrayList_init_$Create$();
|
|
1263
|
-
destination_1.
|
|
1263
|
+
destination_1.j2(key, answer);
|
|
1264
1264
|
tmp = answer;
|
|
1265
1265
|
} else {
|
|
1266
1266
|
tmp = value;
|
|
@@ -1276,10 +1276,10 @@
|
|
|
1276
1276
|
var element_2 = tmp0_iterator_2.l();
|
|
1277
1277
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1278
1278
|
if (element_2.u().m() >= cardsCount) {
|
|
1279
|
-
destination_2.
|
|
1279
|
+
destination_2.j2(element_2.t(), element_2.u());
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
var combinations = destination_2.
|
|
1282
|
+
var combinations = destination_2.i2();
|
|
1283
1283
|
// Inline function 'kotlin.collections.map' call
|
|
1284
1284
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1285
1285
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
}
|
|
1293
1293
|
return destination_3;
|
|
1294
1294
|
};
|
|
1295
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1295
|
+
protoOf(CombinationsCheckerProviderImpl).x6c = function (cards, supportedCombinations) {
|
|
1296
1296
|
// Inline function 'kotlin.collections.minOf' call
|
|
1297
1297
|
var iterator = supportedCombinations.j();
|
|
1298
1298
|
if (!iterator.k())
|
|
@@ -1322,28 +1322,28 @@
|
|
|
1322
1322
|
return sortedWith(combinations, tmp$ret$4);
|
|
1323
1323
|
};
|
|
1324
1324
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1325
|
+
this.z6c_1 = logger;
|
|
1326
|
+
this.a6d_1 = enableLogs;
|
|
1327
1327
|
}
|
|
1328
|
-
protoOf(DealerReducerImpl).
|
|
1328
|
+
protoOf(DealerReducerImpl).b6d = function (cards, cardsToRemove) {
|
|
1329
1329
|
var list = cards;
|
|
1330
1330
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1331
1331
|
while (_iterator__ex2g4s.k()) {
|
|
1332
1332
|
var gameCard = _iterator__ex2g4s.l();
|
|
1333
|
-
list = this.
|
|
1333
|
+
list = this.c6d(list, gameCard);
|
|
1334
1334
|
}
|
|
1335
1335
|
return list;
|
|
1336
1336
|
};
|
|
1337
|
-
protoOf(DealerReducerImpl).
|
|
1337
|
+
protoOf(DealerReducerImpl).c6d = function (cards, cardToRemove) {
|
|
1338
1338
|
var tmp;
|
|
1339
|
-
if (!cardToRemove.
|
|
1340
|
-
if (this.
|
|
1341
|
-
this.
|
|
1339
|
+
if (!cardToRemove.m6a() && cards.s1(cardToRemove)) {
|
|
1340
|
+
if (this.a6d_1) {
|
|
1341
|
+
this.z6c_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1342
1342
|
}
|
|
1343
1343
|
tmp = minus(cards, cardToRemove);
|
|
1344
1344
|
} else {
|
|
1345
|
-
if (this.
|
|
1346
|
-
this.
|
|
1345
|
+
if (this.a6d_1) {
|
|
1346
|
+
this.z6c_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1347
1347
|
}
|
|
1348
1348
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1349
1349
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
while (tmp0_iterator.k()) {
|
|
1353
1353
|
var element = tmp0_iterator.l();
|
|
1354
1354
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1355
|
-
if (!element.
|
|
1355
|
+
if (!element.m6a()) {
|
|
1356
1356
|
destination.e(element);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
@@ -1364,34 +1364,34 @@
|
|
|
1364
1364
|
while (tmp0_iterator_0.k()) {
|
|
1365
1365
|
var element_0 = tmp0_iterator_0.l();
|
|
1366
1366
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1367
|
-
if (element_0.
|
|
1367
|
+
if (element_0.m6a()) {
|
|
1368
1368
|
destination_0.e(element_0);
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
1371
|
var stubCards = destination_0;
|
|
1372
1372
|
if (stubCards.p()) {
|
|
1373
|
-
this.
|
|
1373
|
+
this.z6c_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1374
1374
|
}
|
|
1375
1375
|
tmp = plus(notStubCards, dropLast(stubCards, 1));
|
|
1376
1376
|
}
|
|
1377
1377
|
return tmp;
|
|
1378
1378
|
};
|
|
1379
|
-
protoOf(DealerReducerImpl).
|
|
1380
|
-
if (this.
|
|
1381
|
-
this.
|
|
1379
|
+
protoOf(DealerReducerImpl).d6d = function (cards, cardToAdd) {
|
|
1380
|
+
if (this.a6d_1) {
|
|
1381
|
+
this.z6c_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1382
1382
|
}
|
|
1383
1383
|
if (cards.s1(cardToAdd)) {
|
|
1384
|
-
this.
|
|
1384
|
+
this.z6c_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1385
1385
|
}
|
|
1386
1386
|
return plus_0(cards, cardToAdd);
|
|
1387
1387
|
};
|
|
1388
1388
|
function DealerReducer() {
|
|
1389
1389
|
}
|
|
1390
1390
|
//region block: post-declaration
|
|
1391
|
-
protoOf(CardsDealerProviderImpl).
|
|
1392
|
-
protoOf(FakeCardsDealerProvider).
|
|
1393
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1394
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1391
|
+
protoOf(CardsDealerProviderImpl).y6a = standardShuffledCards$default;
|
|
1392
|
+
protoOf(FakeCardsDealerProvider).y6a = standardShuffledCards$default;
|
|
1393
|
+
protoOf(CombinationsCheckerProviderImpl).u6c = findCardsInRowCombinations$default;
|
|
1394
|
+
protoOf(CombinationsCheckerProviderImpl).w6c = findSameCardsNumberCombinations$default;
|
|
1395
1395
|
//endregion
|
|
1396
1396
|
//region block: init
|
|
1397
1397
|
CoreConfig_instance = new CoreConfig();
|