client_plugin_logic_deb 1.8.305 → 1.8.310
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 +58 -58
- package/Kosi-Kodein-kodein-di.js +519 -519
- package/Kotlin-DateTime-library-kotlinx-datetime.js +14 -14
- package/Logic_Debertz-client_plugin.d.ts +1 -0
- package/Logic_Debertz-client_plugin.js +2242 -2220
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1633 -1699
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +11173 -11175
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5480 -5460
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +872 -872
- package/kotlin-kotlin-stdlib.js +86 -73
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +1 -1
- package/kotlinx-coroutines-core.js +24 -24
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +316 -316
- package/kotlinx-serialization-kotlinx-serialization-core.js +29 -29
- package/kotlinx-serialization-kotlinx-serialization-json.js +26 -26
- package/ktor-ktor-client-content-negotiation.js +4 -4
- package/ktor-ktor-client-core.js +17 -17
- package/ktor-ktor-client-logging.js +5 -5
- package/ktor-ktor-events.js +2 -2
- package/ktor-ktor-http.js +15 -15
- package/ktor-ktor-io.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +1 -1
- package/ktor-ktor-serialization.js +3 -3
- package/ktor-ktor-utils.js +11 -11
- package/ktor-ktor-websockets.js +3 -3
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +183 -183
- package/raspberry-cardgame-lib-logger.js +4 -4
- package/raspberry-cardgame-lib-random.js +332 -230
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +3 -3
- package/uuid.js +2 -2
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
var protoOf = kotlin_kotlin.$_$.vc;
|
|
23
23
|
var initMetadataForObject = kotlin_kotlin.$_$.zb;
|
|
24
24
|
var defineProp = kotlin_kotlin.$_$.lb;
|
|
25
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
26
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.ug;
|
|
26
|
+
var Comparator = kotlin_kotlin.$_$.gg;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.f;
|
|
28
28
|
var initMetadataForClass = kotlin_kotlin.$_$.ub;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
var take = kotlin_kotlin.$_$.p9;
|
|
32
32
|
var toList = kotlin_kotlin.$_$.t9;
|
|
33
33
|
var takeLast = kotlin_kotlin.$_$.o9;
|
|
34
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.sh;
|
|
35
35
|
var initMetadataForCompanion = kotlin_kotlin.$_$.vb;
|
|
36
36
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
37
|
-
var Enum = kotlin_kotlin.$_$.
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.jg;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
39
39
|
var enumEntries = kotlin_kotlin.$_$.ya;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.k;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.qh;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
43
43
|
var initMetadataForInterface = kotlin_kotlin.$_$.xb;
|
|
44
44
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
var CoroutineImpl = kotlin_kotlin.$_$.wa;
|
|
48
48
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha;
|
|
49
49
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.wb;
|
|
50
|
-
var Result = kotlin_kotlin.$_$.
|
|
50
|
+
var Result = kotlin_kotlin.$_$.sg;
|
|
51
51
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.g3;
|
|
52
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.wh;
|
|
53
53
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.j3;
|
|
54
54
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.i3;
|
|
55
55
|
var addAll = kotlin_kotlin.$_$.g6;
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
|
|
97
97
|
function standardShuffledCards$default(cards, times, $super) {
|
|
98
98
|
times = times === VOID ? 3 : times;
|
|
99
|
-
return $super === VOID ? this.
|
|
99
|
+
return $super === VOID ? this.u6a(cards, times) : $super.u6a.call(this, cards, times);
|
|
100
100
|
}
|
|
101
101
|
function realLifeShuffledCards$default(cards, times, $super) {
|
|
102
102
|
times = times === VOID ? 20 : times;
|
|
103
|
-
return $super === VOID ? this.
|
|
103
|
+
return $super === VOID ? this.w6a(cards, times) : $super.w6a.call(this, cards, times);
|
|
104
104
|
}
|
|
105
105
|
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
|
|
106
106
|
initMetadataForCompanion(Companion_2);
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
114
114
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
115
115
|
suit = suit === VOID ? null : suit;
|
|
116
|
-
return $super === VOID ? this.
|
|
116
|
+
return $super === VOID ? this.u6c(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.u6c.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
117
117
|
}
|
|
118
118
|
function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
|
|
119
119
|
cardsCount = cardsCount === VOID ? 4 : cardsCount;
|
|
120
120
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
121
|
-
return $super === VOID ? this.
|
|
121
|
+
return $super === VOID ? this.w6c(cards, cardsCount, includeCardNames) : $super.w6c.call(this, cards, cardsCount, includeCardNames);
|
|
122
122
|
}
|
|
123
123
|
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
124
124
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
|
|
128
128
|
//endregion
|
|
129
129
|
function CoreConfig() {
|
|
130
|
-
this.version = '0.0.
|
|
130
|
+
this.version = '0.0.45';
|
|
131
131
|
}
|
|
132
132
|
protoOf(CoreConfig).x32 = function () {
|
|
133
133
|
return this.version;
|
|
@@ -138,33 +138,33 @@
|
|
|
138
138
|
}
|
|
139
139
|
function CardIndexComparator() {
|
|
140
140
|
}
|
|
141
|
-
protoOf(CardIndexComparator).
|
|
142
|
-
return a.
|
|
141
|
+
protoOf(CardIndexComparator).y69 = function (a, b) {
|
|
142
|
+
return a.z69_1 - b.z69_1 | 0;
|
|
143
143
|
};
|
|
144
144
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
145
145
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
146
|
-
return this.
|
|
146
|
+
return this.y69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
147
147
|
};
|
|
148
148
|
var CardIndexComparator_instance;
|
|
149
149
|
function CardIndexComparator_getInstance() {
|
|
150
150
|
return CardIndexComparator_instance;
|
|
151
151
|
}
|
|
152
152
|
function CardSuitSortingComparator(suit) {
|
|
153
|
-
this.
|
|
153
|
+
this.a6a_1 = suit;
|
|
154
154
|
}
|
|
155
|
-
protoOf(CardSuitSortingComparator).
|
|
156
|
-
if (!a.
|
|
155
|
+
protoOf(CardSuitSortingComparator).y69 = function (a, b) {
|
|
156
|
+
if (!a.b6a() || !b.b6a()) {
|
|
157
157
|
return 0;
|
|
158
158
|
}
|
|
159
|
-
var suitIndexL = this.
|
|
160
|
-
var suitIndexR = this.
|
|
161
|
-
var sortedNumberL = imul(suitIndexL, 13) + a.
|
|
162
|
-
var sortedNumberR = imul(suitIndexR, 13) + b.
|
|
159
|
+
var suitIndexL = this.a6a_1.u1(a.c6a());
|
|
160
|
+
var suitIndexR = this.a6a_1.u1(b.c6a());
|
|
161
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.d6a() | 0;
|
|
162
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.d6a() | 0;
|
|
163
163
|
return sortedNumberL - sortedNumberR | 0;
|
|
164
164
|
};
|
|
165
165
|
protoOf(CardSuitSortingComparator).compare = function (a, b) {
|
|
166
166
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
167
|
-
return this.
|
|
167
|
+
return this.y69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
168
168
|
};
|
|
169
169
|
function filterByCardName(_this__u8e3s4, name) {
|
|
170
170
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
}
|
|
183
183
|
function CardNumberComparator() {
|
|
184
184
|
}
|
|
185
|
-
protoOf(CardNumberComparator).
|
|
186
|
-
return b.
|
|
185
|
+
protoOf(CardNumberComparator).y69 = function (a, b) {
|
|
186
|
+
return b.d6a() - a.d6a() | 0;
|
|
187
187
|
};
|
|
188
188
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
189
189
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
190
|
-
return this.
|
|
190
|
+
return this.y69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
191
191
|
};
|
|
192
192
|
var CardNumberComparator_instance;
|
|
193
193
|
function CardNumberComparator_getInstance() {
|
|
@@ -315,16 +315,16 @@
|
|
|
315
315
|
}
|
|
316
316
|
function Companion() {
|
|
317
317
|
}
|
|
318
|
-
protoOf(Companion).
|
|
318
|
+
protoOf(Companion).e6a = function (suit, number) {
|
|
319
319
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
320
320
|
};
|
|
321
|
-
protoOf(Companion).
|
|
321
|
+
protoOf(Companion).f6a = function (suit, cardNumber) {
|
|
322
322
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
323
323
|
};
|
|
324
|
-
protoOf(Companion).
|
|
324
|
+
protoOf(Companion).g6a = function (index) {
|
|
325
325
|
return new GameCard(index);
|
|
326
326
|
};
|
|
327
|
-
protoOf(Companion).
|
|
327
|
+
protoOf(Companion).h6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
328
328
|
var tmp;
|
|
329
329
|
if (previousStubCardWithMaxIndex == null) {
|
|
330
330
|
tmp = null;
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
// Inline function 'kotlin.contracts.contract' call
|
|
334
334
|
var tmp_0;
|
|
335
335
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
|
|
336
|
-
if (previousStubCardWithMaxIndex.
|
|
336
|
+
if (previousStubCardWithMaxIndex.i6a()) {
|
|
337
337
|
tmp_0 = previousStubCardWithMaxIndex;
|
|
338
338
|
} else {
|
|
339
339
|
tmp_0 = null;
|
|
@@ -341,8 +341,8 @@
|
|
|
341
341
|
tmp = tmp_0;
|
|
342
342
|
}
|
|
343
343
|
var tmp3_safe_receiver = tmp;
|
|
344
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
345
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.
|
|
344
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.z69_1;
|
|
345
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.o6a(tmp4_safe_receiver, playerIndex, reverse);
|
|
346
346
|
var tmp_1;
|
|
347
347
|
if (tmp5_safe_receiver == null) {
|
|
348
348
|
tmp_1 = null;
|
|
@@ -363,10 +363,10 @@
|
|
|
363
363
|
var index = tmp_2;
|
|
364
364
|
return new GameCard(index);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).p6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
|
|
367
367
|
previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
|
|
368
368
|
reverse = reverse === VOID ? false : reverse;
|
|
369
|
-
return $super === VOID ? this.
|
|
369
|
+
return $super === VOID ? this.h6a(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.h6a.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
370
370
|
};
|
|
371
371
|
var Companion_instance;
|
|
372
372
|
function Companion_getInstance() {
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
return tmp;
|
|
471
471
|
}
|
|
472
472
|
function _get_isShirt__vd98rp($this) {
|
|
473
|
-
return $this.
|
|
473
|
+
return $this.z69_1 >= 150 && $this.z69_1 <= 202;
|
|
474
474
|
}
|
|
475
475
|
function CardName(name, ordinal) {
|
|
476
476
|
Enum.call(this, name, ordinal);
|
|
@@ -479,13 +479,13 @@
|
|
|
479
479
|
return getShortName(this);
|
|
480
480
|
};
|
|
481
481
|
function Companion_0() {
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
482
|
+
this.j6a_1 = -1;
|
|
483
|
+
this.k6a_1 = 13;
|
|
484
|
+
this.l6a_1 = 52;
|
|
485
|
+
this.m6a_1 = 150;
|
|
486
|
+
this.n6a_1 = 53;
|
|
487
487
|
}
|
|
488
|
-
protoOf(Companion_0).
|
|
488
|
+
protoOf(Companion_0).o6a = function (_this__u8e3s4, playerIndex, reverse) {
|
|
489
489
|
var tmp;
|
|
490
490
|
if (reverse) {
|
|
491
491
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -555,59 +555,59 @@
|
|
|
555
555
|
return CardName_STUB_instance;
|
|
556
556
|
}
|
|
557
557
|
function GameCard(index) {
|
|
558
|
-
this.
|
|
558
|
+
this.z69_1 = index;
|
|
559
559
|
}
|
|
560
|
-
protoOf(GameCard).
|
|
560
|
+
protoOf(GameCard).c6a = function () {
|
|
561
561
|
var tmp;
|
|
562
|
-
var containsArg = this.
|
|
562
|
+
var containsArg = this.z69_1;
|
|
563
563
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
564
564
|
tmp = Suit_DIAMOND_getInstance();
|
|
565
565
|
} else {
|
|
566
|
-
if (this.
|
|
566
|
+
if (this.z69_1 <= 26) {
|
|
567
567
|
tmp = Suit_SPADE_getInstance();
|
|
568
568
|
} else {
|
|
569
|
-
if (this.
|
|
569
|
+
if (this.z69_1 <= 39) {
|
|
570
570
|
tmp = Suit_HEART_getInstance();
|
|
571
571
|
} else {
|
|
572
|
-
if (this.
|
|
572
|
+
if (this.z69_1 <= 52) {
|
|
573
573
|
tmp = Suit_CLUB_getInstance();
|
|
574
574
|
} else {
|
|
575
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
575
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.z69_1);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
return tmp;
|
|
581
581
|
};
|
|
582
|
-
protoOf(GameCard).
|
|
582
|
+
protoOf(GameCard).d6a = function () {
|
|
583
583
|
var tmp;
|
|
584
|
-
if (this.
|
|
584
|
+
if (this.i6a()) {
|
|
585
585
|
tmp = -1;
|
|
586
586
|
} else {
|
|
587
|
-
tmp = this.
|
|
587
|
+
tmp = this.z69_1 - imul(13, getIndex(this.c6a())) | 0;
|
|
588
588
|
}
|
|
589
589
|
return tmp;
|
|
590
590
|
};
|
|
591
591
|
protoOf(GameCard).p2 = function () {
|
|
592
|
-
return this.
|
|
592
|
+
return this.i6a() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.d6a());
|
|
593
593
|
};
|
|
594
|
-
protoOf(GameCard).
|
|
595
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
594
|
+
protoOf(GameCard).b6a = function () {
|
|
595
|
+
return !_get_isShirt__vd98rp(this) && !this.i6a();
|
|
596
596
|
};
|
|
597
|
-
protoOf(GameCard).
|
|
598
|
-
return this.
|
|
597
|
+
protoOf(GameCard).i6a = function () {
|
|
598
|
+
return this.z69_1 >= 53 && this.z69_1 <= 105;
|
|
599
599
|
};
|
|
600
600
|
protoOf(GameCard).toString = function () {
|
|
601
601
|
if (_get_isShirt__vd98rp(this)) {
|
|
602
602
|
return 'GameCard(SHIRT)';
|
|
603
603
|
}
|
|
604
|
-
if (this.
|
|
605
|
-
return 'GameCard(STUB, ' + this.
|
|
604
|
+
if (this.i6a()) {
|
|
605
|
+
return 'GameCard(STUB, ' + this.z69_1 + ')';
|
|
606
606
|
}
|
|
607
|
-
return 'GameCard(' + this.
|
|
607
|
+
return 'GameCard(' + this.c6a().toString() + this.p2().toString() + ', ' + this.z69_1 + ')';
|
|
608
608
|
};
|
|
609
609
|
protoOf(GameCard).hashCode = function () {
|
|
610
|
-
return this.
|
|
610
|
+
return this.z69_1;
|
|
611
611
|
};
|
|
612
612
|
protoOf(GameCard).equals = function (other) {
|
|
613
613
|
if (this === other)
|
|
@@ -615,12 +615,12 @@
|
|
|
615
615
|
if (!(other instanceof GameCard))
|
|
616
616
|
return false;
|
|
617
617
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
618
|
-
if (!(this.
|
|
618
|
+
if (!(this.z69_1 === tmp0_other_with_cast.z69_1))
|
|
619
619
|
return false;
|
|
620
620
|
return true;
|
|
621
621
|
};
|
|
622
622
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
623
|
-
return $this.
|
|
623
|
+
return $this.q6a_1.u();
|
|
624
624
|
}
|
|
625
625
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
626
626
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
Companion_instance_1 = this;
|
|
663
663
|
var tmp = this;
|
|
664
664
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
665
|
-
tmp.
|
|
665
|
+
tmp.q6a_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
666
666
|
}
|
|
667
667
|
protoOf(Companion_1).g50 = function () {
|
|
668
668
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -786,7 +786,7 @@
|
|
|
786
786
|
}
|
|
787
787
|
function Companion_2() {
|
|
788
788
|
}
|
|
789
|
-
protoOf(Companion_2).
|
|
789
|
+
protoOf(Companion_2).u6b = function (randomPoolProvider, logger) {
|
|
790
790
|
var tmp17_random = new SecureRandom(logger);
|
|
791
791
|
return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
|
|
792
792
|
};
|
|
@@ -796,12 +796,12 @@
|
|
|
796
796
|
}
|
|
797
797
|
function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
798
798
|
CoroutineImpl.call(this, resultContinuation);
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
799
|
+
this.d6c_1 = _this__u8e3s4;
|
|
800
|
+
this.e6c_1 = leftCardIndexForEachSuit;
|
|
801
|
+
this.f6c_1 = rightCardIndexForEachSuit;
|
|
802
|
+
this.g6c_1 = approximateRoundCountForGame;
|
|
803
|
+
this.h6c_1 = userData;
|
|
804
|
+
this.i6c_1 = provider;
|
|
805
805
|
}
|
|
806
806
|
protoOf($createNewShuffledCardDeckCOROUTINE$0).n9 = function () {
|
|
807
807
|
var suspendResult = this.h9_1;
|
|
@@ -811,26 +811,26 @@
|
|
|
811
811
|
switch (tmp) {
|
|
812
812
|
case 0:
|
|
813
813
|
this.g9_1 = 4;
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
if (this.
|
|
814
|
+
this.j6c_1 = this.i6c_1;
|
|
815
|
+
this.k6c_1 = this.j6c_1.o2_1;
|
|
816
|
+
if (this.k6c_1 === 0) {
|
|
817
817
|
var tmp_0 = this;
|
|
818
|
-
var it = this.
|
|
819
|
-
tmp_0.
|
|
818
|
+
var it = this.d6c_1.r6a(this.e6c_1, this.f6c_1);
|
|
819
|
+
tmp_0.l6c_1 = this.d6c_1.v6a(it);
|
|
820
820
|
this.f9_1 = 3;
|
|
821
821
|
continue $sm;
|
|
822
822
|
} else {
|
|
823
|
-
if (this.
|
|
823
|
+
if (this.k6c_1 === 1) {
|
|
824
824
|
this.f9_1 = 2;
|
|
825
|
-
suspendResult = getRandomOrgCards(this.
|
|
825
|
+
suspendResult = getRandomOrgCards(this.d6c_1, this.e6c_1, this.f6c_1, this.g6c_1, this.h6c_1, false, this);
|
|
826
826
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
827
827
|
return suspendResult;
|
|
828
828
|
}
|
|
829
829
|
continue $sm;
|
|
830
830
|
} else {
|
|
831
|
-
if (this.
|
|
831
|
+
if (this.k6c_1 === 2) {
|
|
832
832
|
this.f9_1 = 1;
|
|
833
|
-
suspendResult = getRandomOrgCards(this.
|
|
833
|
+
suspendResult = getRandomOrgCards(this.d6c_1, this.e6c_1, this.f6c_1, this.g6c_1, this.h6c_1, true, this);
|
|
834
834
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
835
835
|
return suspendResult;
|
|
836
836
|
}
|
|
@@ -844,15 +844,15 @@
|
|
|
844
844
|
|
|
845
845
|
break;
|
|
846
846
|
case 1:
|
|
847
|
-
this.
|
|
847
|
+
this.l6c_1 = suspendResult;
|
|
848
848
|
this.f9_1 = 3;
|
|
849
849
|
continue $sm;
|
|
850
850
|
case 2:
|
|
851
|
-
this.
|
|
851
|
+
this.l6c_1 = suspendResult;
|
|
852
852
|
this.f9_1 = 3;
|
|
853
853
|
continue $sm;
|
|
854
854
|
case 3:
|
|
855
|
-
return this.
|
|
855
|
+
return this.l6c_1;
|
|
856
856
|
case 4:
|
|
857
857
|
throw this.i9_1;
|
|
858
858
|
}
|
|
@@ -869,12 +869,12 @@
|
|
|
869
869
|
};
|
|
870
870
|
function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
871
871
|
CoroutineImpl.call(this, resultContinuation);
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
872
|
+
this.h6b_1 = _this__u8e3s4;
|
|
873
|
+
this.i6b_1 = leftCardIndexForEachSuit;
|
|
874
|
+
this.j6b_1 = rightCardIndexForEachSuit;
|
|
875
|
+
this.k6b_1 = approximateRoundsCount;
|
|
876
|
+
this.l6b_1 = userData;
|
|
877
|
+
this.m6b_1 = signed;
|
|
878
878
|
}
|
|
879
879
|
protoOf($getRandomOrgCardsCOROUTINE$1).n9 = function () {
|
|
880
880
|
var suspendResult = this.h9_1;
|
|
@@ -884,11 +884,11 @@
|
|
|
884
884
|
switch (tmp) {
|
|
885
885
|
case 0:
|
|
886
886
|
this.g9_1 = 5;
|
|
887
|
-
this.
|
|
888
|
-
this.
|
|
889
|
-
this.
|
|
887
|
+
this.n6b_1 = this.h6b_1.y6a(this.i6b_1, this.j6b_1);
|
|
888
|
+
this.o6b_1 = this.h6b_1.n6c_1;
|
|
889
|
+
this.p6b_1 = this.n6b_1 - 1 | 0;
|
|
890
890
|
this.f9_1 = 1;
|
|
891
|
-
suspendResult = this.
|
|
891
|
+
suspendResult = this.o6b_1.m5u(this.k6b_1, this.l6b_1, 0, this.p6b_1, this.n6b_1, this.m6b_1, VOID, this);
|
|
892
892
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
893
893
|
return suspendResult;
|
|
894
894
|
}
|
|
@@ -896,34 +896,34 @@
|
|
|
896
896
|
this.f9_1 = 2;
|
|
897
897
|
continue $sm;
|
|
898
898
|
case 1:
|
|
899
|
-
this.
|
|
900
|
-
suspendResult = new Result(this.
|
|
899
|
+
this.q6b_1 = suspendResult.ek_1;
|
|
900
|
+
suspendResult = new Result(this.q6b_1);
|
|
901
901
|
this.f9_1 = 2;
|
|
902
902
|
continue $sm;
|
|
903
903
|
case 2:
|
|
904
|
-
this.
|
|
905
|
-
if (_Result___get_isSuccess__impl__sndoy8(this.
|
|
904
|
+
this.r6b_1 = suspendResult.ek_1;
|
|
905
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.r6b_1)) {
|
|
906
906
|
var tmp_0 = this;
|
|
907
|
-
var this_0 = this.
|
|
907
|
+
var this_0 = this.r6b_1;
|
|
908
908
|
throwOnFailure(this_0);
|
|
909
909
|
var tmp_1 = _Result___get_value__impl__bjfvqg(this_0);
|
|
910
910
|
var tmp14_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
911
|
-
var this_1 = normalizeCards(this.
|
|
911
|
+
var this_1 = normalizeCards(this.h6b_1, tmp14_cards, this.i6b_1);
|
|
912
912
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
913
913
|
var tmp0_iterator = this_1.j();
|
|
914
914
|
while (tmp0_iterator.k()) {
|
|
915
915
|
var item = tmp0_iterator.l();
|
|
916
|
-
destination.e(Companion_instance.
|
|
916
|
+
destination.e(Companion_instance.g6a(item));
|
|
917
917
|
}
|
|
918
|
-
tmp_0.
|
|
918
|
+
tmp_0.s6b_1 = destination;
|
|
919
919
|
this.f9_1 = 4;
|
|
920
920
|
continue $sm;
|
|
921
921
|
} else {
|
|
922
|
-
this.
|
|
923
|
-
var tmp15_safe_receiver = this.
|
|
924
|
-
this.
|
|
922
|
+
this.t6b_1 = Result__exceptionOrNull_impl_p6xea9(this.r6b_1);
|
|
923
|
+
var tmp15_safe_receiver = this.t6b_1;
|
|
924
|
+
this.h6b_1.o6c_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.t6b_1);
|
|
925
925
|
this.f9_1 = 3;
|
|
926
|
-
suspendResult = this.
|
|
926
|
+
suspendResult = this.h6b_1.s6a(this.i6b_1, this.j6b_1, this.k6b_1, this.l6b_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
927
927
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
928
928
|
return suspendResult;
|
|
929
929
|
}
|
|
@@ -931,11 +931,11 @@
|
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
case 3:
|
|
934
|
-
this.
|
|
934
|
+
this.s6b_1 = suspendResult;
|
|
935
935
|
this.f9_1 = 4;
|
|
936
936
|
continue $sm;
|
|
937
937
|
case 4:
|
|
938
|
-
return this.
|
|
938
|
+
return this.s6b_1;
|
|
939
939
|
case 5:
|
|
940
940
|
throw this.i9_1;
|
|
941
941
|
}
|
|
@@ -951,11 +951,11 @@
|
|
|
951
951
|
while (true);
|
|
952
952
|
};
|
|
953
953
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
954
|
-
this.
|
|
955
|
-
this.
|
|
956
|
-
this.
|
|
954
|
+
this.m6c_1 = random;
|
|
955
|
+
this.n6c_1 = randomPoolProvider;
|
|
956
|
+
this.o6c_1 = logger;
|
|
957
957
|
}
|
|
958
|
-
protoOf(CardsDealerProviderImpl).
|
|
958
|
+
protoOf(CardsDealerProviderImpl).r6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
959
959
|
// Inline function 'kotlin.collections.flatMap' call
|
|
960
960
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
961
961
|
var this_0 = get_entries();
|
|
@@ -965,7 +965,7 @@
|
|
|
965
965
|
var element = tmp0_iterator.l();
|
|
966
966
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>' call
|
|
967
967
|
// Inline function 'kotlin.collections.map' call
|
|
968
|
-
var this_1 = this.
|
|
968
|
+
var this_1 = this.p6c(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
969
969
|
// Inline function 'kotlin.collections.mapTo' call
|
|
970
970
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
971
971
|
var inductionVariable = this_1.a1_1;
|
|
@@ -976,7 +976,7 @@
|
|
|
976
976
|
inductionVariable = inductionVariable + 1 | 0;
|
|
977
977
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
|
|
978
978
|
var it = item;
|
|
979
|
-
var tmp$ret$0 = Companion_instance.
|
|
979
|
+
var tmp$ret$0 = Companion_instance.e6a(element, it);
|
|
980
980
|
destination_0.e(tmp$ret$0);
|
|
981
981
|
}
|
|
982
982
|
while (!(item === last));
|
|
@@ -985,10 +985,10 @@
|
|
|
985
985
|
}
|
|
986
986
|
return destination;
|
|
987
987
|
};
|
|
988
|
-
protoOf(CardsDealerProviderImpl).
|
|
988
|
+
protoOf(CardsDealerProviderImpl).p6c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
989
989
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
990
990
|
};
|
|
991
|
-
protoOf(CardsDealerProviderImpl).
|
|
991
|
+
protoOf(CardsDealerProviderImpl).y6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
992
992
|
// Inline function 'kotlin.collections.sumOf' call
|
|
993
993
|
var sum = 0;
|
|
994
994
|
var tmp0_iterator = get_entries().j();
|
|
@@ -996,17 +996,17 @@
|
|
|
996
996
|
var element = tmp0_iterator.l();
|
|
997
997
|
var tmp = sum;
|
|
998
998
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getCardsCount.<anonymous>' call
|
|
999
|
-
sum = tmp + count(this.
|
|
999
|
+
sum = tmp + count(this.p6c(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
1000
1000
|
}
|
|
1001
1001
|
return sum;
|
|
1002
1002
|
};
|
|
1003
|
-
protoOf(CardsDealerProviderImpl).
|
|
1003
|
+
protoOf(CardsDealerProviderImpl).s6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1004
1004
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
1005
1005
|
tmp.h9_1 = Unit_instance;
|
|
1006
1006
|
tmp.i9_1 = null;
|
|
1007
1007
|
return tmp.n9();
|
|
1008
1008
|
};
|
|
1009
|
-
protoOf(CardsDealerProviderImpl).
|
|
1009
|
+
protoOf(CardsDealerProviderImpl).t6a = function (count, cards) {
|
|
1010
1010
|
// Inline function 'kotlin.apply' call
|
|
1011
1011
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1012
1012
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
while (tmp0_iterator.k()) {
|
|
1041
1041
|
var element = tmp0_iterator.l();
|
|
1042
1042
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
|
|
1043
|
-
if (element.
|
|
1043
|
+
if (element.d6a() === card.d6a()) {
|
|
1044
1044
|
tmp$ret$2 = true;
|
|
1045
1045
|
break $l$block_1;
|
|
1046
1046
|
}
|
|
@@ -1055,7 +1055,7 @@
|
|
|
1055
1055
|
}
|
|
1056
1056
|
return this_0;
|
|
1057
1057
|
};
|
|
1058
|
-
protoOf(CardsDealerProviderImpl).
|
|
1058
|
+
protoOf(CardsDealerProviderImpl).u6a = function (cards, times) {
|
|
1059
1059
|
// Inline function 'kotlin.let' call
|
|
1060
1060
|
// Inline function 'kotlin.contracts.contract' call
|
|
1061
1061
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
|
|
@@ -1065,59 +1065,59 @@
|
|
|
1065
1065
|
do {
|
|
1066
1066
|
var i = inductionVariable;
|
|
1067
1067
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1068
|
-
shuffled = this.
|
|
1068
|
+
shuffled = this.m6c_1.w5z(shuffled);
|
|
1069
1069
|
}
|
|
1070
1070
|
while (inductionVariable < times);
|
|
1071
1071
|
return shuffled;
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf(CardsDealerProviderImpl).
|
|
1074
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1073
|
+
protoOf(CardsDealerProviderImpl).w6a = function (cards, times) {
|
|
1074
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.m6c_1), times, this.m6c_1));
|
|
1075
1075
|
};
|
|
1076
1076
|
function Companion_3() {
|
|
1077
1077
|
}
|
|
1078
|
-
protoOf(Companion_3).
|
|
1078
|
+
protoOf(Companion_3).q6c = function () {
|
|
1079
1079
|
// Inline function 'kotlin.apply' call
|
|
1080
1080
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1081
1081
|
var this_0 = ArrayList_init_$Create$();
|
|
1082
1082
|
// Inline function 'kotlin.contracts.contract' call
|
|
1083
1083
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
|
|
1084
|
-
this_0.n(listOf([Companion_instance.
|
|
1085
|
-
this_0.n(listOf([Companion_instance.
|
|
1086
|
-
this_0.n(listOf([Companion_instance.
|
|
1087
|
-
this_0.n(listOf([Companion_instance.
|
|
1088
|
-
this_0.n(listOf([Companion_instance.
|
|
1084
|
+
this_0.n(listOf([Companion_instance.f6a(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1085
|
+
this_0.n(listOf([Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.f6a(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.f6a(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.f6a(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1086
|
+
this_0.n(listOf([Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1087
|
+
this_0.n(listOf([Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.f6a(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
|
|
1088
|
+
this_0.n(listOf([Companion_instance.f6a(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.f6a(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.f6a(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1089
1089
|
return this_0;
|
|
1090
1090
|
};
|
|
1091
|
-
protoOf(Companion_3).
|
|
1092
|
-
return listOf([Companion_instance.
|
|
1091
|
+
protoOf(Companion_3).r6c = function () {
|
|
1092
|
+
return listOf([Companion_instance.f6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.f6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.f6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1093
1093
|
};
|
|
1094
1094
|
var Companion_instance_3;
|
|
1095
1095
|
function Companion_getInstance_3() {
|
|
1096
1096
|
return Companion_instance_3;
|
|
1097
1097
|
}
|
|
1098
1098
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1099
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1100
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1101
|
-
this.
|
|
1102
|
-
this.
|
|
1099
|
+
cards = cards === VOID ? Companion_instance_3.q6c() : cards;
|
|
1100
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.r6c() : cardsForLot;
|
|
1101
|
+
this.s6c_1 = cards;
|
|
1102
|
+
this.t6c_1 = cardsForLot;
|
|
1103
1103
|
}
|
|
1104
|
-
protoOf(FakeCardsDealerProvider).
|
|
1105
|
-
return this.
|
|
1104
|
+
protoOf(FakeCardsDealerProvider).r6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1105
|
+
return this.s6c_1;
|
|
1106
1106
|
};
|
|
1107
|
-
protoOf(FakeCardsDealerProvider).
|
|
1108
|
-
return this.
|
|
1107
|
+
protoOf(FakeCardsDealerProvider).s6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1108
|
+
return this.s6c_1;
|
|
1109
1109
|
};
|
|
1110
|
-
protoOf(FakeCardsDealerProvider).
|
|
1111
|
-
return this.
|
|
1110
|
+
protoOf(FakeCardsDealerProvider).t6a = function (count, cards) {
|
|
1111
|
+
return this.t6c_1;
|
|
1112
1112
|
};
|
|
1113
|
-
protoOf(FakeCardsDealerProvider).
|
|
1113
|
+
protoOf(FakeCardsDealerProvider).u6a = function (cards, times) {
|
|
1114
1114
|
return cards;
|
|
1115
1115
|
};
|
|
1116
|
-
protoOf(FakeCardsDealerProvider).
|
|
1116
|
+
protoOf(FakeCardsDealerProvider).w6a = function (cards, times) {
|
|
1117
1117
|
return cards;
|
|
1118
1118
|
};
|
|
1119
|
-
protoOf(FakeCardsDealerProvider).
|
|
1120
|
-
return this.
|
|
1119
|
+
protoOf(FakeCardsDealerProvider).y6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1120
|
+
return this.s6c_1.m();
|
|
1121
1121
|
};
|
|
1122
1122
|
function CombinationsCheckerProvider() {
|
|
1123
1123
|
}
|
|
@@ -1145,16 +1145,16 @@
|
|
|
1145
1145
|
return takeLast(cards, longestCombinationSupport);
|
|
1146
1146
|
}
|
|
1147
1147
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1148
|
-
this.
|
|
1148
|
+
this.z6c_1 = function_0;
|
|
1149
1149
|
}
|
|
1150
1150
|
protoOf(sam$kotlin_Comparator$0).nc = function (a, b) {
|
|
1151
|
-
return this.
|
|
1151
|
+
return this.z6c_1(a, b);
|
|
1152
1152
|
};
|
|
1153
1153
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1154
1154
|
return this.nc(a, b);
|
|
1155
1155
|
};
|
|
1156
1156
|
protoOf(sam$kotlin_Comparator$0).p3 = function () {
|
|
1157
|
-
return this.
|
|
1157
|
+
return this.z6c_1;
|
|
1158
1158
|
};
|
|
1159
1159
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1160
1160
|
var tmp;
|
|
@@ -1177,14 +1177,14 @@
|
|
|
1177
1177
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1178
1178
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1179
1179
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1180
|
-
var tmp = first_0(a).
|
|
1180
|
+
var tmp = first_0(a).z69_1;
|
|
1181
1181
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1182
|
-
var tmp$ret$1 = first_0(b).
|
|
1182
|
+
var tmp$ret$1 = first_0(b).z69_1;
|
|
1183
1183
|
return compareValues(tmp, tmp$ret$1);
|
|
1184
1184
|
}
|
|
1185
1185
|
function CombinationsCheckerProviderImpl() {
|
|
1186
1186
|
}
|
|
1187
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1187
|
+
protoOf(CombinationsCheckerProviderImpl).u6c = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1188
1188
|
// Inline function 'kotlin.collections.filter' call
|
|
1189
1189
|
// Inline function 'kotlin.apply' call
|
|
1190
1190
|
var this_0 = toMutableList(cards);
|
|
@@ -1197,7 +1197,7 @@
|
|
|
1197
1197
|
while (tmp0_iterator.k()) {
|
|
1198
1198
|
var element = tmp0_iterator.l();
|
|
1199
1199
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
|
|
1200
|
-
if (element.
|
|
1200
|
+
if (element.b6a()) {
|
|
1201
1201
|
destination.e(element);
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
@@ -1214,14 +1214,14 @@
|
|
|
1214
1214
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1215
1215
|
var previousCard = lastOrNull(combinationCards);
|
|
1216
1216
|
var currentCard = sortedByIndexCards.o(i);
|
|
1217
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1217
|
+
var isNextInRow = !(previousCard == null) && currentCard.z69_1 === (previousCard.z69_1 + 1 | 0) && currentCard.c6a().equals(previousCard.c6a());
|
|
1218
1218
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.p2());
|
|
1219
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1219
|
+
var passedSuitCheck = suit == null || currentCard.c6a().equals(suit);
|
|
1220
1220
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1221
1221
|
combinationCards.e(currentCard);
|
|
1222
1222
|
} else {
|
|
1223
1223
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1224
|
-
combinations.n(this.
|
|
1224
|
+
combinations.n(this.y6c(toMutableList(combinationCards), supportedCombinations));
|
|
1225
1225
|
}
|
|
1226
1226
|
combinationCards.a2();
|
|
1227
1227
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1231,11 +1231,11 @@
|
|
|
1231
1231
|
}
|
|
1232
1232
|
while (inductionVariable <= last);
|
|
1233
1233
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1234
|
-
combinations.n(this.
|
|
1234
|
+
combinations.n(this.y6c(toMutableList(combinationCards), supportedCombinations));
|
|
1235
1235
|
}
|
|
1236
1236
|
return combinations;
|
|
1237
1237
|
};
|
|
1238
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1238
|
+
protoOf(CombinationsCheckerProviderImpl).w6c = function (cards, cardsCount, includeCardNames) {
|
|
1239
1239
|
// Inline function 'kotlin.collections.filter' call
|
|
1240
1240
|
// Inline function 'kotlin.collections.filter' call
|
|
1241
1241
|
// Inline function 'kotlin.apply' call
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
while (tmp0_iterator.k()) {
|
|
1250
1250
|
var element = tmp0_iterator.l();
|
|
1251
1251
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1252
|
-
if (element.
|
|
1252
|
+
if (element.b6a()) {
|
|
1253
1253
|
destination.e(element);
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
@@ -1272,7 +1272,7 @@
|
|
|
1272
1272
|
while (tmp0_iterator_1.k()) {
|
|
1273
1273
|
var element_1 = tmp0_iterator_1.l();
|
|
1274
1274
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1275
|
-
var key = element_1.
|
|
1275
|
+
var key = element_1.d6a();
|
|
1276
1276
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1277
1277
|
var value = destination_1.h2(key);
|
|
1278
1278
|
var tmp;
|
|
@@ -1311,7 +1311,7 @@
|
|
|
1311
1311
|
}
|
|
1312
1312
|
return destination_3;
|
|
1313
1313
|
};
|
|
1314
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1314
|
+
protoOf(CombinationsCheckerProviderImpl).y6c = function (cards, supportedCombinations) {
|
|
1315
1315
|
// Inline function 'kotlin.collections.minOf' call
|
|
1316
1316
|
var iterator = supportedCombinations.j();
|
|
1317
1317
|
if (!iterator.k())
|
|
@@ -1341,28 +1341,28 @@
|
|
|
1341
1341
|
return sortedWith(combinations, tmp$ret$4);
|
|
1342
1342
|
};
|
|
1343
1343
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1344
|
+
this.a6d_1 = logger;
|
|
1345
|
+
this.b6d_1 = enableLogs;
|
|
1346
1346
|
}
|
|
1347
|
-
protoOf(DealerReducerImpl).
|
|
1347
|
+
protoOf(DealerReducerImpl).c6d = function (cards, cardsToRemove) {
|
|
1348
1348
|
var list = cards;
|
|
1349
1349
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1350
1350
|
while (_iterator__ex2g4s.k()) {
|
|
1351
1351
|
var gameCard = _iterator__ex2g4s.l();
|
|
1352
|
-
list = this.
|
|
1352
|
+
list = this.d6d(list, gameCard);
|
|
1353
1353
|
}
|
|
1354
1354
|
return list;
|
|
1355
1355
|
};
|
|
1356
|
-
protoOf(DealerReducerImpl).
|
|
1356
|
+
protoOf(DealerReducerImpl).d6d = function (cards, cardToRemove) {
|
|
1357
1357
|
var tmp;
|
|
1358
|
-
if (!cardToRemove.
|
|
1359
|
-
if (this.
|
|
1360
|
-
this.
|
|
1358
|
+
if (!cardToRemove.i6a() && cards.s1(cardToRemove)) {
|
|
1359
|
+
if (this.b6d_1) {
|
|
1360
|
+
this.a6d_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1361
1361
|
}
|
|
1362
1362
|
tmp = minus(cards, cardToRemove);
|
|
1363
1363
|
} else {
|
|
1364
|
-
if (this.
|
|
1365
|
-
this.
|
|
1364
|
+
if (this.b6d_1) {
|
|
1365
|
+
this.a6d_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1366
1366
|
}
|
|
1367
1367
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1368
1368
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1371,7 +1371,7 @@
|
|
|
1371
1371
|
while (tmp0_iterator.k()) {
|
|
1372
1372
|
var element = tmp0_iterator.l();
|
|
1373
1373
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1374
|
-
if (!element.
|
|
1374
|
+
if (!element.i6a()) {
|
|
1375
1375
|
destination.e(element);
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
@@ -1383,36 +1383,36 @@
|
|
|
1383
1383
|
while (tmp0_iterator_0.k()) {
|
|
1384
1384
|
var element_0 = tmp0_iterator_0.l();
|
|
1385
1385
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1386
|
-
if (element_0.
|
|
1386
|
+
if (element_0.i6a()) {
|
|
1387
1387
|
destination_0.e(element_0);
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
1390
|
var stubCards = destination_0;
|
|
1391
1391
|
if (stubCards.p()) {
|
|
1392
|
-
this.
|
|
1392
|
+
this.a6d_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1393
1393
|
}
|
|
1394
1394
|
tmp = plus(notStubCards, dropLast(stubCards, 1));
|
|
1395
1395
|
}
|
|
1396
1396
|
return tmp;
|
|
1397
1397
|
};
|
|
1398
|
-
protoOf(DealerReducerImpl).
|
|
1399
|
-
if (this.
|
|
1400
|
-
this.
|
|
1398
|
+
protoOf(DealerReducerImpl).e6d = function (cards, cardToAdd) {
|
|
1399
|
+
if (this.b6d_1) {
|
|
1400
|
+
this.a6d_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1401
1401
|
}
|
|
1402
1402
|
if (cards.s1(cardToAdd)) {
|
|
1403
|
-
this.
|
|
1403
|
+
this.a6d_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1404
1404
|
}
|
|
1405
1405
|
return plus_0(cards, cardToAdd);
|
|
1406
1406
|
};
|
|
1407
1407
|
function DealerReducer() {
|
|
1408
1408
|
}
|
|
1409
1409
|
//region block: post-declaration
|
|
1410
|
-
protoOf(CardsDealerProviderImpl).
|
|
1411
|
-
protoOf(CardsDealerProviderImpl).
|
|
1412
|
-
protoOf(FakeCardsDealerProvider).
|
|
1413
|
-
protoOf(FakeCardsDealerProvider).
|
|
1414
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1415
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1410
|
+
protoOf(CardsDealerProviderImpl).v6a = standardShuffledCards$default;
|
|
1411
|
+
protoOf(CardsDealerProviderImpl).x6a = realLifeShuffledCards$default;
|
|
1412
|
+
protoOf(FakeCardsDealerProvider).v6a = standardShuffledCards$default;
|
|
1413
|
+
protoOf(FakeCardsDealerProvider).x6a = realLifeShuffledCards$default;
|
|
1414
|
+
protoOf(CombinationsCheckerProviderImpl).v6c = findCardsInRowCombinations$default;
|
|
1415
|
+
protoOf(CombinationsCheckerProviderImpl).x6c = findSameCardsNumberCombinations$default;
|
|
1416
1416
|
//endregion
|
|
1417
1417
|
//region block: init
|
|
1418
1418
|
CoreConfig_instance = new CoreConfig();
|