game_client_logic_deb 1.8.305 → 1.8.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +1004 -1004
- package/Logic_Debertz-engine.js +10664 -10673
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +1 -0
- package/Logic_Debertz-game_client.js +2742 -2750
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +310 -310
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +166 -166
- package/raspberry-cardgame-lib-random.js +194 -184
- package/raspberry-cardgame-lib-random.js.map +1 -1
|
@@ -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.a65(cards, times) : $super.a65.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.c65(cards, times) : $super.c65.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.a67(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.a67.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.c67(cards, cardsCount, includeCardNames) : $super.c67.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]);
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
|
|
127
127
|
//endregion
|
|
128
128
|
function CoreConfig() {
|
|
129
|
-
this.version = '0.0.
|
|
129
|
+
this.version = '0.0.45';
|
|
130
130
|
}
|
|
131
131
|
protoOf(CoreConfig).a2y = function () {
|
|
132
132
|
return this.version;
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
}
|
|
138
138
|
function CardIndexComparator() {
|
|
139
139
|
}
|
|
140
|
-
protoOf(CardIndexComparator).
|
|
141
|
-
return a.
|
|
140
|
+
protoOf(CardIndexComparator).f64 = function (a, b) {
|
|
141
|
+
return a.g64_1 - b.g64_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.f64(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
146
146
|
};
|
|
147
147
|
var CardIndexComparator_instance;
|
|
148
148
|
function CardIndexComparator_getInstance() {
|
|
@@ -164,12 +164,12 @@
|
|
|
164
164
|
}
|
|
165
165
|
function CardNumberComparator() {
|
|
166
166
|
}
|
|
167
|
-
protoOf(CardNumberComparator).
|
|
168
|
-
return b.
|
|
167
|
+
protoOf(CardNumberComparator).f64 = function (a, b) {
|
|
168
|
+
return b.h64() - a.h64() | 0;
|
|
169
169
|
};
|
|
170
170
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
171
171
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
172
|
-
return this.
|
|
172
|
+
return this.f64(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
173
173
|
};
|
|
174
174
|
var CardNumberComparator_instance;
|
|
175
175
|
function CardNumberComparator_getInstance() {
|
|
@@ -297,16 +297,16 @@
|
|
|
297
297
|
}
|
|
298
298
|
function Companion() {
|
|
299
299
|
}
|
|
300
|
-
protoOf(Companion).
|
|
300
|
+
protoOf(Companion).i64 = function (suit, number) {
|
|
301
301
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
302
302
|
};
|
|
303
|
-
protoOf(Companion).
|
|
303
|
+
protoOf(Companion).j64 = function (suit, cardNumber) {
|
|
304
304
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
305
305
|
};
|
|
306
|
-
protoOf(Companion).
|
|
306
|
+
protoOf(Companion).k64 = function (index) {
|
|
307
307
|
return new GameCard(index);
|
|
308
308
|
};
|
|
309
|
-
protoOf(Companion).
|
|
309
|
+
protoOf(Companion).l64 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
310
310
|
var tmp;
|
|
311
311
|
if (previousStubCardWithMaxIndex == null) {
|
|
312
312
|
tmp = null;
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
// Inline function 'kotlin.contracts.contract' call
|
|
316
316
|
var tmp_0;
|
|
317
317
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
|
|
318
|
-
if (previousStubCardWithMaxIndex.
|
|
318
|
+
if (previousStubCardWithMaxIndex.m64()) {
|
|
319
319
|
tmp_0 = previousStubCardWithMaxIndex;
|
|
320
320
|
} else {
|
|
321
321
|
tmp_0 = null;
|
|
@@ -323,8 +323,8 @@
|
|
|
323
323
|
tmp = tmp_0;
|
|
324
324
|
}
|
|
325
325
|
var tmp3_safe_receiver = tmp;
|
|
326
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
327
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.
|
|
326
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.g64_1;
|
|
327
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.s64(tmp4_safe_receiver, playerIndex, reverse);
|
|
328
328
|
var tmp_1;
|
|
329
329
|
if (tmp5_safe_receiver == null) {
|
|
330
330
|
tmp_1 = null;
|
|
@@ -345,10 +345,10 @@
|
|
|
345
345
|
var index = tmp_2;
|
|
346
346
|
return new GameCard(index);
|
|
347
347
|
};
|
|
348
|
-
protoOf(Companion).
|
|
348
|
+
protoOf(Companion).t64 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
|
|
349
349
|
previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
|
|
350
350
|
reverse = reverse === VOID ? false : reverse;
|
|
351
|
-
return $super === VOID ? this.
|
|
351
|
+
return $super === VOID ? this.l64(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.l64.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
352
352
|
};
|
|
353
353
|
var Companion_instance;
|
|
354
354
|
function Companion_getInstance() {
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
return tmp;
|
|
453
453
|
}
|
|
454
454
|
function _get_isShirt__vd98rp($this) {
|
|
455
|
-
return $this.
|
|
455
|
+
return $this.g64_1 >= 150 && $this.g64_1 <= 202;
|
|
456
456
|
}
|
|
457
457
|
function CardName(name, ordinal) {
|
|
458
458
|
Enum.call(this, name, ordinal);
|
|
@@ -461,13 +461,13 @@
|
|
|
461
461
|
return getShortName(this);
|
|
462
462
|
};
|
|
463
463
|
function Companion_0() {
|
|
464
|
-
this.
|
|
465
|
-
this.
|
|
466
|
-
this.
|
|
467
|
-
this.
|
|
468
|
-
this.
|
|
464
|
+
this.n64_1 = -1;
|
|
465
|
+
this.o64_1 = 13;
|
|
466
|
+
this.p64_1 = 52;
|
|
467
|
+
this.q64_1 = 150;
|
|
468
|
+
this.r64_1 = 53;
|
|
469
469
|
}
|
|
470
|
-
protoOf(Companion_0).
|
|
470
|
+
protoOf(Companion_0).s64 = function (_this__u8e3s4, playerIndex, reverse) {
|
|
471
471
|
var tmp;
|
|
472
472
|
if (reverse) {
|
|
473
473
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -537,59 +537,59 @@
|
|
|
537
537
|
return CardName_STUB_instance;
|
|
538
538
|
}
|
|
539
539
|
function GameCard(index) {
|
|
540
|
-
this.
|
|
540
|
+
this.g64_1 = index;
|
|
541
541
|
}
|
|
542
|
-
protoOf(GameCard).
|
|
542
|
+
protoOf(GameCard).u64 = function () {
|
|
543
543
|
var tmp;
|
|
544
|
-
var containsArg = this.
|
|
544
|
+
var containsArg = this.g64_1;
|
|
545
545
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
546
546
|
tmp = Suit_DIAMOND_getInstance();
|
|
547
547
|
} else {
|
|
548
|
-
if (this.
|
|
548
|
+
if (this.g64_1 <= 26) {
|
|
549
549
|
tmp = Suit_SPADE_getInstance();
|
|
550
550
|
} else {
|
|
551
|
-
if (this.
|
|
551
|
+
if (this.g64_1 <= 39) {
|
|
552
552
|
tmp = Suit_HEART_getInstance();
|
|
553
553
|
} else {
|
|
554
|
-
if (this.
|
|
554
|
+
if (this.g64_1 <= 52) {
|
|
555
555
|
tmp = Suit_CLUB_getInstance();
|
|
556
556
|
} else {
|
|
557
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
557
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.g64_1);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
return tmp;
|
|
563
563
|
};
|
|
564
|
-
protoOf(GameCard).
|
|
564
|
+
protoOf(GameCard).h64 = function () {
|
|
565
565
|
var tmp;
|
|
566
|
-
if (this.
|
|
566
|
+
if (this.m64()) {
|
|
567
567
|
tmp = -1;
|
|
568
568
|
} else {
|
|
569
|
-
tmp = this.
|
|
569
|
+
tmp = this.g64_1 - imul(13, getIndex(this.u64())) | 0;
|
|
570
570
|
}
|
|
571
571
|
return tmp;
|
|
572
572
|
};
|
|
573
573
|
protoOf(GameCard).p2 = function () {
|
|
574
|
-
return this.
|
|
574
|
+
return this.m64() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.h64());
|
|
575
575
|
};
|
|
576
|
-
protoOf(GameCard).
|
|
577
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
576
|
+
protoOf(GameCard).v64 = function () {
|
|
577
|
+
return !_get_isShirt__vd98rp(this) && !this.m64();
|
|
578
578
|
};
|
|
579
|
-
protoOf(GameCard).
|
|
580
|
-
return this.
|
|
579
|
+
protoOf(GameCard).m64 = function () {
|
|
580
|
+
return this.g64_1 >= 53 && this.g64_1 <= 105;
|
|
581
581
|
};
|
|
582
582
|
protoOf(GameCard).toString = function () {
|
|
583
583
|
if (_get_isShirt__vd98rp(this)) {
|
|
584
584
|
return 'GameCard(SHIRT)';
|
|
585
585
|
}
|
|
586
|
-
if (this.
|
|
587
|
-
return 'GameCard(STUB, ' + this.
|
|
586
|
+
if (this.m64()) {
|
|
587
|
+
return 'GameCard(STUB, ' + this.g64_1 + ')';
|
|
588
588
|
}
|
|
589
|
-
return 'GameCard(' + this.
|
|
589
|
+
return 'GameCard(' + this.u64().toString() + this.p2().toString() + ', ' + this.g64_1 + ')';
|
|
590
590
|
};
|
|
591
591
|
protoOf(GameCard).hashCode = function () {
|
|
592
|
-
return this.
|
|
592
|
+
return this.g64_1;
|
|
593
593
|
};
|
|
594
594
|
protoOf(GameCard).equals = function (other) {
|
|
595
595
|
if (this === other)
|
|
@@ -597,12 +597,12 @@
|
|
|
597
597
|
if (!(other instanceof GameCard))
|
|
598
598
|
return false;
|
|
599
599
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
600
|
-
if (!(this.
|
|
600
|
+
if (!(this.g64_1 === tmp0_other_with_cast.g64_1))
|
|
601
601
|
return false;
|
|
602
602
|
return true;
|
|
603
603
|
};
|
|
604
604
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
605
|
-
return $this.
|
|
605
|
+
return $this.w64_1.u();
|
|
606
606
|
}
|
|
607
607
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
608
608
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
Companion_instance_1 = this;
|
|
645
645
|
var tmp = this;
|
|
646
646
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
647
|
-
tmp.
|
|
647
|
+
tmp.w64_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
648
648
|
}
|
|
649
649
|
protoOf(Companion_1).j4v = function () {
|
|
650
650
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
}
|
|
769
769
|
function Companion_2() {
|
|
770
770
|
}
|
|
771
|
-
protoOf(Companion_2).
|
|
771
|
+
protoOf(Companion_2).z65 = function (randomPoolProvider, logger) {
|
|
772
772
|
var tmp17_random = new SecureRandom(logger);
|
|
773
773
|
return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
|
|
774
774
|
};
|
|
@@ -778,12 +778,12 @@
|
|
|
778
778
|
}
|
|
779
779
|
function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
780
780
|
CoroutineImpl.call(this, resultContinuation);
|
|
781
|
-
this.
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
781
|
+
this.i66_1 = _this__u8e3s4;
|
|
782
|
+
this.j66_1 = leftCardIndexForEachSuit;
|
|
783
|
+
this.k66_1 = rightCardIndexForEachSuit;
|
|
784
|
+
this.l66_1 = approximateRoundCountForGame;
|
|
785
|
+
this.m66_1 = userData;
|
|
786
|
+
this.n66_1 = provider;
|
|
787
787
|
}
|
|
788
788
|
protoOf($createNewShuffledCardDeckCOROUTINE$0).n9 = function () {
|
|
789
789
|
var suspendResult = this.h9_1;
|
|
@@ -793,26 +793,26 @@
|
|
|
793
793
|
switch (tmp) {
|
|
794
794
|
case 0:
|
|
795
795
|
this.g9_1 = 4;
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
798
|
-
if (this.
|
|
796
|
+
this.o66_1 = this.n66_1;
|
|
797
|
+
this.p66_1 = this.o66_1.o2_1;
|
|
798
|
+
if (this.p66_1 === 0) {
|
|
799
799
|
var tmp_0 = this;
|
|
800
|
-
var it = this.
|
|
801
|
-
tmp_0.
|
|
800
|
+
var it = this.i66_1.x64(this.j66_1, this.k66_1);
|
|
801
|
+
tmp_0.q66_1 = this.i66_1.b65(it);
|
|
802
802
|
this.f9_1 = 3;
|
|
803
803
|
continue $sm;
|
|
804
804
|
} else {
|
|
805
|
-
if (this.
|
|
805
|
+
if (this.p66_1 === 1) {
|
|
806
806
|
this.f9_1 = 2;
|
|
807
|
-
suspendResult = getRandomOrgCards(this.
|
|
807
|
+
suspendResult = getRandomOrgCards(this.i66_1, this.j66_1, this.k66_1, this.l66_1, this.m66_1, false, this);
|
|
808
808
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
809
809
|
return suspendResult;
|
|
810
810
|
}
|
|
811
811
|
continue $sm;
|
|
812
812
|
} else {
|
|
813
|
-
if (this.
|
|
813
|
+
if (this.p66_1 === 2) {
|
|
814
814
|
this.f9_1 = 1;
|
|
815
|
-
suspendResult = getRandomOrgCards(this.
|
|
815
|
+
suspendResult = getRandomOrgCards(this.i66_1, this.j66_1, this.k66_1, this.l66_1, this.m66_1, true, this);
|
|
816
816
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
817
817
|
return suspendResult;
|
|
818
818
|
}
|
|
@@ -826,15 +826,15 @@
|
|
|
826
826
|
|
|
827
827
|
break;
|
|
828
828
|
case 1:
|
|
829
|
-
this.
|
|
829
|
+
this.q66_1 = suspendResult;
|
|
830
830
|
this.f9_1 = 3;
|
|
831
831
|
continue $sm;
|
|
832
832
|
case 2:
|
|
833
|
-
this.
|
|
833
|
+
this.q66_1 = suspendResult;
|
|
834
834
|
this.f9_1 = 3;
|
|
835
835
|
continue $sm;
|
|
836
836
|
case 3:
|
|
837
|
-
return this.
|
|
837
|
+
return this.q66_1;
|
|
838
838
|
case 4:
|
|
839
839
|
throw this.i9_1;
|
|
840
840
|
}
|
|
@@ -851,12 +851,12 @@
|
|
|
851
851
|
};
|
|
852
852
|
function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
853
853
|
CoroutineImpl.call(this, resultContinuation);
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
854
|
+
this.m65_1 = _this__u8e3s4;
|
|
855
|
+
this.n65_1 = leftCardIndexForEachSuit;
|
|
856
|
+
this.o65_1 = rightCardIndexForEachSuit;
|
|
857
|
+
this.p65_1 = approximateRoundsCount;
|
|
858
|
+
this.q65_1 = userData;
|
|
859
|
+
this.r65_1 = signed;
|
|
860
860
|
}
|
|
861
861
|
protoOf($getRandomOrgCardsCOROUTINE$1).n9 = function () {
|
|
862
862
|
var suspendResult = this.h9_1;
|
|
@@ -866,11 +866,11 @@
|
|
|
866
866
|
switch (tmp) {
|
|
867
867
|
case 0:
|
|
868
868
|
this.g9_1 = 5;
|
|
869
|
-
this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
869
|
+
this.s65_1 = this.m65_1.u66(this.n65_1, this.o65_1);
|
|
870
|
+
this.t65_1 = this.m65_1.s66_1;
|
|
871
|
+
this.u65_1 = this.s65_1 - 1 | 0;
|
|
872
872
|
this.f9_1 = 1;
|
|
873
|
-
suspendResult = this.
|
|
873
|
+
suspendResult = this.t65_1.p5p(this.p65_1, this.q65_1, 0, this.u65_1, this.s65_1, this.r65_1, VOID, this);
|
|
874
874
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
875
875
|
return suspendResult;
|
|
876
876
|
}
|
|
@@ -878,34 +878,34 @@
|
|
|
878
878
|
this.f9_1 = 2;
|
|
879
879
|
continue $sm;
|
|
880
880
|
case 1:
|
|
881
|
-
this.
|
|
882
|
-
suspendResult = new Result(this.
|
|
881
|
+
this.v65_1 = suspendResult.ek_1;
|
|
882
|
+
suspendResult = new Result(this.v65_1);
|
|
883
883
|
this.f9_1 = 2;
|
|
884
884
|
continue $sm;
|
|
885
885
|
case 2:
|
|
886
|
-
this.
|
|
887
|
-
if (_Result___get_isSuccess__impl__sndoy8(this.
|
|
886
|
+
this.w65_1 = suspendResult.ek_1;
|
|
887
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.w65_1)) {
|
|
888
888
|
var tmp_0 = this;
|
|
889
|
-
var this_0 = this.
|
|
889
|
+
var this_0 = this.w65_1;
|
|
890
890
|
throwOnFailure(this_0);
|
|
891
891
|
var tmp_1 = _Result___get_value__impl__bjfvqg(this_0);
|
|
892
892
|
var tmp14_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
893
|
-
var this_1 = normalizeCards(this.
|
|
893
|
+
var this_1 = normalizeCards(this.m65_1, tmp14_cards, this.n65_1);
|
|
894
894
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
895
895
|
var tmp0_iterator = this_1.j();
|
|
896
896
|
while (tmp0_iterator.k()) {
|
|
897
897
|
var item = tmp0_iterator.l();
|
|
898
|
-
destination.e(Companion_instance.
|
|
898
|
+
destination.e(Companion_instance.k64(item));
|
|
899
899
|
}
|
|
900
|
-
tmp_0.
|
|
900
|
+
tmp_0.x65_1 = destination;
|
|
901
901
|
this.f9_1 = 4;
|
|
902
902
|
continue $sm;
|
|
903
903
|
} else {
|
|
904
|
-
this.
|
|
905
|
-
var tmp15_safe_receiver = this.
|
|
906
|
-
this.
|
|
904
|
+
this.y65_1 = Result__exceptionOrNull_impl_p6xea9(this.w65_1);
|
|
905
|
+
var tmp15_safe_receiver = this.y65_1;
|
|
906
|
+
this.m65_1.t66_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.y65_1);
|
|
907
907
|
this.f9_1 = 3;
|
|
908
|
-
suspendResult = this.
|
|
908
|
+
suspendResult = this.m65_1.y64(this.n65_1, this.o65_1, this.p65_1, this.q65_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
909
909
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
910
910
|
return suspendResult;
|
|
911
911
|
}
|
|
@@ -913,11 +913,11 @@
|
|
|
913
913
|
}
|
|
914
914
|
|
|
915
915
|
case 3:
|
|
916
|
-
this.
|
|
916
|
+
this.x65_1 = suspendResult;
|
|
917
917
|
this.f9_1 = 4;
|
|
918
918
|
continue $sm;
|
|
919
919
|
case 4:
|
|
920
|
-
return this.
|
|
920
|
+
return this.x65_1;
|
|
921
921
|
case 5:
|
|
922
922
|
throw this.i9_1;
|
|
923
923
|
}
|
|
@@ -933,11 +933,11 @@
|
|
|
933
933
|
while (true);
|
|
934
934
|
};
|
|
935
935
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
936
|
-
this.
|
|
937
|
-
this.
|
|
938
|
-
this.
|
|
936
|
+
this.r66_1 = random;
|
|
937
|
+
this.s66_1 = randomPoolProvider;
|
|
938
|
+
this.t66_1 = logger;
|
|
939
939
|
}
|
|
940
|
-
protoOf(CardsDealerProviderImpl).
|
|
940
|
+
protoOf(CardsDealerProviderImpl).x64 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
941
941
|
// Inline function 'kotlin.collections.flatMap' call
|
|
942
942
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
943
943
|
var this_0 = get_entries();
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
var element = tmp0_iterator.l();
|
|
948
948
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>' call
|
|
949
949
|
// Inline function 'kotlin.collections.map' call
|
|
950
|
-
var this_1 = this.
|
|
950
|
+
var this_1 = this.v66(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
951
951
|
// Inline function 'kotlin.collections.mapTo' call
|
|
952
952
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
953
953
|
var inductionVariable = this_1.a1_1;
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
inductionVariable = inductionVariable + 1 | 0;
|
|
959
959
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
|
|
960
960
|
var it = item;
|
|
961
|
-
var tmp$ret$0 = Companion_instance.
|
|
961
|
+
var tmp$ret$0 = Companion_instance.i64(element, it);
|
|
962
962
|
destination_0.e(tmp$ret$0);
|
|
963
963
|
}
|
|
964
964
|
while (!(item === last));
|
|
@@ -967,10 +967,10 @@
|
|
|
967
967
|
}
|
|
968
968
|
return destination;
|
|
969
969
|
};
|
|
970
|
-
protoOf(CardsDealerProviderImpl).
|
|
970
|
+
protoOf(CardsDealerProviderImpl).v66 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
971
971
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
972
972
|
};
|
|
973
|
-
protoOf(CardsDealerProviderImpl).
|
|
973
|
+
protoOf(CardsDealerProviderImpl).u66 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
974
974
|
// Inline function 'kotlin.collections.sumOf' call
|
|
975
975
|
var sum = 0;
|
|
976
976
|
var tmp0_iterator = get_entries().j();
|
|
@@ -978,17 +978,17 @@
|
|
|
978
978
|
var element = tmp0_iterator.l();
|
|
979
979
|
var tmp = sum;
|
|
980
980
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getCardsCount.<anonymous>' call
|
|
981
|
-
sum = tmp + count(this.
|
|
981
|
+
sum = tmp + count(this.v66(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
982
982
|
}
|
|
983
983
|
return sum;
|
|
984
984
|
};
|
|
985
|
-
protoOf(CardsDealerProviderImpl).
|
|
985
|
+
protoOf(CardsDealerProviderImpl).y64 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
986
986
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
987
987
|
tmp.h9_1 = Unit_instance;
|
|
988
988
|
tmp.i9_1 = null;
|
|
989
989
|
return tmp.n9();
|
|
990
990
|
};
|
|
991
|
-
protoOf(CardsDealerProviderImpl).
|
|
991
|
+
protoOf(CardsDealerProviderImpl).z64 = function (count, cards) {
|
|
992
992
|
// Inline function 'kotlin.apply' call
|
|
993
993
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
994
994
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
while (tmp0_iterator.k()) {
|
|
1023
1023
|
var element = tmp0_iterator.l();
|
|
1024
1024
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
|
|
1025
|
-
if (element.
|
|
1025
|
+
if (element.h64() === card.h64()) {
|
|
1026
1026
|
tmp$ret$2 = true;
|
|
1027
1027
|
break $l$block_1;
|
|
1028
1028
|
}
|
|
@@ -1037,7 +1037,7 @@
|
|
|
1037
1037
|
}
|
|
1038
1038
|
return this_0;
|
|
1039
1039
|
};
|
|
1040
|
-
protoOf(CardsDealerProviderImpl).
|
|
1040
|
+
protoOf(CardsDealerProviderImpl).a65 = function (cards, times) {
|
|
1041
1041
|
// Inline function 'kotlin.let' call
|
|
1042
1042
|
// Inline function 'kotlin.contracts.contract' call
|
|
1043
1043
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
|
|
@@ -1047,55 +1047,55 @@
|
|
|
1047
1047
|
do {
|
|
1048
1048
|
var i = inductionVariable;
|
|
1049
1049
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1050
|
-
shuffled = this.
|
|
1050
|
+
shuffled = this.r66_1.a5u(shuffled);
|
|
1051
1051
|
}
|
|
1052
1052
|
while (inductionVariable < times);
|
|
1053
1053
|
return shuffled;
|
|
1054
1054
|
};
|
|
1055
|
-
protoOf(CardsDealerProviderImpl).
|
|
1056
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1055
|
+
protoOf(CardsDealerProviderImpl).c65 = function (cards, times) {
|
|
1056
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.r66_1), times, this.r66_1));
|
|
1057
1057
|
};
|
|
1058
1058
|
function Companion_3() {
|
|
1059
1059
|
}
|
|
1060
|
-
protoOf(Companion_3).
|
|
1060
|
+
protoOf(Companion_3).w66 = function () {
|
|
1061
1061
|
// Inline function 'kotlin.apply' call
|
|
1062
1062
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1063
1063
|
var this_0 = ArrayList_init_$Create$();
|
|
1064
1064
|
// Inline function 'kotlin.contracts.contract' call
|
|
1065
1065
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
|
|
1066
|
-
this_0.n(listOf([Companion_instance.
|
|
1067
|
-
this_0.n(listOf([Companion_instance.
|
|
1068
|
-
this_0.n(listOf([Companion_instance.
|
|
1069
|
-
this_0.n(listOf([Companion_instance.
|
|
1070
|
-
this_0.n(listOf([Companion_instance.
|
|
1066
|
+
this_0.n(listOf([Companion_instance.j64(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j64(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.j64(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j64(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1067
|
+
this_0.n(listOf([Companion_instance.j64(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.j64(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.j64(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.j64(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1068
|
+
this_0.n(listOf([Companion_instance.j64(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j64(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1069
|
+
this_0.n(listOf([Companion_instance.j64(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.j64(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
|
|
1070
|
+
this_0.n(listOf([Companion_instance.j64(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.j64(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j64(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.j64(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.j64(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1071
1071
|
return this_0;
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf(Companion_3).
|
|
1074
|
-
return listOf([Companion_instance.
|
|
1073
|
+
protoOf(Companion_3).x66 = function () {
|
|
1074
|
+
return listOf([Companion_instance.j64(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j64(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j64(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1075
1075
|
};
|
|
1076
1076
|
var Companion_instance_3;
|
|
1077
1077
|
function Companion_getInstance_3() {
|
|
1078
1078
|
return Companion_instance_3;
|
|
1079
1079
|
}
|
|
1080
1080
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1081
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1082
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1083
|
-
this.
|
|
1084
|
-
this.
|
|
1081
|
+
cards = cards === VOID ? Companion_instance_3.w66() : cards;
|
|
1082
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.x66() : cardsForLot;
|
|
1083
|
+
this.y66_1 = cards;
|
|
1084
|
+
this.z66_1 = cardsForLot;
|
|
1085
1085
|
}
|
|
1086
|
-
protoOf(FakeCardsDealerProvider).
|
|
1087
|
-
return this.
|
|
1086
|
+
protoOf(FakeCardsDealerProvider).x64 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1087
|
+
return this.y66_1;
|
|
1088
1088
|
};
|
|
1089
|
-
protoOf(FakeCardsDealerProvider).
|
|
1090
|
-
return this.
|
|
1089
|
+
protoOf(FakeCardsDealerProvider).y64 = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1090
|
+
return this.y66_1;
|
|
1091
1091
|
};
|
|
1092
|
-
protoOf(FakeCardsDealerProvider).
|
|
1093
|
-
return this.
|
|
1092
|
+
protoOf(FakeCardsDealerProvider).z64 = function (count, cards) {
|
|
1093
|
+
return this.z66_1;
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(FakeCardsDealerProvider).
|
|
1095
|
+
protoOf(FakeCardsDealerProvider).a65 = function (cards, times) {
|
|
1096
1096
|
return cards;
|
|
1097
1097
|
};
|
|
1098
|
-
protoOf(FakeCardsDealerProvider).
|
|
1098
|
+
protoOf(FakeCardsDealerProvider).c65 = function (cards, times) {
|
|
1099
1099
|
return cards;
|
|
1100
1100
|
};
|
|
1101
1101
|
function CombinationsCheckerProvider() {
|
|
@@ -1124,16 +1124,16 @@
|
|
|
1124
1124
|
return takeLast(cards, longestCombinationSupport);
|
|
1125
1125
|
}
|
|
1126
1126
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1127
|
-
this.
|
|
1127
|
+
this.f67_1 = function_0;
|
|
1128
1128
|
}
|
|
1129
1129
|
protoOf(sam$kotlin_Comparator$0).nc = function (a, b) {
|
|
1130
|
-
return this.
|
|
1130
|
+
return this.f67_1(a, b);
|
|
1131
1131
|
};
|
|
1132
1132
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1133
1133
|
return this.nc(a, b);
|
|
1134
1134
|
};
|
|
1135
1135
|
protoOf(sam$kotlin_Comparator$0).p3 = function () {
|
|
1136
|
-
return this.
|
|
1136
|
+
return this.f67_1;
|
|
1137
1137
|
};
|
|
1138
1138
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1139
1139
|
var tmp;
|
|
@@ -1156,14 +1156,14 @@
|
|
|
1156
1156
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1157
1157
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1158
1158
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1159
|
-
var tmp = first_0(a).
|
|
1159
|
+
var tmp = first_0(a).g64_1;
|
|
1160
1160
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1161
|
-
var tmp$ret$1 = first_0(b).
|
|
1161
|
+
var tmp$ret$1 = first_0(b).g64_1;
|
|
1162
1162
|
return compareValues(tmp, tmp$ret$1);
|
|
1163
1163
|
}
|
|
1164
1164
|
function CombinationsCheckerProviderImpl() {
|
|
1165
1165
|
}
|
|
1166
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1166
|
+
protoOf(CombinationsCheckerProviderImpl).a67 = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1167
1167
|
// Inline function 'kotlin.collections.filter' call
|
|
1168
1168
|
// Inline function 'kotlin.apply' call
|
|
1169
1169
|
var this_0 = toMutableList(cards);
|
|
@@ -1176,7 +1176,7 @@
|
|
|
1176
1176
|
while (tmp0_iterator.k()) {
|
|
1177
1177
|
var element = tmp0_iterator.l();
|
|
1178
1178
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
|
|
1179
|
-
if (element.
|
|
1179
|
+
if (element.v64()) {
|
|
1180
1180
|
destination.e(element);
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
@@ -1193,14 +1193,14 @@
|
|
|
1193
1193
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1194
1194
|
var previousCard = lastOrNull(combinationCards);
|
|
1195
1195
|
var currentCard = sortedByIndexCards.o(i);
|
|
1196
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1196
|
+
var isNextInRow = !(previousCard == null) && currentCard.g64_1 === (previousCard.g64_1 + 1 | 0) && currentCard.u64().equals(previousCard.u64());
|
|
1197
1197
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.p2());
|
|
1198
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1198
|
+
var passedSuitCheck = suit == null || currentCard.u64().equals(suit);
|
|
1199
1199
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1200
1200
|
combinationCards.e(currentCard);
|
|
1201
1201
|
} else {
|
|
1202
1202
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1203
|
-
combinations.n(this.
|
|
1203
|
+
combinations.n(this.e67(toMutableList(combinationCards), supportedCombinations));
|
|
1204
1204
|
}
|
|
1205
1205
|
combinationCards.a2();
|
|
1206
1206
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1210,11 +1210,11 @@
|
|
|
1210
1210
|
}
|
|
1211
1211
|
while (inductionVariable <= last);
|
|
1212
1212
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1213
|
-
combinations.n(this.
|
|
1213
|
+
combinations.n(this.e67(toMutableList(combinationCards), supportedCombinations));
|
|
1214
1214
|
}
|
|
1215
1215
|
return combinations;
|
|
1216
1216
|
};
|
|
1217
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1217
|
+
protoOf(CombinationsCheckerProviderImpl).c67 = function (cards, cardsCount, includeCardNames) {
|
|
1218
1218
|
// Inline function 'kotlin.collections.filter' call
|
|
1219
1219
|
// Inline function 'kotlin.collections.filter' call
|
|
1220
1220
|
// Inline function 'kotlin.apply' call
|
|
@@ -1228,7 +1228,7 @@
|
|
|
1228
1228
|
while (tmp0_iterator.k()) {
|
|
1229
1229
|
var element = tmp0_iterator.l();
|
|
1230
1230
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1231
|
-
if (element.
|
|
1231
|
+
if (element.v64()) {
|
|
1232
1232
|
destination.e(element);
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
@@ -1251,7 +1251,7 @@
|
|
|
1251
1251
|
while (tmp0_iterator_1.k()) {
|
|
1252
1252
|
var element_1 = tmp0_iterator_1.l();
|
|
1253
1253
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1254
|
-
var key = element_1.
|
|
1254
|
+
var key = element_1.h64();
|
|
1255
1255
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1256
1256
|
var value = destination_1.h2(key);
|
|
1257
1257
|
var tmp;
|
|
@@ -1290,7 +1290,7 @@
|
|
|
1290
1290
|
}
|
|
1291
1291
|
return destination_3;
|
|
1292
1292
|
};
|
|
1293
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1293
|
+
protoOf(CombinationsCheckerProviderImpl).e67 = function (cards, supportedCombinations) {
|
|
1294
1294
|
// Inline function 'kotlin.collections.minOf' call
|
|
1295
1295
|
var iterator = supportedCombinations.j();
|
|
1296
1296
|
if (!iterator.k())
|
|
@@ -1320,28 +1320,28 @@
|
|
|
1320
1320
|
return sortedWith(combinations, tmp$ret$4);
|
|
1321
1321
|
};
|
|
1322
1322
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1323
|
+
this.g67_1 = logger;
|
|
1324
|
+
this.h67_1 = enableLogs;
|
|
1325
1325
|
}
|
|
1326
|
-
protoOf(DealerReducerImpl).
|
|
1326
|
+
protoOf(DealerReducerImpl).i67 = function (cards, cardsToRemove) {
|
|
1327
1327
|
var list = cards;
|
|
1328
1328
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1329
1329
|
while (_iterator__ex2g4s.k()) {
|
|
1330
1330
|
var gameCard = _iterator__ex2g4s.l();
|
|
1331
|
-
list = this.
|
|
1331
|
+
list = this.j67(list, gameCard);
|
|
1332
1332
|
}
|
|
1333
1333
|
return list;
|
|
1334
1334
|
};
|
|
1335
|
-
protoOf(DealerReducerImpl).
|
|
1335
|
+
protoOf(DealerReducerImpl).j67 = function (cards, cardToRemove) {
|
|
1336
1336
|
var tmp;
|
|
1337
|
-
if (!cardToRemove.
|
|
1338
|
-
if (this.
|
|
1339
|
-
this.
|
|
1337
|
+
if (!cardToRemove.m64() && cards.s1(cardToRemove)) {
|
|
1338
|
+
if (this.h67_1) {
|
|
1339
|
+
this.g67_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1340
1340
|
}
|
|
1341
1341
|
tmp = minus(cards, cardToRemove);
|
|
1342
1342
|
} else {
|
|
1343
|
-
if (this.
|
|
1344
|
-
this.
|
|
1343
|
+
if (this.h67_1) {
|
|
1344
|
+
this.g67_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1345
1345
|
}
|
|
1346
1346
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1347
1347
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1350,7 +1350,7 @@
|
|
|
1350
1350
|
while (tmp0_iterator.k()) {
|
|
1351
1351
|
var element = tmp0_iterator.l();
|
|
1352
1352
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1353
|
-
if (!element.
|
|
1353
|
+
if (!element.m64()) {
|
|
1354
1354
|
destination.e(element);
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
@@ -1362,36 +1362,36 @@
|
|
|
1362
1362
|
while (tmp0_iterator_0.k()) {
|
|
1363
1363
|
var element_0 = tmp0_iterator_0.l();
|
|
1364
1364
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1365
|
-
if (element_0.
|
|
1365
|
+
if (element_0.m64()) {
|
|
1366
1366
|
destination_0.e(element_0);
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
1369
|
var stubCards = destination_0;
|
|
1370
1370
|
if (stubCards.p()) {
|
|
1371
|
-
this.
|
|
1371
|
+
this.g67_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1372
1372
|
}
|
|
1373
1373
|
tmp = plus(notStubCards, dropLast(stubCards, 1));
|
|
1374
1374
|
}
|
|
1375
1375
|
return tmp;
|
|
1376
1376
|
};
|
|
1377
|
-
protoOf(DealerReducerImpl).
|
|
1378
|
-
if (this.
|
|
1379
|
-
this.
|
|
1377
|
+
protoOf(DealerReducerImpl).k67 = function (cards, cardToAdd) {
|
|
1378
|
+
if (this.h67_1) {
|
|
1379
|
+
this.g67_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1380
1380
|
}
|
|
1381
1381
|
if (cards.s1(cardToAdd)) {
|
|
1382
|
-
this.
|
|
1382
|
+
this.g67_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1383
1383
|
}
|
|
1384
1384
|
return plus_0(cards, cardToAdd);
|
|
1385
1385
|
};
|
|
1386
1386
|
function DealerReducer() {
|
|
1387
1387
|
}
|
|
1388
1388
|
//region block: post-declaration
|
|
1389
|
-
protoOf(CardsDealerProviderImpl).
|
|
1390
|
-
protoOf(CardsDealerProviderImpl).
|
|
1391
|
-
protoOf(FakeCardsDealerProvider).
|
|
1392
|
-
protoOf(FakeCardsDealerProvider).
|
|
1393
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1394
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1389
|
+
protoOf(CardsDealerProviderImpl).b65 = standardShuffledCards$default;
|
|
1390
|
+
protoOf(CardsDealerProviderImpl).d65 = realLifeShuffledCards$default;
|
|
1391
|
+
protoOf(FakeCardsDealerProvider).b65 = standardShuffledCards$default;
|
|
1392
|
+
protoOf(FakeCardsDealerProvider).d65 = realLifeShuffledCards$default;
|
|
1393
|
+
protoOf(CombinationsCheckerProviderImpl).b67 = findCardsInRowCombinations$default;
|
|
1394
|
+
protoOf(CombinationsCheckerProviderImpl).d67 = findSameCardsNumberCombinations$default;
|
|
1395
1395
|
//endregion
|
|
1396
1396
|
//region block: init
|
|
1397
1397
|
CoreConfig_instance = new CoreConfig();
|