game_client_logic_deb 1.8.387 → 1.8.388
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 +53 -53
- package/Kosi-Kodein-kodein-di.js +516 -516
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1389 -1389
- package/Logic_Debertz-core.js +1106 -1097
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +11099 -10937
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +3403 -3390
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlinx-coroutines-core.js +1262 -1218
- package/kotlinx-coroutines-core.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1431 -1431
- package/ktor-ktor-client-logging.js +269 -269
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +595 -595
- package/ktor-ktor-io.js +1208 -1208
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +128 -128
- package/ktor-ktor-serialization.js +63 -63
- package/ktor-ktor-utils.js +477 -477
- package/ktor-ktor-websockets.js +40 -40
- package/package.json +1 -1
- package/random-library-secure-random.js +1 -1
- package/raspberry-cardgame-lib-core.js +164 -164
- package/raspberry-cardgame-lib-random.js +552 -552
- package/uuid.js +11 -11
|
@@ -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.t5c(cards, times) : $super.t5c.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.v5c(cards, times) : $super.v5c.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.l5e(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.l5e.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.n5e(cards, cardsCount, includeCardNames) : $super.n5e.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]);
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
function CoreConfig() {
|
|
130
130
|
this.version = '0.0.53';
|
|
131
131
|
}
|
|
132
|
-
protoOf(CoreConfig).
|
|
132
|
+
protoOf(CoreConfig).w3u = function () {
|
|
133
133
|
return this.version;
|
|
134
134
|
};
|
|
135
135
|
var CoreConfig_instance;
|
|
@@ -138,33 +138,33 @@
|
|
|
138
138
|
}
|
|
139
139
|
function CardIndexComparator() {
|
|
140
140
|
}
|
|
141
|
-
protoOf(CardIndexComparator).
|
|
142
|
-
return a.
|
|
141
|
+
protoOf(CardIndexComparator).w5b = function (a, b) {
|
|
142
|
+
return a.x5b_1 - b.x5b_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.w5b(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.y5b_1 = suit;
|
|
154
154
|
}
|
|
155
|
-
protoOf(CardSuitSortingComparator).
|
|
156
|
-
if (!a.
|
|
155
|
+
protoOf(CardSuitSortingComparator).w5b = function (a, b) {
|
|
156
|
+
if (!a.z5b() || !b.z5b()) {
|
|
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.y5b_1.v1(a.a5c());
|
|
160
|
+
var suitIndexR = this.y5b_1.v1(b.a5c());
|
|
161
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.b5c() | 0;
|
|
162
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.b5c() | 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.w5b(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).w5b = function (a, b) {
|
|
186
|
+
return b.b5c() - a.b5c() | 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.w5b(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
191
191
|
};
|
|
192
192
|
var CardNumberComparator_instance;
|
|
193
193
|
function CardNumberComparator_getInstance() {
|
|
@@ -314,23 +314,23 @@
|
|
|
314
314
|
}
|
|
315
315
|
function Companion() {
|
|
316
316
|
}
|
|
317
|
-
protoOf(Companion).
|
|
317
|
+
protoOf(Companion).c5c = function (suit, number) {
|
|
318
318
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
319
319
|
};
|
|
320
|
-
protoOf(Companion).
|
|
320
|
+
protoOf(Companion).d5c = function (suit, cardNumber) {
|
|
321
321
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
322
322
|
};
|
|
323
|
-
protoOf(Companion).
|
|
323
|
+
protoOf(Companion).e5c = function (index) {
|
|
324
324
|
return new GameCard(index);
|
|
325
325
|
};
|
|
326
|
-
protoOf(Companion).
|
|
326
|
+
protoOf(Companion).f5c = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
327
327
|
var tmp;
|
|
328
328
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
329
329
|
tmp = null;
|
|
330
330
|
} else {
|
|
331
331
|
// Inline function 'kotlin.takeIf' call
|
|
332
332
|
var tmp_0;
|
|
333
|
-
if (previousHiddenCardWithMaxIndex.
|
|
333
|
+
if (previousHiddenCardWithMaxIndex.g5c()) {
|
|
334
334
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
335
335
|
} else {
|
|
336
336
|
tmp_0 = null;
|
|
@@ -338,8 +338,8 @@
|
|
|
338
338
|
tmp = tmp_0;
|
|
339
339
|
}
|
|
340
340
|
var tmp1_safe_receiver = tmp;
|
|
341
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
342
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
341
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x5b_1;
|
|
342
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.m5c(tmp2_safe_receiver, playerIndex, reverse);
|
|
343
343
|
var tmp_1;
|
|
344
344
|
if (tmp3_safe_receiver == null) {
|
|
345
345
|
tmp_1 = null;
|
|
@@ -358,12 +358,12 @@
|
|
|
358
358
|
var index = tmp_2;
|
|
359
359
|
return new GameCard(index);
|
|
360
360
|
};
|
|
361
|
-
protoOf(Companion).
|
|
361
|
+
protoOf(Companion).n5c = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
362
362
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
363
363
|
reverse = reverse === VOID ? false : reverse;
|
|
364
|
-
return $super === VOID ? this.
|
|
364
|
+
return $super === VOID ? this.f5c(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.f5c.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).o5c = function (position) {
|
|
367
367
|
var index = 150 + position | 0;
|
|
368
368
|
return new GameCard(index);
|
|
369
369
|
};
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
return tmp;
|
|
470
470
|
}
|
|
471
471
|
function _get_isShirt__vd98rp($this) {
|
|
472
|
-
return $this.
|
|
472
|
+
return $this.x5b_1 >= 150 && $this.x5b_1 <= 202;
|
|
473
473
|
}
|
|
474
474
|
function CardName(name, ordinal) {
|
|
475
475
|
Enum.call(this, name, ordinal);
|
|
@@ -478,13 +478,13 @@
|
|
|
478
478
|
return getShortName(this);
|
|
479
479
|
};
|
|
480
480
|
function Companion_0() {
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
481
|
+
this.h5c_1 = -1;
|
|
482
|
+
this.i5c_1 = 13;
|
|
483
|
+
this.j5c_1 = 52;
|
|
484
|
+
this.k5c_1 = 150;
|
|
485
|
+
this.l5c_1 = 53;
|
|
486
486
|
}
|
|
487
|
-
protoOf(Companion_0).
|
|
487
|
+
protoOf(Companion_0).m5c = function (_this__u8e3s4, playerIndex, reverse) {
|
|
488
488
|
var tmp;
|
|
489
489
|
if (reverse) {
|
|
490
490
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -554,59 +554,59 @@
|
|
|
554
554
|
return CardName_HIDDEN_instance;
|
|
555
555
|
}
|
|
556
556
|
function GameCard(index) {
|
|
557
|
-
this.
|
|
557
|
+
this.x5b_1 = index;
|
|
558
558
|
}
|
|
559
|
-
protoOf(GameCard).
|
|
559
|
+
protoOf(GameCard).a5c = function () {
|
|
560
560
|
var tmp;
|
|
561
|
-
var containsArg = this.
|
|
561
|
+
var containsArg = this.x5b_1;
|
|
562
562
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
563
563
|
tmp = Suit_DIAMOND_getInstance();
|
|
564
564
|
} else {
|
|
565
|
-
if (this.
|
|
565
|
+
if (this.x5b_1 <= 26) {
|
|
566
566
|
tmp = Suit_SPADE_getInstance();
|
|
567
567
|
} else {
|
|
568
|
-
if (this.
|
|
568
|
+
if (this.x5b_1 <= 39) {
|
|
569
569
|
tmp = Suit_HEART_getInstance();
|
|
570
570
|
} else {
|
|
571
|
-
if (this.
|
|
571
|
+
if (this.x5b_1 <= 52) {
|
|
572
572
|
tmp = Suit_CLUB_getInstance();
|
|
573
573
|
} else {
|
|
574
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
574
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.x5b_1);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return tmp;
|
|
580
580
|
};
|
|
581
|
-
protoOf(GameCard).
|
|
581
|
+
protoOf(GameCard).b5c = function () {
|
|
582
582
|
var tmp;
|
|
583
|
-
if (this.
|
|
583
|
+
if (this.g5c()) {
|
|
584
584
|
tmp = -1;
|
|
585
585
|
} else {
|
|
586
|
-
tmp = this.
|
|
586
|
+
tmp = this.x5b_1 - imul(13, getIndex(this.a5c())) | 0;
|
|
587
587
|
}
|
|
588
588
|
return tmp;
|
|
589
589
|
};
|
|
590
590
|
protoOf(GameCard).q2 = function () {
|
|
591
|
-
return this.
|
|
591
|
+
return this.g5c() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.b5c());
|
|
592
592
|
};
|
|
593
|
-
protoOf(GameCard).
|
|
594
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
593
|
+
protoOf(GameCard).z5b = function () {
|
|
594
|
+
return !_get_isShirt__vd98rp(this) && !this.g5c();
|
|
595
595
|
};
|
|
596
|
-
protoOf(GameCard).
|
|
597
|
-
return this.
|
|
596
|
+
protoOf(GameCard).g5c = function () {
|
|
597
|
+
return this.x5b_1 >= 53 && this.x5b_1 <= 105;
|
|
598
598
|
};
|
|
599
599
|
protoOf(GameCard).toString = function () {
|
|
600
600
|
if (_get_isShirt__vd98rp(this)) {
|
|
601
|
-
return 'GameCard(SHIRT, ' + this.
|
|
601
|
+
return 'GameCard(SHIRT, ' + this.x5b_1 + ')';
|
|
602
602
|
}
|
|
603
|
-
if (this.
|
|
604
|
-
return 'GameCard(HIDDEN, ' + this.
|
|
603
|
+
if (this.g5c()) {
|
|
604
|
+
return 'GameCard(HIDDEN, ' + this.x5b_1 + ')';
|
|
605
605
|
}
|
|
606
|
-
return 'GameCard(' + this.
|
|
606
|
+
return 'GameCard(' + this.a5c().toString() + this.q2().toString() + ', ' + this.x5b_1 + ')';
|
|
607
607
|
};
|
|
608
608
|
protoOf(GameCard).hashCode = function () {
|
|
609
|
-
return this.
|
|
609
|
+
return this.x5b_1;
|
|
610
610
|
};
|
|
611
611
|
protoOf(GameCard).equals = function (other) {
|
|
612
612
|
if (this === other)
|
|
@@ -614,12 +614,12 @@
|
|
|
614
614
|
if (!(other instanceof GameCard))
|
|
615
615
|
return false;
|
|
616
616
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
617
|
-
if (!(this.
|
|
617
|
+
if (!(this.x5b_1 === tmp0_other_with_cast.x5b_1))
|
|
618
618
|
return false;
|
|
619
619
|
return true;
|
|
620
620
|
};
|
|
621
621
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
622
|
-
return $this.
|
|
622
|
+
return $this.p5c_1.w();
|
|
623
623
|
}
|
|
624
624
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
625
625
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
Companion_instance_1 = this;
|
|
662
662
|
var tmp = this;
|
|
663
663
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
664
|
-
tmp.
|
|
664
|
+
tmp.p5c_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
665
665
|
}
|
|
666
666
|
protoOf(Companion_1).a1c = function () {
|
|
667
667
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
}
|
|
785
785
|
function Companion_2() {
|
|
786
786
|
}
|
|
787
|
-
protoOf(Companion_2).
|
|
787
|
+
protoOf(Companion_2).m5d = function (randomPoolProvider, logger) {
|
|
788
788
|
var tmp0_random = new SecureRandom(logger);
|
|
789
789
|
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
790
790
|
};
|
|
@@ -794,12 +794,12 @@
|
|
|
794
794
|
}
|
|
795
795
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
796
796
|
CoroutineImpl.call(this, resultContinuation);
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
797
|
+
this.v5d_1 = _this__u8e3s4;
|
|
798
|
+
this.w5d_1 = leftCardIndexForEachSuit;
|
|
799
|
+
this.x5d_1 = rightCardIndexForEachSuit;
|
|
800
|
+
this.y5d_1 = approximateRoundCountForGame;
|
|
801
|
+
this.z5d_1 = userData;
|
|
802
|
+
this.a5e_1 = provider;
|
|
803
803
|
}
|
|
804
804
|
protoOf($createNewShuffledCardDeckCOROUTINE$).z8 = function () {
|
|
805
805
|
var suspendResult = this.t8_1;
|
|
@@ -809,17 +809,17 @@
|
|
|
809
809
|
switch (tmp) {
|
|
810
810
|
case 0:
|
|
811
811
|
this.s8_1 = 4;
|
|
812
|
-
var tmp0 = this.
|
|
812
|
+
var tmp0 = this.a5e_1.p2_1;
|
|
813
813
|
if (tmp0 === 0) {
|
|
814
814
|
var tmp_0 = this;
|
|
815
|
-
var it = this.
|
|
816
|
-
tmp_0.
|
|
815
|
+
var it = this.v5d_1.q5c(this.w5d_1, this.x5d_1);
|
|
816
|
+
tmp_0.b5e_1 = this.v5d_1.u5c(it);
|
|
817
817
|
this.r8_1 = 3;
|
|
818
818
|
continue $sm;
|
|
819
819
|
} else {
|
|
820
820
|
if (tmp0 === 1) {
|
|
821
821
|
this.r8_1 = 2;
|
|
822
|
-
suspendResult = getRandomOrgCards(this.
|
|
822
|
+
suspendResult = getRandomOrgCards(this.v5d_1, this.w5d_1, this.x5d_1, this.y5d_1, this.z5d_1, false, this);
|
|
823
823
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
824
824
|
return suspendResult;
|
|
825
825
|
}
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
} else {
|
|
828
828
|
if (tmp0 === 2) {
|
|
829
829
|
this.r8_1 = 1;
|
|
830
|
-
suspendResult = getRandomOrgCards(this.
|
|
830
|
+
suspendResult = getRandomOrgCards(this.v5d_1, this.w5d_1, this.x5d_1, this.y5d_1, this.z5d_1, true, this);
|
|
831
831
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
832
832
|
return suspendResult;
|
|
833
833
|
}
|
|
@@ -841,15 +841,15 @@
|
|
|
841
841
|
|
|
842
842
|
break;
|
|
843
843
|
case 1:
|
|
844
|
-
this.
|
|
844
|
+
this.b5e_1 = suspendResult;
|
|
845
845
|
this.r8_1 = 3;
|
|
846
846
|
continue $sm;
|
|
847
847
|
case 2:
|
|
848
|
-
this.
|
|
848
|
+
this.b5e_1 = suspendResult;
|
|
849
849
|
this.r8_1 = 3;
|
|
850
850
|
continue $sm;
|
|
851
851
|
case 3:
|
|
852
|
-
return this.
|
|
852
|
+
return this.b5e_1;
|
|
853
853
|
case 4:
|
|
854
854
|
throw this.u8_1;
|
|
855
855
|
}
|
|
@@ -866,12 +866,12 @@
|
|
|
866
866
|
};
|
|
867
867
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
868
868
|
CoroutineImpl.call(this, resultContinuation);
|
|
869
|
-
this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
869
|
+
this.f5d_1 = _this__u8e3s4;
|
|
870
|
+
this.g5d_1 = leftCardIndexForEachSuit;
|
|
871
|
+
this.h5d_1 = rightCardIndexForEachSuit;
|
|
872
|
+
this.i5d_1 = approximateRoundsCount;
|
|
873
|
+
this.j5d_1 = userData;
|
|
874
|
+
this.k5d_1 = signed;
|
|
875
875
|
}
|
|
876
876
|
protoOf($getRandomOrgCardsCOROUTINE$).z8 = function () {
|
|
877
877
|
var suspendResult = this.t8_1;
|
|
@@ -881,11 +881,11 @@
|
|
|
881
881
|
switch (tmp) {
|
|
882
882
|
case 0:
|
|
883
883
|
this.s8_1 = 5;
|
|
884
|
-
var cardsCount = this.
|
|
885
|
-
var tmp0_$this = this.
|
|
884
|
+
var cardsCount = this.f5d_1.f5e(this.g5d_1, this.h5d_1);
|
|
885
|
+
var tmp0_$this = this.f5d_1.d5e_1;
|
|
886
886
|
var tmp1_max = cardsCount - 1 | 0;
|
|
887
887
|
this.r8_1 = 1;
|
|
888
|
-
suspendResult = tmp0_$this.
|
|
888
|
+
suspendResult = tmp0_$this.k57(this.i5d_1, this.j5d_1, 0, tmp1_max, cardsCount, this.k5d_1, VOID, this);
|
|
889
889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
890
890
|
return suspendResult;
|
|
891
891
|
}
|
|
@@ -904,21 +904,21 @@
|
|
|
904
904
|
throwOnFailure(result);
|
|
905
905
|
var tmp_1 = _Result___get_value__impl__bjfvqg(result);
|
|
906
906
|
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
907
|
-
var this_0 = normalizeCards(this.
|
|
907
|
+
var this_0 = normalizeCards(this.f5d_1, tmp2_cards, this.g5d_1);
|
|
908
908
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
909
909
|
var _iterator__ex2g4s = this_0.l();
|
|
910
910
|
while (_iterator__ex2g4s.m()) {
|
|
911
911
|
var item = _iterator__ex2g4s.n();
|
|
912
|
-
destination.j(Companion_instance.
|
|
912
|
+
destination.j(Companion_instance.e5c(item));
|
|
913
913
|
}
|
|
914
|
-
tmp_0.
|
|
914
|
+
tmp_0.l5d_1 = destination;
|
|
915
915
|
this.r8_1 = 4;
|
|
916
916
|
continue $sm;
|
|
917
917
|
} else {
|
|
918
918
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
919
|
-
this.
|
|
919
|
+
this.f5d_1.e5e_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
920
920
|
this.r8_1 = 3;
|
|
921
|
-
suspendResult = this.
|
|
921
|
+
suspendResult = this.f5d_1.r5c(this.g5d_1, this.h5d_1, this.i5d_1, this.j5d_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
922
922
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
923
923
|
return suspendResult;
|
|
924
924
|
}
|
|
@@ -926,11 +926,11 @@
|
|
|
926
926
|
}
|
|
927
927
|
|
|
928
928
|
case 3:
|
|
929
|
-
this.
|
|
929
|
+
this.l5d_1 = suspendResult;
|
|
930
930
|
this.r8_1 = 4;
|
|
931
931
|
continue $sm;
|
|
932
932
|
case 4:
|
|
933
|
-
return this.
|
|
933
|
+
return this.l5d_1;
|
|
934
934
|
case 5:
|
|
935
935
|
throw this.u8_1;
|
|
936
936
|
}
|
|
@@ -946,11 +946,11 @@
|
|
|
946
946
|
while (true);
|
|
947
947
|
};
|
|
948
948
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
949
|
-
this.
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
949
|
+
this.c5e_1 = random;
|
|
950
|
+
this.d5e_1 = randomPoolProvider;
|
|
951
|
+
this.e5e_1 = logger;
|
|
952
952
|
}
|
|
953
|
-
protoOf(CardsDealerProviderImpl).
|
|
953
|
+
protoOf(CardsDealerProviderImpl).q5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
954
954
|
// Inline function 'kotlin.collections.flatMap' call
|
|
955
955
|
var tmp0 = get_entries();
|
|
956
956
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -959,7 +959,7 @@
|
|
|
959
959
|
while (_iterator__ex2g4s.m()) {
|
|
960
960
|
var element = _iterator__ex2g4s.n();
|
|
961
961
|
// Inline function 'kotlin.collections.map' call
|
|
962
|
-
var this_0 = this.
|
|
962
|
+
var this_0 = this.g5e(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
963
963
|
// Inline function 'kotlin.collections.mapTo' call
|
|
964
964
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
965
965
|
var inductionVariable = this_0.z_1;
|
|
@@ -969,7 +969,7 @@
|
|
|
969
969
|
var item = inductionVariable;
|
|
970
970
|
inductionVariable = inductionVariable + 1 | 0;
|
|
971
971
|
var it = item;
|
|
972
|
-
var tmp$ret$0 = Companion_instance.
|
|
972
|
+
var tmp$ret$0 = Companion_instance.c5c(element, it);
|
|
973
973
|
destination_0.j(tmp$ret$0);
|
|
974
974
|
}
|
|
975
975
|
while (!(item === last));
|
|
@@ -978,27 +978,27 @@
|
|
|
978
978
|
}
|
|
979
979
|
return destination;
|
|
980
980
|
};
|
|
981
|
-
protoOf(CardsDealerProviderImpl).
|
|
981
|
+
protoOf(CardsDealerProviderImpl).g5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
982
982
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
983
983
|
};
|
|
984
|
-
protoOf(CardsDealerProviderImpl).
|
|
984
|
+
protoOf(CardsDealerProviderImpl).f5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
985
985
|
// Inline function 'kotlin.collections.sumOf' call
|
|
986
986
|
var sum = 0;
|
|
987
987
|
var _iterator__ex2g4s = get_entries().l();
|
|
988
988
|
while (_iterator__ex2g4s.m()) {
|
|
989
989
|
var element = _iterator__ex2g4s.n();
|
|
990
990
|
var tmp = sum;
|
|
991
|
-
sum = tmp + count(this.
|
|
991
|
+
sum = tmp + count(this.g5e(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
992
992
|
}
|
|
993
993
|
return sum;
|
|
994
994
|
};
|
|
995
|
-
protoOf(CardsDealerProviderImpl).
|
|
995
|
+
protoOf(CardsDealerProviderImpl).r5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
996
996
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
997
997
|
tmp.t8_1 = Unit_instance;
|
|
998
998
|
tmp.u8_1 = null;
|
|
999
999
|
return tmp.z8();
|
|
1000
1000
|
};
|
|
1001
|
-
protoOf(CardsDealerProviderImpl).
|
|
1001
|
+
protoOf(CardsDealerProviderImpl).s5c = function (count, cards) {
|
|
1002
1002
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1003
1003
|
// Inline function 'kotlin.apply' call
|
|
1004
1004
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
1030
1030
|
while (_iterator__ex2g4s_0.m()) {
|
|
1031
1031
|
var element = _iterator__ex2g4s_0.n();
|
|
1032
|
-
if (element.
|
|
1032
|
+
if (element.b5c() === card.b5c()) {
|
|
1033
1033
|
tmp$ret$2 = true;
|
|
1034
1034
|
break $l$block_1;
|
|
1035
1035
|
}
|
|
@@ -1044,7 +1044,7 @@
|
|
|
1044
1044
|
}
|
|
1045
1045
|
return this_0;
|
|
1046
1046
|
};
|
|
1047
|
-
protoOf(CardsDealerProviderImpl).
|
|
1047
|
+
protoOf(CardsDealerProviderImpl).t5c = function (cards, times) {
|
|
1048
1048
|
// Inline function 'kotlin.let' call
|
|
1049
1049
|
var shuffled = toMutableList(cards);
|
|
1050
1050
|
var inductionVariable = 0;
|
|
@@ -1052,53 +1052,53 @@
|
|
|
1052
1052
|
do {
|
|
1053
1053
|
var i = inductionVariable;
|
|
1054
1054
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1055
|
-
shuffled = this.
|
|
1055
|
+
shuffled = this.c5e_1.r5b(shuffled);
|
|
1056
1056
|
}
|
|
1057
1057
|
while (inductionVariable < times);
|
|
1058
1058
|
return shuffled;
|
|
1059
1059
|
};
|
|
1060
|
-
protoOf(CardsDealerProviderImpl).
|
|
1061
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1060
|
+
protoOf(CardsDealerProviderImpl).v5c = function (cards, times) {
|
|
1061
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.c5e_1), times, this.c5e_1));
|
|
1062
1062
|
};
|
|
1063
1063
|
function Companion_3() {
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf(Companion_3).
|
|
1065
|
+
protoOf(Companion_3).h5e = function () {
|
|
1066
1066
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1067
1067
|
// Inline function 'kotlin.apply' call
|
|
1068
1068
|
var this_0 = ArrayList_init_$Create$();
|
|
1069
|
-
this_0.q(listOf([Companion_instance.
|
|
1070
|
-
this_0.q(listOf([Companion_instance.
|
|
1071
|
-
this_0.q(listOf([Companion_instance.
|
|
1072
|
-
this_0.q(listOf([Companion_instance.
|
|
1073
|
-
this_0.q(listOf([Companion_instance.
|
|
1069
|
+
this_0.q(listOf([Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1070
|
+
this_0.q(listOf([Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1071
|
+
this_0.q(listOf([Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1072
|
+
this_0.q(listOf([Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1073
|
+
this_0.q(listOf([Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1074
1074
|
return this_0;
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(Companion_3).
|
|
1077
|
-
return listOf([Companion_instance.
|
|
1076
|
+
protoOf(Companion_3).i5e = function () {
|
|
1077
|
+
return listOf([Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1078
1078
|
};
|
|
1079
1079
|
var Companion_instance_3;
|
|
1080
1080
|
function Companion_getInstance_3() {
|
|
1081
1081
|
return Companion_instance_3;
|
|
1082
1082
|
}
|
|
1083
1083
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1084
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1085
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1086
|
-
this.
|
|
1087
|
-
this.
|
|
1084
|
+
cards = cards === VOID ? Companion_instance_3.h5e() : cards;
|
|
1085
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.i5e() : cardsForLot;
|
|
1086
|
+
this.j5e_1 = cards;
|
|
1087
|
+
this.k5e_1 = cardsForLot;
|
|
1088
1088
|
}
|
|
1089
|
-
protoOf(FakeCardsDealerProvider).
|
|
1090
|
-
return this.
|
|
1089
|
+
protoOf(FakeCardsDealerProvider).q5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1090
|
+
return this.j5e_1;
|
|
1091
1091
|
};
|
|
1092
|
-
protoOf(FakeCardsDealerProvider).
|
|
1093
|
-
return this.
|
|
1092
|
+
protoOf(FakeCardsDealerProvider).r5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1093
|
+
return this.j5e_1;
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(FakeCardsDealerProvider).
|
|
1096
|
-
return this.
|
|
1095
|
+
protoOf(FakeCardsDealerProvider).s5c = function (count, cards) {
|
|
1096
|
+
return this.k5e_1;
|
|
1097
1097
|
};
|
|
1098
|
-
protoOf(FakeCardsDealerProvider).
|
|
1098
|
+
protoOf(FakeCardsDealerProvider).t5c = function (cards, times) {
|
|
1099
1099
|
return cards;
|
|
1100
1100
|
};
|
|
1101
|
-
protoOf(FakeCardsDealerProvider).
|
|
1101
|
+
protoOf(FakeCardsDealerProvider).v5c = function (cards, times) {
|
|
1102
1102
|
return cards;
|
|
1103
1103
|
};
|
|
1104
1104
|
function CombinationsCheckerProvider() {
|
|
@@ -1126,16 +1126,16 @@
|
|
|
1126
1126
|
return takeLast(cards, longestCombinationSupport);
|
|
1127
1127
|
}
|
|
1128
1128
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1129
|
-
this.
|
|
1129
|
+
this.q5e_1 = function_0;
|
|
1130
1130
|
}
|
|
1131
1131
|
protoOf(sam$kotlin_Comparator$0).ec = function (a, b) {
|
|
1132
|
-
return this.
|
|
1132
|
+
return this.q5e_1(a, b);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1135
1135
|
return this.ec(a, b);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(sam$kotlin_Comparator$0).a3 = function () {
|
|
1138
|
-
return this.
|
|
1138
|
+
return this.q5e_1;
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1141
1141
|
var tmp;
|
|
@@ -1157,13 +1157,13 @@
|
|
|
1157
1157
|
};
|
|
1158
1158
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1159
1159
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1160
|
-
var tmp = first_0(a).
|
|
1161
|
-
var tmp$ret$1 = first_0(b).
|
|
1160
|
+
var tmp = first_0(a).x5b_1;
|
|
1161
|
+
var tmp$ret$1 = first_0(b).x5b_1;
|
|
1162
1162
|
return compareValues(tmp, tmp$ret$1);
|
|
1163
1163
|
}
|
|
1164
1164
|
function CombinationsCheckerProviderImpl() {
|
|
1165
1165
|
}
|
|
1166
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1166
|
+
protoOf(CombinationsCheckerProviderImpl).l5e = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1167
1167
|
// Inline function 'kotlin.apply' call
|
|
1168
1168
|
var this_0 = toMutableList(cards);
|
|
1169
1169
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1173,7 +1173,7 @@
|
|
|
1173
1173
|
var _iterator__ex2g4s = this_0.l();
|
|
1174
1174
|
while (_iterator__ex2g4s.m()) {
|
|
1175
1175
|
var element = _iterator__ex2g4s.n();
|
|
1176
|
-
if (element.
|
|
1176
|
+
if (element.z5b()) {
|
|
1177
1177
|
destination.j(element);
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
@@ -1190,14 +1190,14 @@
|
|
|
1190
1190
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1191
1191
|
var previousCard = lastOrNull(combinationCards);
|
|
1192
1192
|
var currentCard = sortedByIndexCards.p(i);
|
|
1193
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1193
|
+
var isNextInRow = !(previousCard == null) && currentCard.x5b_1 === (previousCard.x5b_1 + 1 | 0) && currentCard.a5c().equals(previousCard.a5c());
|
|
1194
1194
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.t1(currentCard.q2());
|
|
1195
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1195
|
+
var passedSuitCheck = suit == null || currentCard.a5c().equals(suit);
|
|
1196
1196
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1197
1197
|
combinationCards.j(currentCard);
|
|
1198
1198
|
} else {
|
|
1199
1199
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1200
|
-
combinations.q(this.
|
|
1200
|
+
combinations.q(this.p5e(toMutableList(combinationCards), supportedCombinations));
|
|
1201
1201
|
}
|
|
1202
1202
|
combinationCards.h2();
|
|
1203
1203
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1207,11 +1207,11 @@
|
|
|
1207
1207
|
}
|
|
1208
1208
|
while (inductionVariable <= last);
|
|
1209
1209
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1210
|
-
combinations.q(this.
|
|
1210
|
+
combinations.q(this.p5e(toMutableList(combinationCards), supportedCombinations));
|
|
1211
1211
|
}
|
|
1212
1212
|
return combinations;
|
|
1213
1213
|
};
|
|
1214
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1214
|
+
protoOf(CombinationsCheckerProviderImpl).n5e = function (cards, cardsCount, includeCardNames) {
|
|
1215
1215
|
// Inline function 'kotlin.apply' call
|
|
1216
1216
|
var this_0 = toMutableList(cards);
|
|
1217
1217
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1221,7 +1221,7 @@
|
|
|
1221
1221
|
var _iterator__ex2g4s = this_0.l();
|
|
1222
1222
|
while (_iterator__ex2g4s.m()) {
|
|
1223
1223
|
var element = _iterator__ex2g4s.n();
|
|
1224
|
-
if (element.
|
|
1224
|
+
if (element.z5b()) {
|
|
1225
1225
|
destination.j(element);
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
@@ -1242,7 +1242,7 @@
|
|
|
1242
1242
|
var _iterator__ex2g4s_1 = sortedByNumberCards.l();
|
|
1243
1243
|
while (_iterator__ex2g4s_1.m()) {
|
|
1244
1244
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
1245
|
-
var key = element_1.
|
|
1245
|
+
var key = element_1.b5c();
|
|
1246
1246
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1247
1247
|
var value = destination_1.b2(key);
|
|
1248
1248
|
var tmp;
|
|
@@ -1279,7 +1279,7 @@
|
|
|
1279
1279
|
}
|
|
1280
1280
|
return destination_3;
|
|
1281
1281
|
};
|
|
1282
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1282
|
+
protoOf(CombinationsCheckerProviderImpl).p5e = function (cards, supportedCombinations) {
|
|
1283
1283
|
// Inline function 'kotlin.collections.minOf' call
|
|
1284
1284
|
var iterator = supportedCombinations.l();
|
|
1285
1285
|
if (!iterator.m())
|
|
@@ -1309,28 +1309,28 @@
|
|
|
1309
1309
|
function DealerReducer() {
|
|
1310
1310
|
}
|
|
1311
1311
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1312
|
+
this.u5e_1 = logger;
|
|
1313
|
+
this.v5e_1 = enableLogs;
|
|
1314
1314
|
}
|
|
1315
|
-
protoOf(DealerReducerImpl).
|
|
1315
|
+
protoOf(DealerReducerImpl).r5e = function (cards, cardsToRemove) {
|
|
1316
1316
|
var list = cards;
|
|
1317
1317
|
var _iterator__ex2g4s = cardsToRemove.l();
|
|
1318
1318
|
while (_iterator__ex2g4s.m()) {
|
|
1319
1319
|
var gameCard = _iterator__ex2g4s.n();
|
|
1320
|
-
list = this.
|
|
1320
|
+
list = this.s5e(list, gameCard);
|
|
1321
1321
|
}
|
|
1322
1322
|
return list;
|
|
1323
1323
|
};
|
|
1324
|
-
protoOf(DealerReducerImpl).
|
|
1324
|
+
protoOf(DealerReducerImpl).s5e = function (cards, cardToRemove) {
|
|
1325
1325
|
var tmp;
|
|
1326
|
-
if (!cardToRemove.
|
|
1327
|
-
if (this.
|
|
1328
|
-
this.
|
|
1326
|
+
if (!cardToRemove.g5c() && cards.t1(cardToRemove)) {
|
|
1327
|
+
if (this.v5e_1) {
|
|
1328
|
+
this.u5e_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1329
1329
|
}
|
|
1330
1330
|
tmp = minus(cards, cardToRemove);
|
|
1331
1331
|
} else {
|
|
1332
|
-
if (this.
|
|
1333
|
-
this.
|
|
1332
|
+
if (this.v5e_1) {
|
|
1333
|
+
this.u5e_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1334
1334
|
}
|
|
1335
1335
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1336
1336
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
var _iterator__ex2g4s = cards.l();
|
|
1339
1339
|
while (_iterator__ex2g4s.m()) {
|
|
1340
1340
|
var element = _iterator__ex2g4s.n();
|
|
1341
|
-
if (!element.
|
|
1341
|
+
if (!element.g5c()) {
|
|
1342
1342
|
destination.j(element);
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
@@ -1349,34 +1349,34 @@
|
|
|
1349
1349
|
var _iterator__ex2g4s_0 = cards.l();
|
|
1350
1350
|
while (_iterator__ex2g4s_0.m()) {
|
|
1351
1351
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1352
|
-
if (element_0.
|
|
1352
|
+
if (element_0.g5c()) {
|
|
1353
1353
|
destination_0.j(element_0);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
var hiddenCards = destination_0;
|
|
1357
1357
|
if (hiddenCards.r()) {
|
|
1358
|
-
this.
|
|
1358
|
+
this.u5e_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1359
1359
|
}
|
|
1360
1360
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1361
1361
|
}
|
|
1362
1362
|
return tmp;
|
|
1363
1363
|
};
|
|
1364
|
-
protoOf(DealerReducerImpl).
|
|
1365
|
-
if (this.
|
|
1366
|
-
this.
|
|
1364
|
+
protoOf(DealerReducerImpl).t5e = function (cards, cardToAdd) {
|
|
1365
|
+
if (this.v5e_1) {
|
|
1366
|
+
this.u5e_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
|
|
1367
1367
|
}
|
|
1368
1368
|
if (cards.t1(cardToAdd)) {
|
|
1369
|
-
this.
|
|
1369
|
+
this.u5e_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1370
1370
|
}
|
|
1371
1371
|
return plus_0(cards, cardToAdd);
|
|
1372
1372
|
};
|
|
1373
1373
|
//region block: post-declaration
|
|
1374
|
-
protoOf(CardsDealerProviderImpl).
|
|
1375
|
-
protoOf(CardsDealerProviderImpl).
|
|
1376
|
-
protoOf(FakeCardsDealerProvider).
|
|
1377
|
-
protoOf(FakeCardsDealerProvider).
|
|
1378
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1379
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1374
|
+
protoOf(CardsDealerProviderImpl).u5c = standardShuffledCards$default;
|
|
1375
|
+
protoOf(CardsDealerProviderImpl).w5c = realLifeShuffledCards$default;
|
|
1376
|
+
protoOf(FakeCardsDealerProvider).u5c = standardShuffledCards$default;
|
|
1377
|
+
protoOf(FakeCardsDealerProvider).w5c = realLifeShuffledCards$default;
|
|
1378
|
+
protoOf(CombinationsCheckerProviderImpl).m5e = findCardsInRowCombinations$default;
|
|
1379
|
+
protoOf(CombinationsCheckerProviderImpl).o5e = findSameCardsNumberCombinations$default;
|
|
1380
1380
|
//endregion
|
|
1381
1381
|
//region block: init
|
|
1382
1382
|
CoreConfig_instance = new CoreConfig();
|