raspberry_games_server_game_logic 1.8.271 → 1.8.273
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 +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1377 -1377
- package/Logic_Debertz-core.js +1981 -1542
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +22886 -16726
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +80 -20
- package/Logic_Debertz-game_server.js +2076 -950
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1493 -963
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +316 -316
- package/kotlinx-serialization-kotlinx-serialization-core.js +1802 -1802
- package/kotlinx-serialization-kotlinx-serialization-json.js +1328 -1328
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1546 -1546
- package/ktor-ktor-client-logging.js +284 -284
- package/ktor-ktor-events.js +5 -5
- package/ktor-ktor-http.js +599 -599
- package/ktor-ktor-io.js +1250 -1247
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +132 -132
- package/ktor-ktor-serialization.js +62 -62
- package/ktor-ktor-utils.js +496 -496
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +159 -159
- package/raspberry-cardgame-lib-random.js +789 -789
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +11 -11
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
|
|
94
94
|
function standardShuffledCards$default(cards, times, $super) {
|
|
95
95
|
times = times === VOID ? 3 : times;
|
|
96
|
-
return $super === VOID ? this.
|
|
96
|
+
return $super === VOID ? this.d67(cards, times) : $super.d67.call(this, cards, times);
|
|
97
97
|
}
|
|
98
98
|
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
|
|
99
99
|
initMetadataForCompanion(Companion_2);
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
107
107
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
108
108
|
suit = suit === VOID ? null : suit;
|
|
109
|
-
return $super === VOID ? this.
|
|
109
|
+
return $super === VOID ? this.z68(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.z68.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
110
110
|
}
|
|
111
111
|
function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
|
|
112
112
|
cardsCount = cardsCount === VOID ? 4 : cardsCount;
|
|
113
113
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
114
|
-
return $super === VOID ? this.
|
|
114
|
+
return $super === VOID ? this.b69(cards, cardsCount, includeCardNames) : $super.b69.call(this, cards, cardsCount, includeCardNames);
|
|
115
115
|
}
|
|
116
116
|
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
117
117
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
function CoreConfig() {
|
|
123
123
|
this.version = '0.0.37';
|
|
124
124
|
}
|
|
125
|
-
protoOf(CoreConfig).
|
|
125
|
+
protoOf(CoreConfig).p2z = function () {
|
|
126
126
|
return this.version;
|
|
127
127
|
};
|
|
128
128
|
var CoreConfig_instance;
|
|
@@ -131,12 +131,12 @@
|
|
|
131
131
|
}
|
|
132
132
|
function CardIndexComparator() {
|
|
133
133
|
}
|
|
134
|
-
protoOf(CardIndexComparator).
|
|
135
|
-
return a.
|
|
134
|
+
protoOf(CardIndexComparator).j66 = function (a, b) {
|
|
135
|
+
return a.k66_1 - b.k66_1 | 0;
|
|
136
136
|
};
|
|
137
137
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
138
138
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
139
|
-
return this.
|
|
139
|
+
return this.j66(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
140
140
|
};
|
|
141
141
|
var CardIndexComparator_instance;
|
|
142
142
|
function CardIndexComparator_getInstance() {
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
}
|
|
145
145
|
function CardNumberComparator() {
|
|
146
146
|
}
|
|
147
|
-
protoOf(CardNumberComparator).
|
|
148
|
-
return b.
|
|
147
|
+
protoOf(CardNumberComparator).j66 = function (a, b) {
|
|
148
|
+
return b.l66() - a.l66() | 0;
|
|
149
149
|
};
|
|
150
150
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
151
151
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
152
|
-
return this.
|
|
152
|
+
return this.j66(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
153
153
|
};
|
|
154
154
|
var CardNumberComparator_instance;
|
|
155
155
|
function CardNumberComparator_getInstance() {
|
|
@@ -291,16 +291,16 @@
|
|
|
291
291
|
}
|
|
292
292
|
function Companion() {
|
|
293
293
|
}
|
|
294
|
-
protoOf(Companion).
|
|
294
|
+
protoOf(Companion).m66 = function (suit, number) {
|
|
295
295
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
296
296
|
};
|
|
297
|
-
protoOf(Companion).
|
|
297
|
+
protoOf(Companion).n66 = function (suit, cardNumber) {
|
|
298
298
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
299
299
|
};
|
|
300
|
-
protoOf(Companion).
|
|
300
|
+
protoOf(Companion).o66 = function (index) {
|
|
301
301
|
return new GameCard(index);
|
|
302
302
|
};
|
|
303
|
-
protoOf(Companion).
|
|
303
|
+
protoOf(Companion).p66 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
304
304
|
var tmp;
|
|
305
305
|
if (previousStubCardWithMaxIndex == null) {
|
|
306
306
|
tmp = null;
|
|
@@ -309,7 +309,7 @@
|
|
|
309
309
|
// Inline function 'kotlin.contracts.contract' call
|
|
310
310
|
var tmp_0;
|
|
311
311
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
|
|
312
|
-
if (previousStubCardWithMaxIndex.
|
|
312
|
+
if (previousStubCardWithMaxIndex.q66()) {
|
|
313
313
|
tmp_0 = previousStubCardWithMaxIndex;
|
|
314
314
|
} else {
|
|
315
315
|
tmp_0 = null;
|
|
@@ -317,8 +317,8 @@
|
|
|
317
317
|
tmp = tmp_0;
|
|
318
318
|
}
|
|
319
319
|
var tmp3_safe_receiver = tmp;
|
|
320
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
321
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.
|
|
320
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.k66_1;
|
|
321
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.v66(tmp4_safe_receiver, playerIndex, reverse);
|
|
322
322
|
var tmp_1;
|
|
323
323
|
if (tmp5_safe_receiver == null) {
|
|
324
324
|
tmp_1 = null;
|
|
@@ -339,10 +339,10 @@
|
|
|
339
339
|
var index = tmp_2;
|
|
340
340
|
return new GameCard(index);
|
|
341
341
|
};
|
|
342
|
-
protoOf(Companion).
|
|
342
|
+
protoOf(Companion).w66 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
|
|
343
343
|
previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
|
|
344
344
|
reverse = reverse === VOID ? false : reverse;
|
|
345
|
-
return $super === VOID ? this.
|
|
345
|
+
return $super === VOID ? this.p66(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.p66.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
346
346
|
};
|
|
347
347
|
var Companion_instance;
|
|
348
348
|
function Companion_getInstance() {
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
return tmp;
|
|
447
447
|
}
|
|
448
448
|
function _get_isShirt__vd98rp($this) {
|
|
449
|
-
return $this.
|
|
449
|
+
return $this.k66_1 === 52;
|
|
450
450
|
}
|
|
451
451
|
function CardName(name, ordinal) {
|
|
452
452
|
Enum.call(this, name, ordinal);
|
|
@@ -455,12 +455,12 @@
|
|
|
455
455
|
return getShortName(this);
|
|
456
456
|
};
|
|
457
457
|
function Companion_0() {
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
461
|
-
this.
|
|
458
|
+
this.r66_1 = -1;
|
|
459
|
+
this.s66_1 = 13;
|
|
460
|
+
this.t66_1 = 52;
|
|
461
|
+
this.u66_1 = 53;
|
|
462
462
|
}
|
|
463
|
-
protoOf(Companion_0).
|
|
463
|
+
protoOf(Companion_0).v66 = function (_this__u8e3s4, playerIndex, reverse) {
|
|
464
464
|
var tmp;
|
|
465
465
|
if (reverse) {
|
|
466
466
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -530,59 +530,59 @@
|
|
|
530
530
|
return CardName_STUB_instance;
|
|
531
531
|
}
|
|
532
532
|
function GameCard(index) {
|
|
533
|
-
this.
|
|
533
|
+
this.k66_1 = index;
|
|
534
534
|
}
|
|
535
|
-
protoOf(GameCard).
|
|
535
|
+
protoOf(GameCard).x66 = function () {
|
|
536
536
|
var tmp;
|
|
537
|
-
var containsArg = this.
|
|
537
|
+
var containsArg = this.k66_1;
|
|
538
538
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
539
539
|
tmp = Suit_DIAMOND_getInstance();
|
|
540
540
|
} else {
|
|
541
|
-
if (this.
|
|
541
|
+
if (this.k66_1 <= 26) {
|
|
542
542
|
tmp = Suit_SPADE_getInstance();
|
|
543
543
|
} else {
|
|
544
|
-
if (this.
|
|
544
|
+
if (this.k66_1 <= 39) {
|
|
545
545
|
tmp = Suit_HEART_getInstance();
|
|
546
546
|
} else {
|
|
547
|
-
if (this.
|
|
547
|
+
if (this.k66_1 <= 52) {
|
|
548
548
|
tmp = Suit_CLUB_getInstance();
|
|
549
549
|
} else {
|
|
550
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
550
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.k66_1);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
return tmp;
|
|
556
556
|
};
|
|
557
|
-
protoOf(GameCard).
|
|
557
|
+
protoOf(GameCard).l66 = function () {
|
|
558
558
|
var tmp;
|
|
559
|
-
if (this.
|
|
559
|
+
if (this.q66()) {
|
|
560
560
|
tmp = -1;
|
|
561
561
|
} else {
|
|
562
|
-
tmp = this.
|
|
562
|
+
tmp = this.k66_1 - imul(13, getIndex(this.x66())) | 0;
|
|
563
563
|
}
|
|
564
564
|
return tmp;
|
|
565
565
|
};
|
|
566
566
|
protoOf(GameCard).o2 = function () {
|
|
567
|
-
return this.
|
|
567
|
+
return this.q66() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.l66());
|
|
568
568
|
};
|
|
569
|
-
protoOf(GameCard).
|
|
570
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
569
|
+
protoOf(GameCard).y66 = function () {
|
|
570
|
+
return !_get_isShirt__vd98rp(this) && !this.q66();
|
|
571
571
|
};
|
|
572
|
-
protoOf(GameCard).
|
|
573
|
-
return this.
|
|
572
|
+
protoOf(GameCard).q66 = function () {
|
|
573
|
+
return this.k66_1 >= 53;
|
|
574
574
|
};
|
|
575
575
|
protoOf(GameCard).toString = function () {
|
|
576
576
|
if (_get_isShirt__vd98rp(this)) {
|
|
577
577
|
return 'GameCard(SHIRT)';
|
|
578
578
|
}
|
|
579
|
-
if (this.
|
|
580
|
-
return 'GameCard(STUB, ' + this.
|
|
579
|
+
if (this.q66()) {
|
|
580
|
+
return 'GameCard(STUB, ' + this.k66_1 + ')';
|
|
581
581
|
}
|
|
582
|
-
return 'GameCard(' + this.
|
|
582
|
+
return 'GameCard(' + this.x66().toString() + this.o2().toString() + ', ' + this.k66_1 + ')';
|
|
583
583
|
};
|
|
584
584
|
protoOf(GameCard).hashCode = function () {
|
|
585
|
-
return this.
|
|
585
|
+
return this.k66_1;
|
|
586
586
|
};
|
|
587
587
|
protoOf(GameCard).equals = function (other) {
|
|
588
588
|
if (this === other)
|
|
@@ -590,12 +590,12 @@
|
|
|
590
590
|
if (!(other instanceof GameCard))
|
|
591
591
|
return false;
|
|
592
592
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
593
|
-
if (!(this.
|
|
593
|
+
if (!(this.k66_1 === tmp0_other_with_cast.k66_1))
|
|
594
594
|
return false;
|
|
595
595
|
return true;
|
|
596
596
|
};
|
|
597
597
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
598
|
-
return $this.
|
|
598
|
+
return $this.z66_1.u();
|
|
599
599
|
}
|
|
600
600
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
601
601
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -637,13 +637,13 @@
|
|
|
637
637
|
Companion_instance_1 = this;
|
|
638
638
|
var tmp = this;
|
|
639
639
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
640
|
-
tmp.
|
|
640
|
+
tmp.z66_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
641
641
|
}
|
|
642
|
-
protoOf(Companion_1).
|
|
642
|
+
protoOf(Companion_1).y4w = function () {
|
|
643
643
|
return _get_$cachedSerializer__te6jhj(this);
|
|
644
644
|
};
|
|
645
|
-
protoOf(Companion_1).
|
|
646
|
-
return this.
|
|
645
|
+
protoOf(Companion_1).v4g = function (typeParamsSerializers) {
|
|
646
|
+
return this.y4w();
|
|
647
647
|
};
|
|
648
648
|
var Companion_instance_1;
|
|
649
649
|
function Companion_getInstance_1() {
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
}
|
|
765
765
|
function Companion_2() {
|
|
766
766
|
}
|
|
767
|
-
protoOf(Companion_2).
|
|
767
|
+
protoOf(Companion_2).a68 = function (randomPoolProvider, logger) {
|
|
768
768
|
var tmp17_random = new SecureRandom(logger);
|
|
769
769
|
return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
|
|
770
770
|
};
|
|
@@ -774,12 +774,12 @@
|
|
|
774
774
|
}
|
|
775
775
|
function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
776
776
|
CoroutineImpl.call(this, resultContinuation);
|
|
777
|
-
this.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
781
|
-
this.
|
|
782
|
-
this.
|
|
777
|
+
this.j68_1 = _this__u8e3s4;
|
|
778
|
+
this.k68_1 = leftCardIndexForEachSuit;
|
|
779
|
+
this.l68_1 = rightCardIndexForEachSuit;
|
|
780
|
+
this.m68_1 = approximateRoundCountForGame;
|
|
781
|
+
this.n68_1 = userData;
|
|
782
|
+
this.o68_1 = provider;
|
|
783
783
|
}
|
|
784
784
|
protoOf($createNewShuffledCardDeckCOROUTINE$0).m9 = function () {
|
|
785
785
|
var suspendResult = this.g9_1;
|
|
@@ -789,26 +789,26 @@
|
|
|
789
789
|
switch (tmp) {
|
|
790
790
|
case 0:
|
|
791
791
|
this.f9_1 = 4;
|
|
792
|
-
this.
|
|
793
|
-
this.
|
|
794
|
-
if (this.
|
|
792
|
+
this.p68_1 = this.o68_1;
|
|
793
|
+
this.q68_1 = this.p68_1.n2_1;
|
|
794
|
+
if (this.q68_1 === 0) {
|
|
795
795
|
var tmp_0 = this;
|
|
796
|
-
var it = this.
|
|
797
|
-
tmp_0.
|
|
796
|
+
var it = this.j68_1.a67(this.k68_1, this.l68_1);
|
|
797
|
+
tmp_0.r68_1 = this.j68_1.e67(it);
|
|
798
798
|
this.e9_1 = 3;
|
|
799
799
|
continue $sm;
|
|
800
800
|
} else {
|
|
801
|
-
if (this.
|
|
801
|
+
if (this.q68_1 === 1) {
|
|
802
802
|
this.e9_1 = 2;
|
|
803
|
-
suspendResult = getRandomOrgCards(this.
|
|
803
|
+
suspendResult = getRandomOrgCards(this.j68_1, this.k68_1, this.l68_1, this.m68_1, this.n68_1, false, this);
|
|
804
804
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
805
805
|
return suspendResult;
|
|
806
806
|
}
|
|
807
807
|
continue $sm;
|
|
808
808
|
} else {
|
|
809
|
-
if (this.
|
|
809
|
+
if (this.q68_1 === 2) {
|
|
810
810
|
this.e9_1 = 1;
|
|
811
|
-
suspendResult = getRandomOrgCards(this.
|
|
811
|
+
suspendResult = getRandomOrgCards(this.j68_1, this.k68_1, this.l68_1, this.m68_1, this.n68_1, true, this);
|
|
812
812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
813
813
|
return suspendResult;
|
|
814
814
|
}
|
|
@@ -822,15 +822,15 @@
|
|
|
822
822
|
|
|
823
823
|
break;
|
|
824
824
|
case 1:
|
|
825
|
-
this.
|
|
825
|
+
this.r68_1 = suspendResult;
|
|
826
826
|
this.e9_1 = 3;
|
|
827
827
|
continue $sm;
|
|
828
828
|
case 2:
|
|
829
|
-
this.
|
|
829
|
+
this.r68_1 = suspendResult;
|
|
830
830
|
this.e9_1 = 3;
|
|
831
831
|
continue $sm;
|
|
832
832
|
case 3:
|
|
833
|
-
return this.
|
|
833
|
+
return this.r68_1;
|
|
834
834
|
case 4:
|
|
835
835
|
throw this.h9_1;
|
|
836
836
|
}
|
|
@@ -847,12 +847,12 @@
|
|
|
847
847
|
};
|
|
848
848
|
function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
849
849
|
CoroutineImpl.call(this, resultContinuation);
|
|
850
|
-
this.
|
|
851
|
-
this.
|
|
852
|
-
this.
|
|
853
|
-
this.
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
850
|
+
this.n67_1 = _this__u8e3s4;
|
|
851
|
+
this.o67_1 = leftCardIndexForEachSuit;
|
|
852
|
+
this.p67_1 = rightCardIndexForEachSuit;
|
|
853
|
+
this.q67_1 = approximateRoundsCount;
|
|
854
|
+
this.r67_1 = userData;
|
|
855
|
+
this.s67_1 = signed;
|
|
856
856
|
}
|
|
857
857
|
protoOf($getRandomOrgCardsCOROUTINE$1).m9 = function () {
|
|
858
858
|
var suspendResult = this.g9_1;
|
|
@@ -868,14 +868,14 @@
|
|
|
868
868
|
while (tmp0_iterator.k()) {
|
|
869
869
|
var element = tmp0_iterator.l();
|
|
870
870
|
var tmp_1 = sum;
|
|
871
|
-
sum = tmp_1 + count(getCardsRange(this.
|
|
871
|
+
sum = tmp_1 + count(getCardsRange(this.n67_1, this.o67_1, this.p67_1)) | 0;
|
|
872
872
|
}
|
|
873
873
|
|
|
874
|
-
tmp_0.
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
874
|
+
tmp_0.t67_1 = sum;
|
|
875
|
+
this.u67_1 = this.n67_1.t68_1;
|
|
876
|
+
this.v67_1 = this.t67_1 - 1 | 0;
|
|
877
877
|
this.e9_1 = 1;
|
|
878
|
-
suspendResult = this.
|
|
878
|
+
suspendResult = this.u67_1.f5r(this.q67_1, this.r67_1, 0, this.v67_1, this.t67_1, this.s67_1, VOID, this);
|
|
879
879
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
880
880
|
return suspendResult;
|
|
881
881
|
}
|
|
@@ -883,34 +883,34 @@
|
|
|
883
883
|
this.e9_1 = 2;
|
|
884
884
|
continue $sm;
|
|
885
885
|
case 1:
|
|
886
|
-
this.
|
|
887
|
-
suspendResult = new Result(this.
|
|
886
|
+
this.w67_1 = suspendResult.dk_1;
|
|
887
|
+
suspendResult = new Result(this.w67_1);
|
|
888
888
|
this.e9_1 = 2;
|
|
889
889
|
continue $sm;
|
|
890
890
|
case 2:
|
|
891
|
-
this.
|
|
892
|
-
if (_Result___get_isSuccess__impl__sndoy8(this.
|
|
891
|
+
this.x67_1 = suspendResult.dk_1;
|
|
892
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.x67_1)) {
|
|
893
893
|
var tmp_2 = this;
|
|
894
|
-
var this_0 = this.
|
|
894
|
+
var this_0 = this.x67_1;
|
|
895
895
|
throwOnFailure(this_0);
|
|
896
896
|
var tmp_3 = _Result___get_value__impl__bjfvqg(this_0);
|
|
897
897
|
var tmp14_cards = ((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE()).cards;
|
|
898
|
-
var this_1 = normalizeCards(this.
|
|
898
|
+
var this_1 = normalizeCards(this.n67_1, tmp14_cards, this.o67_1);
|
|
899
899
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
900
900
|
var tmp0_iterator_0 = this_1.j();
|
|
901
901
|
while (tmp0_iterator_0.k()) {
|
|
902
902
|
var item = tmp0_iterator_0.l();
|
|
903
|
-
destination.e(Companion_instance.
|
|
903
|
+
destination.e(Companion_instance.o66(item));
|
|
904
904
|
}
|
|
905
|
-
tmp_2.
|
|
905
|
+
tmp_2.y67_1 = destination;
|
|
906
906
|
this.e9_1 = 4;
|
|
907
907
|
continue $sm;
|
|
908
908
|
} else {
|
|
909
|
-
this.
|
|
910
|
-
var tmp15_safe_receiver = this.
|
|
911
|
-
this.
|
|
909
|
+
this.z67_1 = Result__exceptionOrNull_impl_p6xea9(this.x67_1);
|
|
910
|
+
var tmp15_safe_receiver = this.z67_1;
|
|
911
|
+
this.n67_1.u68_1.w('CardsDealerProvider', 'createNewShuffledCardDeck error message = ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.z67_1);
|
|
912
912
|
this.e9_1 = 3;
|
|
913
|
-
suspendResult = this.
|
|
913
|
+
suspendResult = this.n67_1.b67(this.o67_1, this.p67_1, this.q67_1, this.r67_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
914
914
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
915
915
|
return suspendResult;
|
|
916
916
|
}
|
|
@@ -918,11 +918,11 @@
|
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
case 3:
|
|
921
|
-
this.
|
|
921
|
+
this.y67_1 = suspendResult;
|
|
922
922
|
this.e9_1 = 4;
|
|
923
923
|
continue $sm;
|
|
924
924
|
case 4:
|
|
925
|
-
return this.
|
|
925
|
+
return this.y67_1;
|
|
926
926
|
case 5:
|
|
927
927
|
throw this.h9_1;
|
|
928
928
|
}
|
|
@@ -938,11 +938,11 @@
|
|
|
938
938
|
while (true);
|
|
939
939
|
};
|
|
940
940
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
943
|
-
this.
|
|
941
|
+
this.s68_1 = random;
|
|
942
|
+
this.t68_1 = randomPoolProvider;
|
|
943
|
+
this.u68_1 = logger;
|
|
944
944
|
}
|
|
945
|
-
protoOf(CardsDealerProviderImpl).
|
|
945
|
+
protoOf(CardsDealerProviderImpl).a67 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
946
946
|
// Inline function 'kotlin.collections.flatMap' call
|
|
947
947
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
948
948
|
var this_0 = get_entries();
|
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
inductionVariable = inductionVariable + 1 | 0;
|
|
964
964
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
|
|
965
965
|
var it = item;
|
|
966
|
-
var tmp$ret$0 = Companion_instance.
|
|
966
|
+
var tmp$ret$0 = Companion_instance.m66(element, it);
|
|
967
967
|
destination_0.e(tmp$ret$0);
|
|
968
968
|
}
|
|
969
969
|
while (!(item === last));
|
|
@@ -972,13 +972,13 @@
|
|
|
972
972
|
}
|
|
973
973
|
return destination;
|
|
974
974
|
};
|
|
975
|
-
protoOf(CardsDealerProviderImpl).
|
|
975
|
+
protoOf(CardsDealerProviderImpl).b67 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
976
976
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
977
977
|
tmp.g9_1 = Unit_instance;
|
|
978
978
|
tmp.h9_1 = null;
|
|
979
979
|
return tmp.m9();
|
|
980
980
|
};
|
|
981
|
-
protoOf(CardsDealerProviderImpl).
|
|
981
|
+
protoOf(CardsDealerProviderImpl).c67 = function (count, cards) {
|
|
982
982
|
// Inline function 'kotlin.apply' call
|
|
983
983
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
984
984
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
while (tmp0_iterator.k()) {
|
|
1013
1013
|
var element = tmp0_iterator.l();
|
|
1014
1014
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
|
|
1015
|
-
if (element.
|
|
1015
|
+
if (element.l66() === card.l66()) {
|
|
1016
1016
|
tmp$ret$2 = true;
|
|
1017
1017
|
break $l$block_1;
|
|
1018
1018
|
}
|
|
@@ -1027,7 +1027,7 @@
|
|
|
1027
1027
|
}
|
|
1028
1028
|
return this_0;
|
|
1029
1029
|
};
|
|
1030
|
-
protoOf(CardsDealerProviderImpl).
|
|
1030
|
+
protoOf(CardsDealerProviderImpl).d67 = function (cards, times) {
|
|
1031
1031
|
// Inline function 'kotlin.let' call
|
|
1032
1032
|
// Inline function 'kotlin.contracts.contract' call
|
|
1033
1033
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
|
|
@@ -1037,49 +1037,49 @@
|
|
|
1037
1037
|
do {
|
|
1038
1038
|
var i = inductionVariable;
|
|
1039
1039
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1040
|
-
shuffled = this.
|
|
1040
|
+
shuffled = this.s68_1.h5w(shuffled);
|
|
1041
1041
|
}
|
|
1042
1042
|
while (inductionVariable < times);
|
|
1043
1043
|
return shuffled;
|
|
1044
1044
|
};
|
|
1045
1045
|
function Companion_3() {
|
|
1046
1046
|
}
|
|
1047
|
-
protoOf(Companion_3).
|
|
1047
|
+
protoOf(Companion_3).v68 = function () {
|
|
1048
1048
|
// Inline function 'kotlin.apply' call
|
|
1049
1049
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1050
1050
|
var this_0 = ArrayList_init_$Create$();
|
|
1051
1051
|
// Inline function 'kotlin.contracts.contract' call
|
|
1052
1052
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
|
|
1053
|
-
this_0.n(listOf([Companion_instance.
|
|
1054
|
-
this_0.n(listOf([Companion_instance.
|
|
1055
|
-
this_0.n(listOf([Companion_instance.
|
|
1056
|
-
this_0.n(listOf([Companion_instance.
|
|
1057
|
-
this_0.n(listOf([Companion_instance.
|
|
1053
|
+
this_0.n(listOf([Companion_instance.n66(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.n66(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.n66(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.n66(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1054
|
+
this_0.n(listOf([Companion_instance.n66(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.n66(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.n66(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.n66(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1055
|
+
this_0.n(listOf([Companion_instance.n66(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.n66(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1056
|
+
this_0.n(listOf([Companion_instance.n66(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.n66(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
|
|
1057
|
+
this_0.n(listOf([Companion_instance.n66(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.n66(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.n66(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.n66(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.n66(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1058
1058
|
return this_0;
|
|
1059
1059
|
};
|
|
1060
|
-
protoOf(Companion_3).
|
|
1061
|
-
return listOf([Companion_instance.
|
|
1060
|
+
protoOf(Companion_3).w68 = function () {
|
|
1061
|
+
return listOf([Companion_instance.n66(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.n66(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.n66(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1062
1062
|
};
|
|
1063
1063
|
var Companion_instance_3;
|
|
1064
1064
|
function Companion_getInstance_3() {
|
|
1065
1065
|
return Companion_instance_3;
|
|
1066
1066
|
}
|
|
1067
1067
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1068
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1069
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1068
|
+
cards = cards === VOID ? Companion_instance_3.v68() : cards;
|
|
1069
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.w68() : cardsForLot;
|
|
1070
|
+
this.x68_1 = cards;
|
|
1071
|
+
this.y68_1 = cardsForLot;
|
|
1072
1072
|
}
|
|
1073
|
-
protoOf(FakeCardsDealerProvider).
|
|
1074
|
-
return this.
|
|
1073
|
+
protoOf(FakeCardsDealerProvider).a67 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1074
|
+
return this.x68_1;
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(FakeCardsDealerProvider).
|
|
1077
|
-
return this.
|
|
1076
|
+
protoOf(FakeCardsDealerProvider).b67 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1077
|
+
return this.x68_1;
|
|
1078
1078
|
};
|
|
1079
|
-
protoOf(FakeCardsDealerProvider).
|
|
1080
|
-
return this.
|
|
1079
|
+
protoOf(FakeCardsDealerProvider).c67 = function (count, cards) {
|
|
1080
|
+
return this.y68_1;
|
|
1081
1081
|
};
|
|
1082
|
-
protoOf(FakeCardsDealerProvider).
|
|
1082
|
+
protoOf(FakeCardsDealerProvider).d67 = function (cards, times) {
|
|
1083
1083
|
return cards;
|
|
1084
1084
|
};
|
|
1085
1085
|
function CombinationsCheckerProvider() {
|
|
@@ -1108,16 +1108,16 @@
|
|
|
1108
1108
|
return takeLast(cards, longestCombinationSupport);
|
|
1109
1109
|
}
|
|
1110
1110
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1111
|
-
this.
|
|
1111
|
+
this.e69_1 = function_0;
|
|
1112
1112
|
}
|
|
1113
1113
|
protoOf(sam$kotlin_Comparator$0).mc = function (a, b) {
|
|
1114
|
-
return this.
|
|
1114
|
+
return this.e69_1(a, b);
|
|
1115
1115
|
};
|
|
1116
1116
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1117
1117
|
return this.mc(a, b);
|
|
1118
1118
|
};
|
|
1119
1119
|
protoOf(sam$kotlin_Comparator$0).o3 = function () {
|
|
1120
|
-
return this.
|
|
1120
|
+
return this.e69_1;
|
|
1121
1121
|
};
|
|
1122
1122
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1123
1123
|
var tmp;
|
|
@@ -1140,14 +1140,14 @@
|
|
|
1140
1140
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1141
1141
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1142
1142
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1143
|
-
var tmp = first_0(a).
|
|
1143
|
+
var tmp = first_0(a).k66_1;
|
|
1144
1144
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1145
|
-
var tmp$ret$1 = first_0(b).
|
|
1145
|
+
var tmp$ret$1 = first_0(b).k66_1;
|
|
1146
1146
|
return compareValues(tmp, tmp$ret$1);
|
|
1147
1147
|
}
|
|
1148
1148
|
function CombinationsCheckerProviderImpl() {
|
|
1149
1149
|
}
|
|
1150
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1150
|
+
protoOf(CombinationsCheckerProviderImpl).z68 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1151
1151
|
// Inline function 'kotlin.collections.filter' call
|
|
1152
1152
|
// Inline function 'kotlin.apply' call
|
|
1153
1153
|
var this_0 = toMutableList(cards);
|
|
@@ -1160,7 +1160,7 @@
|
|
|
1160
1160
|
while (tmp0_iterator.k()) {
|
|
1161
1161
|
var element = tmp0_iterator.l();
|
|
1162
1162
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
|
|
1163
|
-
if (element.
|
|
1163
|
+
if (element.y66()) {
|
|
1164
1164
|
destination.e(element);
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
@@ -1177,14 +1177,14 @@
|
|
|
1177
1177
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1178
1178
|
var previousCard = lastOrNull(combinationCards);
|
|
1179
1179
|
var currentCard = sortedByIndexCards.o(i);
|
|
1180
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1180
|
+
var isNextInRow = !(previousCard == null) && currentCard.k66_1 === (previousCard.k66_1 + 1 | 0) && currentCard.x66().equals(previousCard.x66());
|
|
1181
1181
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.o2());
|
|
1182
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1182
|
+
var passedSuitCheck = suit == null || currentCard.x66().equals(suit);
|
|
1183
1183
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1184
1184
|
combinationCards.e(currentCard);
|
|
1185
1185
|
} else {
|
|
1186
1186
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1187
|
-
combinations.n(this.
|
|
1187
|
+
combinations.n(this.d69(toMutableList(combinationCards), supportedCombinations));
|
|
1188
1188
|
}
|
|
1189
1189
|
combinationCards.a2();
|
|
1190
1190
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1194,11 +1194,11 @@
|
|
|
1194
1194
|
}
|
|
1195
1195
|
while (inductionVariable <= last);
|
|
1196
1196
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1197
|
-
combinations.n(this.
|
|
1197
|
+
combinations.n(this.d69(toMutableList(combinationCards), supportedCombinations));
|
|
1198
1198
|
}
|
|
1199
1199
|
return combinations;
|
|
1200
1200
|
};
|
|
1201
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1201
|
+
protoOf(CombinationsCheckerProviderImpl).b69 = function (cards, cardsCount, includeCardNames) {
|
|
1202
1202
|
// Inline function 'kotlin.collections.filter' call
|
|
1203
1203
|
// Inline function 'kotlin.collections.filter' call
|
|
1204
1204
|
// Inline function 'kotlin.apply' call
|
|
@@ -1212,7 +1212,7 @@
|
|
|
1212
1212
|
while (tmp0_iterator.k()) {
|
|
1213
1213
|
var element = tmp0_iterator.l();
|
|
1214
1214
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1215
|
-
if (element.
|
|
1215
|
+
if (element.y66()) {
|
|
1216
1216
|
destination.e(element);
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
@@ -1235,7 +1235,7 @@
|
|
|
1235
1235
|
while (tmp0_iterator_1.k()) {
|
|
1236
1236
|
var element_1 = tmp0_iterator_1.l();
|
|
1237
1237
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1238
|
-
var key = element_1.
|
|
1238
|
+
var key = element_1.l66();
|
|
1239
1239
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1240
1240
|
var value = destination_1.g2(key);
|
|
1241
1241
|
var tmp;
|
|
@@ -1274,7 +1274,7 @@
|
|
|
1274
1274
|
}
|
|
1275
1275
|
return destination_3;
|
|
1276
1276
|
};
|
|
1277
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1277
|
+
protoOf(CombinationsCheckerProviderImpl).d69 = function (cards, supportedCombinations) {
|
|
1278
1278
|
// Inline function 'kotlin.collections.minOf' call
|
|
1279
1279
|
var iterator = supportedCombinations.j();
|
|
1280
1280
|
if (!iterator.k())
|
|
@@ -1304,28 +1304,28 @@
|
|
|
1304
1304
|
return sortedWith(combinations, tmp$ret$4);
|
|
1305
1305
|
};
|
|
1306
1306
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1307
|
+
this.f69_1 = logger;
|
|
1308
|
+
this.g69_1 = enableLogs;
|
|
1309
1309
|
}
|
|
1310
|
-
protoOf(DealerReducerImpl).
|
|
1310
|
+
protoOf(DealerReducerImpl).h69 = function (cards, cardsToRemove) {
|
|
1311
1311
|
var list = cards;
|
|
1312
1312
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1313
1313
|
while (_iterator__ex2g4s.k()) {
|
|
1314
1314
|
var gameCard = _iterator__ex2g4s.l();
|
|
1315
|
-
list = this.
|
|
1315
|
+
list = this.i69(list, gameCard);
|
|
1316
1316
|
}
|
|
1317
1317
|
return list;
|
|
1318
1318
|
};
|
|
1319
|
-
protoOf(DealerReducerImpl).
|
|
1319
|
+
protoOf(DealerReducerImpl).i69 = function (cards, cardToRemove) {
|
|
1320
1320
|
var tmp;
|
|
1321
|
-
if (!cardToRemove.
|
|
1322
|
-
if (this.
|
|
1323
|
-
this.
|
|
1321
|
+
if (!cardToRemove.q66() && cards.s1(cardToRemove)) {
|
|
1322
|
+
if (this.g69_1) {
|
|
1323
|
+
this.f69_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1324
1324
|
}
|
|
1325
1325
|
tmp = minus(cards, cardToRemove);
|
|
1326
1326
|
} else {
|
|
1327
|
-
if (this.
|
|
1328
|
-
this.
|
|
1327
|
+
if (this.g69_1) {
|
|
1328
|
+
this.f69_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1329
1329
|
}
|
|
1330
1330
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1331
1331
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1334,7 +1334,7 @@
|
|
|
1334
1334
|
while (tmp0_iterator.k()) {
|
|
1335
1335
|
var element = tmp0_iterator.l();
|
|
1336
1336
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1337
|
-
if (!element.
|
|
1337
|
+
if (!element.q66()) {
|
|
1338
1338
|
destination.e(element);
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
@@ -1346,34 +1346,34 @@
|
|
|
1346
1346
|
while (tmp0_iterator_0.k()) {
|
|
1347
1347
|
var element_0 = tmp0_iterator_0.l();
|
|
1348
1348
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1349
|
-
if (element_0.
|
|
1349
|
+
if (element_0.q66()) {
|
|
1350
1350
|
destination_0.e(element_0);
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
1353
|
var stubCards = destination_0;
|
|
1354
1354
|
if (stubCards.p()) {
|
|
1355
|
-
this.
|
|
1355
|
+
this.f69_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1356
1356
|
}
|
|
1357
1357
|
tmp = plus(notStubCards, dropLast(stubCards, 1));
|
|
1358
1358
|
}
|
|
1359
1359
|
return tmp;
|
|
1360
1360
|
};
|
|
1361
|
-
protoOf(DealerReducerImpl).
|
|
1362
|
-
if (this.
|
|
1363
|
-
this.
|
|
1361
|
+
protoOf(DealerReducerImpl).j69 = function (cards, cardToAdd) {
|
|
1362
|
+
if (this.g69_1) {
|
|
1363
|
+
this.f69_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1364
1364
|
}
|
|
1365
1365
|
if (cards.s1(cardToAdd)) {
|
|
1366
|
-
this.
|
|
1366
|
+
this.f69_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1367
1367
|
}
|
|
1368
1368
|
return plus_0(cards, cardToAdd);
|
|
1369
1369
|
};
|
|
1370
1370
|
function DealerReducer() {
|
|
1371
1371
|
}
|
|
1372
1372
|
//region block: post-declaration
|
|
1373
|
-
protoOf(CardsDealerProviderImpl).
|
|
1374
|
-
protoOf(FakeCardsDealerProvider).
|
|
1375
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1376
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1373
|
+
protoOf(CardsDealerProviderImpl).e67 = standardShuffledCards$default;
|
|
1374
|
+
protoOf(FakeCardsDealerProvider).e67 = standardShuffledCards$default;
|
|
1375
|
+
protoOf(CombinationsCheckerProviderImpl).a69 = findCardsInRowCombinations$default;
|
|
1376
|
+
protoOf(CombinationsCheckerProviderImpl).c69 = findSameCardsNumberCombinations$default;
|
|
1377
1377
|
//endregion
|
|
1378
1378
|
//region block: init
|
|
1379
1379
|
CoreConfig_instance = new CoreConfig();
|