raspberry_games_server_game_logic 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 +1147 -1147
- package/Logic_Debertz-engine.js +11461 -11299
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +1087 -1076
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +1290 -1246
- 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 +129 -129
- package/ktor-ktor-serialization.js +64 -64
- package/ktor-ktor-utils.js +477 -477
- package/ktor-ktor-websockets.js +40 -40
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +157 -157
- package/raspberry-cardgame-lib-random.js +586 -586
- package/uuid.js +11 -11
|
@@ -95,11 +95,11 @@
|
|
|
95
95
|
initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
|
|
96
96
|
function standardShuffledCards$default(cards, times, $super) {
|
|
97
97
|
times = times === VOID ? 3 : times;
|
|
98
|
-
return $super === VOID ? this.
|
|
98
|
+
return $super === VOID ? this.n5e(cards, times) : $super.n5e.call(this, cards, times);
|
|
99
99
|
}
|
|
100
100
|
function realLifeShuffledCards$default(cards, times, $super) {
|
|
101
101
|
times = times === VOID ? 20 : times;
|
|
102
|
-
return $super === VOID ? this.
|
|
102
|
+
return $super === VOID ? this.p5e(cards, times) : $super.p5e.call(this, cards, times);
|
|
103
103
|
}
|
|
104
104
|
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
|
|
105
105
|
initMetadataForCompanion(Companion_2);
|
|
@@ -112,12 +112,12 @@
|
|
|
112
112
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
113
113
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
114
114
|
suit = suit === VOID ? null : suit;
|
|
115
|
-
return $super === VOID ? this.
|
|
115
|
+
return $super === VOID ? this.f5g(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.f5g.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
116
116
|
}
|
|
117
117
|
function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
|
|
118
118
|
cardsCount = cardsCount === VOID ? 4 : cardsCount;
|
|
119
119
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
120
|
-
return $super === VOID ? this.
|
|
120
|
+
return $super === VOID ? this.h5g(cards, cardsCount, includeCardNames) : $super.h5g.call(this, cards, cardsCount, includeCardNames);
|
|
121
121
|
}
|
|
122
122
|
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
123
123
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
function CoreConfig() {
|
|
129
129
|
this.version = '0.0.53';
|
|
130
130
|
}
|
|
131
|
-
protoOf(CoreConfig).
|
|
131
|
+
protoOf(CoreConfig).a3w = function () {
|
|
132
132
|
return this.version;
|
|
133
133
|
};
|
|
134
134
|
var CoreConfig_instance;
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
}
|
|
138
138
|
function CardIndexComparator() {
|
|
139
139
|
}
|
|
140
|
-
protoOf(CardIndexComparator).
|
|
141
|
-
return a.
|
|
140
|
+
protoOf(CardIndexComparator).s5d = function (a, b) {
|
|
141
|
+
return a.t5d_1 - b.t5d_1 | 0;
|
|
142
142
|
};
|
|
143
143
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
144
144
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
145
|
-
return this.
|
|
145
|
+
return this.s5d(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
146
146
|
};
|
|
147
147
|
var CardIndexComparator_instance;
|
|
148
148
|
function CardIndexComparator_getInstance() {
|
|
@@ -150,12 +150,12 @@
|
|
|
150
150
|
}
|
|
151
151
|
function CardNumberComparator() {
|
|
152
152
|
}
|
|
153
|
-
protoOf(CardNumberComparator).
|
|
154
|
-
return b.
|
|
153
|
+
protoOf(CardNumberComparator).s5d = function (a, b) {
|
|
154
|
+
return b.u5d() - a.u5d() | 0;
|
|
155
155
|
};
|
|
156
156
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
157
157
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
158
|
-
return this.
|
|
158
|
+
return this.s5d(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
159
159
|
};
|
|
160
160
|
var CardNumberComparator_instance;
|
|
161
161
|
function CardNumberComparator_getInstance() {
|
|
@@ -296,23 +296,23 @@
|
|
|
296
296
|
}
|
|
297
297
|
function Companion() {
|
|
298
298
|
}
|
|
299
|
-
protoOf(Companion).
|
|
299
|
+
protoOf(Companion).v5d = function (suit, number) {
|
|
300
300
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
301
301
|
};
|
|
302
|
-
protoOf(Companion).
|
|
302
|
+
protoOf(Companion).w5d = function (suit, cardNumber) {
|
|
303
303
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
304
304
|
};
|
|
305
|
-
protoOf(Companion).
|
|
305
|
+
protoOf(Companion).x5d = function (index) {
|
|
306
306
|
return new GameCard(index);
|
|
307
307
|
};
|
|
308
|
-
protoOf(Companion).
|
|
308
|
+
protoOf(Companion).y5d = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
309
309
|
var tmp;
|
|
310
310
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
311
311
|
tmp = null;
|
|
312
312
|
} else {
|
|
313
313
|
// Inline function 'kotlin.takeIf' call
|
|
314
314
|
var tmp_0;
|
|
315
|
-
if (previousHiddenCardWithMaxIndex.
|
|
315
|
+
if (previousHiddenCardWithMaxIndex.z5d()) {
|
|
316
316
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
317
317
|
} else {
|
|
318
318
|
tmp_0 = null;
|
|
@@ -320,8 +320,8 @@
|
|
|
320
320
|
tmp = tmp_0;
|
|
321
321
|
}
|
|
322
322
|
var tmp1_safe_receiver = tmp;
|
|
323
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
324
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
323
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t5d_1;
|
|
324
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.f5e(tmp2_safe_receiver, playerIndex, reverse);
|
|
325
325
|
var tmp_1;
|
|
326
326
|
if (tmp3_safe_receiver == null) {
|
|
327
327
|
tmp_1 = null;
|
|
@@ -340,10 +340,10 @@
|
|
|
340
340
|
var index = tmp_2;
|
|
341
341
|
return new GameCard(index);
|
|
342
342
|
};
|
|
343
|
-
protoOf(Companion).
|
|
343
|
+
protoOf(Companion).g5e = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
344
344
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
345
345
|
reverse = reverse === VOID ? false : reverse;
|
|
346
|
-
return $super === VOID ? this.
|
|
346
|
+
return $super === VOID ? this.y5d(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.y5d.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
347
347
|
};
|
|
348
348
|
var Companion_instance;
|
|
349
349
|
function Companion_getInstance() {
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
return tmp;
|
|
448
448
|
}
|
|
449
449
|
function _get_isShirt__vd98rp($this) {
|
|
450
|
-
return $this.
|
|
450
|
+
return $this.t5d_1 >= 150 && $this.t5d_1 <= 202;
|
|
451
451
|
}
|
|
452
452
|
function CardName(name, ordinal) {
|
|
453
453
|
Enum.call(this, name, ordinal);
|
|
@@ -456,13 +456,13 @@
|
|
|
456
456
|
return getShortName(this);
|
|
457
457
|
};
|
|
458
458
|
function Companion_0() {
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
461
|
-
this.
|
|
462
|
-
this.
|
|
463
|
-
this.
|
|
459
|
+
this.a5e_1 = -1;
|
|
460
|
+
this.b5e_1 = 13;
|
|
461
|
+
this.c5e_1 = 52;
|
|
462
|
+
this.d5e_1 = 150;
|
|
463
|
+
this.e5e_1 = 53;
|
|
464
464
|
}
|
|
465
|
-
protoOf(Companion_0).
|
|
465
|
+
protoOf(Companion_0).f5e = function (_this__u8e3s4, playerIndex, reverse) {
|
|
466
466
|
var tmp;
|
|
467
467
|
if (reverse) {
|
|
468
468
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -532,59 +532,59 @@
|
|
|
532
532
|
return CardName_HIDDEN_instance;
|
|
533
533
|
}
|
|
534
534
|
function GameCard(index) {
|
|
535
|
-
this.
|
|
535
|
+
this.t5d_1 = index;
|
|
536
536
|
}
|
|
537
|
-
protoOf(GameCard).
|
|
537
|
+
protoOf(GameCard).h5e = function () {
|
|
538
538
|
var tmp;
|
|
539
|
-
var containsArg = this.
|
|
539
|
+
var containsArg = this.t5d_1;
|
|
540
540
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
541
541
|
tmp = Suit_DIAMOND_getInstance();
|
|
542
542
|
} else {
|
|
543
|
-
if (this.
|
|
543
|
+
if (this.t5d_1 <= 26) {
|
|
544
544
|
tmp = Suit_SPADE_getInstance();
|
|
545
545
|
} else {
|
|
546
|
-
if (this.
|
|
546
|
+
if (this.t5d_1 <= 39) {
|
|
547
547
|
tmp = Suit_HEART_getInstance();
|
|
548
548
|
} else {
|
|
549
|
-
if (this.
|
|
549
|
+
if (this.t5d_1 <= 52) {
|
|
550
550
|
tmp = Suit_CLUB_getInstance();
|
|
551
551
|
} else {
|
|
552
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
552
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.t5d_1);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
return tmp;
|
|
558
558
|
};
|
|
559
|
-
protoOf(GameCard).
|
|
559
|
+
protoOf(GameCard).u5d = function () {
|
|
560
560
|
var tmp;
|
|
561
|
-
if (this.
|
|
561
|
+
if (this.z5d()) {
|
|
562
562
|
tmp = -1;
|
|
563
563
|
} else {
|
|
564
|
-
tmp = this.
|
|
564
|
+
tmp = this.t5d_1 - imul(13, getIndex(this.h5e())) | 0;
|
|
565
565
|
}
|
|
566
566
|
return tmp;
|
|
567
567
|
};
|
|
568
568
|
protoOf(GameCard).q2 = function () {
|
|
569
|
-
return this.
|
|
569
|
+
return this.z5d() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.u5d());
|
|
570
570
|
};
|
|
571
|
-
protoOf(GameCard).
|
|
572
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
571
|
+
protoOf(GameCard).i5e = function () {
|
|
572
|
+
return !_get_isShirt__vd98rp(this) && !this.z5d();
|
|
573
573
|
};
|
|
574
|
-
protoOf(GameCard).
|
|
575
|
-
return this.
|
|
574
|
+
protoOf(GameCard).z5d = function () {
|
|
575
|
+
return this.t5d_1 >= 53 && this.t5d_1 <= 105;
|
|
576
576
|
};
|
|
577
577
|
protoOf(GameCard).toString = function () {
|
|
578
578
|
if (_get_isShirt__vd98rp(this)) {
|
|
579
|
-
return 'GameCard(SHIRT, ' + this.
|
|
579
|
+
return 'GameCard(SHIRT, ' + this.t5d_1 + ')';
|
|
580
580
|
}
|
|
581
|
-
if (this.
|
|
582
|
-
return 'GameCard(HIDDEN, ' + this.
|
|
581
|
+
if (this.z5d()) {
|
|
582
|
+
return 'GameCard(HIDDEN, ' + this.t5d_1 + ')';
|
|
583
583
|
}
|
|
584
|
-
return 'GameCard(' + this.
|
|
584
|
+
return 'GameCard(' + this.h5e().toString() + this.q2().toString() + ', ' + this.t5d_1 + ')';
|
|
585
585
|
};
|
|
586
586
|
protoOf(GameCard).hashCode = function () {
|
|
587
|
-
return this.
|
|
587
|
+
return this.t5d_1;
|
|
588
588
|
};
|
|
589
589
|
protoOf(GameCard).equals = function (other) {
|
|
590
590
|
if (this === other)
|
|
@@ -592,12 +592,12 @@
|
|
|
592
592
|
if (!(other instanceof GameCard))
|
|
593
593
|
return false;
|
|
594
594
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
595
|
-
if (!(this.
|
|
595
|
+
if (!(this.t5d_1 === tmp0_other_with_cast.t5d_1))
|
|
596
596
|
return false;
|
|
597
597
|
return true;
|
|
598
598
|
};
|
|
599
599
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
600
|
-
return $this.
|
|
600
|
+
return $this.j5e_1.w();
|
|
601
601
|
}
|
|
602
602
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
603
603
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
Companion_instance_1 = this;
|
|
640
640
|
var tmp = this;
|
|
641
641
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
642
|
-
tmp.
|
|
642
|
+
tmp.j5e_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
643
643
|
}
|
|
644
644
|
protoOf(Companion_1).a1c = function () {
|
|
645
645
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -762,7 +762,7 @@
|
|
|
762
762
|
}
|
|
763
763
|
function Companion_2() {
|
|
764
764
|
}
|
|
765
|
-
protoOf(Companion_2).
|
|
765
|
+
protoOf(Companion_2).h5f = function (randomPoolProvider, logger) {
|
|
766
766
|
var tmp0_random = new SecureRandom(logger);
|
|
767
767
|
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
768
768
|
};
|
|
@@ -772,12 +772,12 @@
|
|
|
772
772
|
}
|
|
773
773
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
774
774
|
CoroutineImpl.call(this, resultContinuation);
|
|
775
|
-
this.
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
775
|
+
this.q5f_1 = _this__u8e3s4;
|
|
776
|
+
this.r5f_1 = leftCardIndexForEachSuit;
|
|
777
|
+
this.s5f_1 = rightCardIndexForEachSuit;
|
|
778
|
+
this.t5f_1 = approximateRoundCountForGame;
|
|
779
|
+
this.u5f_1 = userData;
|
|
780
|
+
this.v5f_1 = provider;
|
|
781
781
|
}
|
|
782
782
|
protoOf($createNewShuffledCardDeckCOROUTINE$).z8 = function () {
|
|
783
783
|
var suspendResult = this.t8_1;
|
|
@@ -787,17 +787,17 @@
|
|
|
787
787
|
switch (tmp) {
|
|
788
788
|
case 0:
|
|
789
789
|
this.s8_1 = 4;
|
|
790
|
-
var tmp0 = this.
|
|
790
|
+
var tmp0 = this.v5f_1.p2_1;
|
|
791
791
|
if (tmp0 === 0) {
|
|
792
792
|
var tmp_0 = this;
|
|
793
|
-
var it = this.
|
|
794
|
-
tmp_0.
|
|
793
|
+
var it = this.q5f_1.k5e(this.r5f_1, this.s5f_1);
|
|
794
|
+
tmp_0.w5f_1 = this.q5f_1.o5e(it);
|
|
795
795
|
this.r8_1 = 3;
|
|
796
796
|
continue $sm;
|
|
797
797
|
} else {
|
|
798
798
|
if (tmp0 === 1) {
|
|
799
799
|
this.r8_1 = 2;
|
|
800
|
-
suspendResult = getRandomOrgCards(this.
|
|
800
|
+
suspendResult = getRandomOrgCards(this.q5f_1, this.r5f_1, this.s5f_1, this.t5f_1, this.u5f_1, false, this);
|
|
801
801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
802
802
|
return suspendResult;
|
|
803
803
|
}
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
} else {
|
|
806
806
|
if (tmp0 === 2) {
|
|
807
807
|
this.r8_1 = 1;
|
|
808
|
-
suspendResult = getRandomOrgCards(this.
|
|
808
|
+
suspendResult = getRandomOrgCards(this.q5f_1, this.r5f_1, this.s5f_1, this.t5f_1, this.u5f_1, true, this);
|
|
809
809
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
810
810
|
return suspendResult;
|
|
811
811
|
}
|
|
@@ -819,15 +819,15 @@
|
|
|
819
819
|
|
|
820
820
|
break;
|
|
821
821
|
case 1:
|
|
822
|
-
this.
|
|
822
|
+
this.w5f_1 = suspendResult;
|
|
823
823
|
this.r8_1 = 3;
|
|
824
824
|
continue $sm;
|
|
825
825
|
case 2:
|
|
826
|
-
this.
|
|
826
|
+
this.w5f_1 = suspendResult;
|
|
827
827
|
this.r8_1 = 3;
|
|
828
828
|
continue $sm;
|
|
829
829
|
case 3:
|
|
830
|
-
return this.
|
|
830
|
+
return this.w5f_1;
|
|
831
831
|
case 4:
|
|
832
832
|
throw this.u8_1;
|
|
833
833
|
}
|
|
@@ -844,12 +844,12 @@
|
|
|
844
844
|
};
|
|
845
845
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
846
846
|
CoroutineImpl.call(this, resultContinuation);
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
852
|
-
this.
|
|
847
|
+
this.a5f_1 = _this__u8e3s4;
|
|
848
|
+
this.b5f_1 = leftCardIndexForEachSuit;
|
|
849
|
+
this.c5f_1 = rightCardIndexForEachSuit;
|
|
850
|
+
this.d5f_1 = approximateRoundsCount;
|
|
851
|
+
this.e5f_1 = userData;
|
|
852
|
+
this.f5f_1 = signed;
|
|
853
853
|
}
|
|
854
854
|
protoOf($getRandomOrgCardsCOROUTINE$).z8 = function () {
|
|
855
855
|
var suspendResult = this.t8_1;
|
|
@@ -859,11 +859,11 @@
|
|
|
859
859
|
switch (tmp) {
|
|
860
860
|
case 0:
|
|
861
861
|
this.s8_1 = 5;
|
|
862
|
-
var cardsCount = this.
|
|
863
|
-
var tmp0_$this = this.
|
|
862
|
+
var cardsCount = this.a5f_1.r5e(this.b5f_1, this.c5f_1);
|
|
863
|
+
var tmp0_$this = this.a5f_1.y5f_1;
|
|
864
864
|
var tmp1_max = cardsCount - 1 | 0;
|
|
865
865
|
this.r8_1 = 1;
|
|
866
|
-
suspendResult = tmp0_$this.
|
|
866
|
+
suspendResult = tmp0_$this.l58(this.d5f_1, this.e5f_1, 0, tmp1_max, cardsCount, this.f5f_1, VOID, this);
|
|
867
867
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
868
868
|
return suspendResult;
|
|
869
869
|
}
|
|
@@ -882,21 +882,21 @@
|
|
|
882
882
|
throwOnFailure(result);
|
|
883
883
|
var tmp_1 = _Result___get_value__impl__bjfvqg(result);
|
|
884
884
|
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
885
|
-
var this_0 = normalizeCards(this.
|
|
885
|
+
var this_0 = normalizeCards(this.a5f_1, tmp2_cards, this.b5f_1);
|
|
886
886
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
887
887
|
var _iterator__ex2g4s = this_0.l();
|
|
888
888
|
while (_iterator__ex2g4s.m()) {
|
|
889
889
|
var item = _iterator__ex2g4s.n();
|
|
890
|
-
destination.j(Companion_instance.
|
|
890
|
+
destination.j(Companion_instance.x5d(item));
|
|
891
891
|
}
|
|
892
|
-
tmp_0.
|
|
892
|
+
tmp_0.g5f_1 = destination;
|
|
893
893
|
this.r8_1 = 4;
|
|
894
894
|
continue $sm;
|
|
895
895
|
} else {
|
|
896
896
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
897
|
-
this.
|
|
897
|
+
this.a5f_1.z5f_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
898
898
|
this.r8_1 = 3;
|
|
899
|
-
suspendResult = this.
|
|
899
|
+
suspendResult = this.a5f_1.l5e(this.b5f_1, this.c5f_1, this.d5f_1, this.e5f_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
900
900
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
901
901
|
return suspendResult;
|
|
902
902
|
}
|
|
@@ -904,11 +904,11 @@
|
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
case 3:
|
|
907
|
-
this.
|
|
907
|
+
this.g5f_1 = suspendResult;
|
|
908
908
|
this.r8_1 = 4;
|
|
909
909
|
continue $sm;
|
|
910
910
|
case 4:
|
|
911
|
-
return this.
|
|
911
|
+
return this.g5f_1;
|
|
912
912
|
case 5:
|
|
913
913
|
throw this.u8_1;
|
|
914
914
|
}
|
|
@@ -924,11 +924,11 @@
|
|
|
924
924
|
while (true);
|
|
925
925
|
};
|
|
926
926
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
929
|
-
this.
|
|
927
|
+
this.x5f_1 = random;
|
|
928
|
+
this.y5f_1 = randomPoolProvider;
|
|
929
|
+
this.z5f_1 = logger;
|
|
930
930
|
}
|
|
931
|
-
protoOf(CardsDealerProviderImpl).
|
|
931
|
+
protoOf(CardsDealerProviderImpl).k5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
932
932
|
// Inline function 'kotlin.collections.flatMap' call
|
|
933
933
|
var tmp0 = get_entries();
|
|
934
934
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
while (_iterator__ex2g4s.m()) {
|
|
938
938
|
var element = _iterator__ex2g4s.n();
|
|
939
939
|
// Inline function 'kotlin.collections.map' call
|
|
940
|
-
var this_0 = this.
|
|
940
|
+
var this_0 = this.a5g(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
941
941
|
// Inline function 'kotlin.collections.mapTo' call
|
|
942
942
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
943
943
|
var inductionVariable = this_0.z_1;
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
var item = inductionVariable;
|
|
948
948
|
inductionVariable = inductionVariable + 1 | 0;
|
|
949
949
|
var it = item;
|
|
950
|
-
var tmp$ret$0 = Companion_instance.
|
|
950
|
+
var tmp$ret$0 = Companion_instance.v5d(element, it);
|
|
951
951
|
destination_0.j(tmp$ret$0);
|
|
952
952
|
}
|
|
953
953
|
while (!(item === last));
|
|
@@ -956,27 +956,27 @@
|
|
|
956
956
|
}
|
|
957
957
|
return destination;
|
|
958
958
|
};
|
|
959
|
-
protoOf(CardsDealerProviderImpl).
|
|
959
|
+
protoOf(CardsDealerProviderImpl).a5g = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
960
960
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
961
961
|
};
|
|
962
|
-
protoOf(CardsDealerProviderImpl).
|
|
962
|
+
protoOf(CardsDealerProviderImpl).r5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
963
963
|
// Inline function 'kotlin.collections.sumOf' call
|
|
964
964
|
var sum = 0;
|
|
965
965
|
var _iterator__ex2g4s = get_entries().l();
|
|
966
966
|
while (_iterator__ex2g4s.m()) {
|
|
967
967
|
var element = _iterator__ex2g4s.n();
|
|
968
968
|
var tmp = sum;
|
|
969
|
-
sum = tmp + count(this.
|
|
969
|
+
sum = tmp + count(this.a5g(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
970
970
|
}
|
|
971
971
|
return sum;
|
|
972
972
|
};
|
|
973
|
-
protoOf(CardsDealerProviderImpl).
|
|
973
|
+
protoOf(CardsDealerProviderImpl).l5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
974
974
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
975
975
|
tmp.t8_1 = Unit_instance;
|
|
976
976
|
tmp.u8_1 = null;
|
|
977
977
|
return tmp.z8();
|
|
978
978
|
};
|
|
979
|
-
protoOf(CardsDealerProviderImpl).
|
|
979
|
+
protoOf(CardsDealerProviderImpl).m5e = function (count, cards) {
|
|
980
980
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
981
981
|
// Inline function 'kotlin.apply' call
|
|
982
982
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
1008
1008
|
while (_iterator__ex2g4s_0.m()) {
|
|
1009
1009
|
var element = _iterator__ex2g4s_0.n();
|
|
1010
|
-
if (element.
|
|
1010
|
+
if (element.u5d() === card.u5d()) {
|
|
1011
1011
|
tmp$ret$2 = true;
|
|
1012
1012
|
break $l$block_1;
|
|
1013
1013
|
}
|
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
}
|
|
1023
1023
|
return this_0;
|
|
1024
1024
|
};
|
|
1025
|
-
protoOf(CardsDealerProviderImpl).
|
|
1025
|
+
protoOf(CardsDealerProviderImpl).n5e = function (cards, times) {
|
|
1026
1026
|
// Inline function 'kotlin.let' call
|
|
1027
1027
|
var shuffled = toMutableList(cards);
|
|
1028
1028
|
var inductionVariable = 0;
|
|
@@ -1030,57 +1030,57 @@
|
|
|
1030
1030
|
do {
|
|
1031
1031
|
var i = inductionVariable;
|
|
1032
1032
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1033
|
-
shuffled = this.
|
|
1033
|
+
shuffled = this.x5f_1.q5d(shuffled);
|
|
1034
1034
|
}
|
|
1035
1035
|
while (inductionVariable < times);
|
|
1036
1036
|
return shuffled;
|
|
1037
1037
|
};
|
|
1038
|
-
protoOf(CardsDealerProviderImpl).
|
|
1039
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1038
|
+
protoOf(CardsDealerProviderImpl).p5e = function (cards, times) {
|
|
1039
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.x5f_1), times, this.x5f_1));
|
|
1040
1040
|
};
|
|
1041
1041
|
function Companion_3() {
|
|
1042
1042
|
}
|
|
1043
|
-
protoOf(Companion_3).
|
|
1043
|
+
protoOf(Companion_3).b5g = function () {
|
|
1044
1044
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1045
1045
|
// Inline function 'kotlin.apply' call
|
|
1046
1046
|
var this_0 = ArrayList_init_$Create$();
|
|
1047
|
-
this_0.q(listOf([Companion_instance.
|
|
1048
|
-
this_0.q(listOf([Companion_instance.
|
|
1049
|
-
this_0.q(listOf([Companion_instance.
|
|
1050
|
-
this_0.q(listOf([Companion_instance.
|
|
1051
|
-
this_0.q(listOf([Companion_instance.
|
|
1047
|
+
this_0.q(listOf([Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1048
|
+
this_0.q(listOf([Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1049
|
+
this_0.q(listOf([Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1050
|
+
this_0.q(listOf([Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1051
|
+
this_0.q(listOf([Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1052
1052
|
return this_0;
|
|
1053
1053
|
};
|
|
1054
|
-
protoOf(Companion_3).
|
|
1055
|
-
return listOf([Companion_instance.
|
|
1054
|
+
protoOf(Companion_3).c5g = function () {
|
|
1055
|
+
return listOf([Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1056
1056
|
};
|
|
1057
1057
|
var Companion_instance_3;
|
|
1058
1058
|
function Companion_getInstance_3() {
|
|
1059
1059
|
return Companion_instance_3;
|
|
1060
1060
|
}
|
|
1061
1061
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1062
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1063
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1062
|
+
cards = cards === VOID ? Companion_instance_3.b5g() : cards;
|
|
1063
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.c5g() : cardsForLot;
|
|
1064
|
+
this.d5g_1 = cards;
|
|
1065
|
+
this.e5g_1 = cardsForLot;
|
|
1066
1066
|
}
|
|
1067
|
-
protoOf(FakeCardsDealerProvider).
|
|
1068
|
-
return this.
|
|
1067
|
+
protoOf(FakeCardsDealerProvider).k5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1068
|
+
return this.d5g_1;
|
|
1069
1069
|
};
|
|
1070
|
-
protoOf(FakeCardsDealerProvider).
|
|
1071
|
-
return this.
|
|
1070
|
+
protoOf(FakeCardsDealerProvider).l5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1071
|
+
return this.d5g_1;
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf(FakeCardsDealerProvider).
|
|
1074
|
-
return this.
|
|
1073
|
+
protoOf(FakeCardsDealerProvider).m5e = function (count, cards) {
|
|
1074
|
+
return this.e5g_1;
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(FakeCardsDealerProvider).
|
|
1076
|
+
protoOf(FakeCardsDealerProvider).n5e = function (cards, times) {
|
|
1077
1077
|
return cards;
|
|
1078
1078
|
};
|
|
1079
|
-
protoOf(FakeCardsDealerProvider).
|
|
1079
|
+
protoOf(FakeCardsDealerProvider).p5e = function (cards, times) {
|
|
1080
1080
|
return cards;
|
|
1081
1081
|
};
|
|
1082
|
-
protoOf(FakeCardsDealerProvider).
|
|
1083
|
-
return this.
|
|
1082
|
+
protoOf(FakeCardsDealerProvider).r5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1083
|
+
return this.d5g_1.o();
|
|
1084
1084
|
};
|
|
1085
1085
|
function CombinationsCheckerProvider() {
|
|
1086
1086
|
}
|
|
@@ -1107,16 +1107,16 @@
|
|
|
1107
1107
|
return takeLast(cards, longestCombinationSupport);
|
|
1108
1108
|
}
|
|
1109
1109
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1110
|
-
this.
|
|
1110
|
+
this.k5g_1 = function_0;
|
|
1111
1111
|
}
|
|
1112
1112
|
protoOf(sam$kotlin_Comparator$0).ec = function (a, b) {
|
|
1113
|
-
return this.
|
|
1113
|
+
return this.k5g_1(a, b);
|
|
1114
1114
|
};
|
|
1115
1115
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1116
1116
|
return this.ec(a, b);
|
|
1117
1117
|
};
|
|
1118
1118
|
protoOf(sam$kotlin_Comparator$0).a3 = function () {
|
|
1119
|
-
return this.
|
|
1119
|
+
return this.k5g_1;
|
|
1120
1120
|
};
|
|
1121
1121
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1122
1122
|
var tmp;
|
|
@@ -1138,13 +1138,13 @@
|
|
|
1138
1138
|
};
|
|
1139
1139
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1140
1140
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1141
|
-
var tmp = first_0(a).
|
|
1142
|
-
var tmp$ret$1 = first_0(b).
|
|
1141
|
+
var tmp = first_0(a).t5d_1;
|
|
1142
|
+
var tmp$ret$1 = first_0(b).t5d_1;
|
|
1143
1143
|
return compareValues(tmp, tmp$ret$1);
|
|
1144
1144
|
}
|
|
1145
1145
|
function CombinationsCheckerProviderImpl() {
|
|
1146
1146
|
}
|
|
1147
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1147
|
+
protoOf(CombinationsCheckerProviderImpl).f5g = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1148
1148
|
// Inline function 'kotlin.apply' call
|
|
1149
1149
|
var this_0 = toMutableList(cards);
|
|
1150
1150
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
var _iterator__ex2g4s = this_0.l();
|
|
1155
1155
|
while (_iterator__ex2g4s.m()) {
|
|
1156
1156
|
var element = _iterator__ex2g4s.n();
|
|
1157
|
-
if (element.
|
|
1157
|
+
if (element.i5e()) {
|
|
1158
1158
|
destination.j(element);
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
@@ -1171,14 +1171,14 @@
|
|
|
1171
1171
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1172
1172
|
var previousCard = lastOrNull(combinationCards);
|
|
1173
1173
|
var currentCard = sortedByIndexCards.p(i);
|
|
1174
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1174
|
+
var isNextInRow = !(previousCard == null) && currentCard.t5d_1 === (previousCard.t5d_1 + 1 | 0) && currentCard.h5e().equals(previousCard.h5e());
|
|
1175
1175
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.t1(currentCard.q2());
|
|
1176
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1176
|
+
var passedSuitCheck = suit == null || currentCard.h5e().equals(suit);
|
|
1177
1177
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1178
1178
|
combinationCards.j(currentCard);
|
|
1179
1179
|
} else {
|
|
1180
1180
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1181
|
-
combinations.q(this.
|
|
1181
|
+
combinations.q(this.j5g(toMutableList(combinationCards), supportedCombinations));
|
|
1182
1182
|
}
|
|
1183
1183
|
combinationCards.h2();
|
|
1184
1184
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1188,11 +1188,11 @@
|
|
|
1188
1188
|
}
|
|
1189
1189
|
while (inductionVariable <= last);
|
|
1190
1190
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1191
|
-
combinations.q(this.
|
|
1191
|
+
combinations.q(this.j5g(toMutableList(combinationCards), supportedCombinations));
|
|
1192
1192
|
}
|
|
1193
1193
|
return combinations;
|
|
1194
1194
|
};
|
|
1195
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1195
|
+
protoOf(CombinationsCheckerProviderImpl).h5g = function (cards, cardsCount, includeCardNames) {
|
|
1196
1196
|
// Inline function 'kotlin.apply' call
|
|
1197
1197
|
var this_0 = toMutableList(cards);
|
|
1198
1198
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1202,7 +1202,7 @@
|
|
|
1202
1202
|
var _iterator__ex2g4s = this_0.l();
|
|
1203
1203
|
while (_iterator__ex2g4s.m()) {
|
|
1204
1204
|
var element = _iterator__ex2g4s.n();
|
|
1205
|
-
if (element.
|
|
1205
|
+
if (element.i5e()) {
|
|
1206
1206
|
destination.j(element);
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
@@ -1223,7 +1223,7 @@
|
|
|
1223
1223
|
var _iterator__ex2g4s_1 = sortedByNumberCards.l();
|
|
1224
1224
|
while (_iterator__ex2g4s_1.m()) {
|
|
1225
1225
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
1226
|
-
var key = element_1.
|
|
1226
|
+
var key = element_1.u5d();
|
|
1227
1227
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1228
1228
|
var value = destination_1.b2(key);
|
|
1229
1229
|
var tmp;
|
|
@@ -1260,7 +1260,7 @@
|
|
|
1260
1260
|
}
|
|
1261
1261
|
return destination_3;
|
|
1262
1262
|
};
|
|
1263
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1263
|
+
protoOf(CombinationsCheckerProviderImpl).j5g = function (cards, supportedCombinations) {
|
|
1264
1264
|
// Inline function 'kotlin.collections.minOf' call
|
|
1265
1265
|
var iterator = supportedCombinations.l();
|
|
1266
1266
|
if (!iterator.m())
|
|
@@ -1290,28 +1290,28 @@
|
|
|
1290
1290
|
function DealerReducer() {
|
|
1291
1291
|
}
|
|
1292
1292
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1293
|
+
this.o5g_1 = logger;
|
|
1294
|
+
this.p5g_1 = enableLogs;
|
|
1295
1295
|
}
|
|
1296
|
-
protoOf(DealerReducerImpl).
|
|
1296
|
+
protoOf(DealerReducerImpl).l5g = function (cards, cardsToRemove) {
|
|
1297
1297
|
var list = cards;
|
|
1298
1298
|
var _iterator__ex2g4s = cardsToRemove.l();
|
|
1299
1299
|
while (_iterator__ex2g4s.m()) {
|
|
1300
1300
|
var gameCard = _iterator__ex2g4s.n();
|
|
1301
|
-
list = this.
|
|
1301
|
+
list = this.m5g(list, gameCard);
|
|
1302
1302
|
}
|
|
1303
1303
|
return list;
|
|
1304
1304
|
};
|
|
1305
|
-
protoOf(DealerReducerImpl).
|
|
1305
|
+
protoOf(DealerReducerImpl).m5g = function (cards, cardToRemove) {
|
|
1306
1306
|
var tmp;
|
|
1307
|
-
if (!cardToRemove.
|
|
1308
|
-
if (this.
|
|
1309
|
-
this.
|
|
1307
|
+
if (!cardToRemove.z5d() && cards.t1(cardToRemove)) {
|
|
1308
|
+
if (this.p5g_1) {
|
|
1309
|
+
this.o5g_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1310
1310
|
}
|
|
1311
1311
|
tmp = minus(cards, cardToRemove);
|
|
1312
1312
|
} else {
|
|
1313
|
-
if (this.
|
|
1314
|
-
this.
|
|
1313
|
+
if (this.p5g_1) {
|
|
1314
|
+
this.o5g_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1315
1315
|
}
|
|
1316
1316
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1317
1317
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
var _iterator__ex2g4s = cards.l();
|
|
1320
1320
|
while (_iterator__ex2g4s.m()) {
|
|
1321
1321
|
var element = _iterator__ex2g4s.n();
|
|
1322
|
-
if (!element.
|
|
1322
|
+
if (!element.z5d()) {
|
|
1323
1323
|
destination.j(element);
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
@@ -1330,34 +1330,34 @@
|
|
|
1330
1330
|
var _iterator__ex2g4s_0 = cards.l();
|
|
1331
1331
|
while (_iterator__ex2g4s_0.m()) {
|
|
1332
1332
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1333
|
-
if (element_0.
|
|
1333
|
+
if (element_0.z5d()) {
|
|
1334
1334
|
destination_0.j(element_0);
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
var hiddenCards = destination_0;
|
|
1338
1338
|
if (hiddenCards.r()) {
|
|
1339
|
-
this.
|
|
1339
|
+
this.o5g_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1340
1340
|
}
|
|
1341
1341
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1342
1342
|
}
|
|
1343
1343
|
return tmp;
|
|
1344
1344
|
};
|
|
1345
|
-
protoOf(DealerReducerImpl).
|
|
1346
|
-
if (this.
|
|
1347
|
-
this.
|
|
1345
|
+
protoOf(DealerReducerImpl).n5g = function (cards, cardToAdd) {
|
|
1346
|
+
if (this.p5g_1) {
|
|
1347
|
+
this.o5g_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
|
|
1348
1348
|
}
|
|
1349
1349
|
if (cards.t1(cardToAdd)) {
|
|
1350
|
-
this.
|
|
1350
|
+
this.o5g_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1351
1351
|
}
|
|
1352
1352
|
return plus_0(cards, cardToAdd);
|
|
1353
1353
|
};
|
|
1354
1354
|
//region block: post-declaration
|
|
1355
|
-
protoOf(CardsDealerProviderImpl).
|
|
1356
|
-
protoOf(CardsDealerProviderImpl).
|
|
1357
|
-
protoOf(FakeCardsDealerProvider).
|
|
1358
|
-
protoOf(FakeCardsDealerProvider).
|
|
1359
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1360
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1355
|
+
protoOf(CardsDealerProviderImpl).o5e = standardShuffledCards$default;
|
|
1356
|
+
protoOf(CardsDealerProviderImpl).q5e = realLifeShuffledCards$default;
|
|
1357
|
+
protoOf(FakeCardsDealerProvider).o5e = standardShuffledCards$default;
|
|
1358
|
+
protoOf(FakeCardsDealerProvider).q5e = realLifeShuffledCards$default;
|
|
1359
|
+
protoOf(CombinationsCheckerProviderImpl).g5g = findCardsInRowCombinations$default;
|
|
1360
|
+
protoOf(CombinationsCheckerProviderImpl).i5g = findSameCardsNumberCombinations$default;
|
|
1361
1361
|
//endregion
|
|
1362
1362
|
//region block: init
|
|
1363
1363
|
CoreConfig_instance = new CoreConfig();
|