client_plugin_logic_deb 1.8.225 → 1.8.232
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 +504 -504
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-client_plugin.d.ts +48 -16
- package/Logic_Debertz-client_plugin.js +2233 -2217
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1250 -1230
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14140 -13552
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +6681 -6505
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1213 -799
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +32 -32
- 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 +227 -227
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +164 -164
- package/raspberry-cardgame-lib-random.js +526 -532
- package/raspberry-cardgame-lib-random.js.map +1 -1
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
|
|
95
95
|
function standardShuffledCards$default(cards, times, $super) {
|
|
96
96
|
times = times === VOID ? 3 : times;
|
|
97
|
-
return $super === VOID ? this.
|
|
97
|
+
return $super === VOID ? this.f6a(cards, times) : $super.f6a.call(this, cards, times);
|
|
98
98
|
}
|
|
99
99
|
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
|
|
100
100
|
initMetadataForCompanion(Companion_2);
|
|
@@ -107,12 +107,12 @@
|
|
|
107
107
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
108
108
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
109
109
|
suit = suit === VOID ? null : suit;
|
|
110
|
-
return $super === VOID ? this.
|
|
110
|
+
return $super === VOID ? this.b6c(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.b6c.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
111
111
|
}
|
|
112
112
|
function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
|
|
113
113
|
cardsCount = cardsCount === VOID ? 4 : cardsCount;
|
|
114
114
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
115
|
-
return $super === VOID ? this.
|
|
115
|
+
return $super === VOID ? this.d6c(cards, cardsCount, includeCardNames) : $super.d6c.call(this, cards, cardsCount, includeCardNames);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
118
118
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
|
|
122
122
|
//endregion
|
|
123
123
|
function CoreConfig() {
|
|
124
|
-
this.version = '0.0.
|
|
124
|
+
this.version = '0.0.37';
|
|
125
125
|
}
|
|
126
126
|
protoOf(CoreConfig).m33 = function () {
|
|
127
127
|
return this.version;
|
|
@@ -131,30 +131,30 @@
|
|
|
131
131
|
return CoreConfig_instance;
|
|
132
132
|
}
|
|
133
133
|
function CardSuitSortingComparator(suit) {
|
|
134
|
-
this.
|
|
134
|
+
this.k69_1 = suit;
|
|
135
135
|
}
|
|
136
|
-
protoOf(CardSuitSortingComparator).
|
|
137
|
-
if (!a.
|
|
136
|
+
protoOf(CardSuitSortingComparator).l69 = function (a, b) {
|
|
137
|
+
if (!a.n69() || !b.n69()) {
|
|
138
138
|
return 0;
|
|
139
139
|
}
|
|
140
|
-
var suitIndexL = this.
|
|
141
|
-
var suitIndexR = this.
|
|
142
|
-
var sortedNumberL = imul(suitIndexL, 13) + a.
|
|
143
|
-
var sortedNumberR = imul(suitIndexR, 13) + b.
|
|
140
|
+
var suitIndexL = this.k69_1.u1(a.o69());
|
|
141
|
+
var suitIndexR = this.k69_1.u1(b.o69());
|
|
142
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.p69() | 0;
|
|
143
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.p69() | 0;
|
|
144
144
|
return sortedNumberL - sortedNumberR | 0;
|
|
145
145
|
};
|
|
146
146
|
protoOf(CardSuitSortingComparator).compare = function (a, b) {
|
|
147
147
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
148
|
-
return this.
|
|
148
|
+
return this.l69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
149
149
|
};
|
|
150
150
|
function CardIndexComparator() {
|
|
151
151
|
}
|
|
152
|
-
protoOf(CardIndexComparator).
|
|
153
|
-
return a.
|
|
152
|
+
protoOf(CardIndexComparator).l69 = function (a, b) {
|
|
153
|
+
return a.m69_1 - b.m69_1 | 0;
|
|
154
154
|
};
|
|
155
155
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
156
156
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
157
|
-
return this.
|
|
157
|
+
return this.l69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
158
158
|
};
|
|
159
159
|
var CardIndexComparator_instance;
|
|
160
160
|
function CardIndexComparator_getInstance() {
|
|
@@ -176,12 +176,12 @@
|
|
|
176
176
|
}
|
|
177
177
|
function CardNumberComparator() {
|
|
178
178
|
}
|
|
179
|
-
protoOf(CardNumberComparator).
|
|
180
|
-
return b.
|
|
179
|
+
protoOf(CardNumberComparator).l69 = function (a, b) {
|
|
180
|
+
return b.p69() - a.p69() | 0;
|
|
181
181
|
};
|
|
182
182
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
183
183
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
184
|
-
return this.
|
|
184
|
+
return this.l69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
185
185
|
};
|
|
186
186
|
var CardNumberComparator_instance;
|
|
187
187
|
function CardNumberComparator_getInstance() {
|
|
@@ -309,16 +309,16 @@
|
|
|
309
309
|
}
|
|
310
310
|
function Companion() {
|
|
311
311
|
}
|
|
312
|
-
protoOf(Companion).
|
|
312
|
+
protoOf(Companion).q69 = function (suit, number) {
|
|
313
313
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
314
314
|
};
|
|
315
|
-
protoOf(Companion).
|
|
315
|
+
protoOf(Companion).r69 = function (suit, cardNumber) {
|
|
316
316
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
317
317
|
};
|
|
318
|
-
protoOf(Companion).
|
|
318
|
+
protoOf(Companion).s69 = function (index) {
|
|
319
319
|
return new GameCard(index);
|
|
320
320
|
};
|
|
321
|
-
protoOf(Companion).
|
|
321
|
+
protoOf(Companion).t69 = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
322
322
|
var tmp;
|
|
323
323
|
if (previousStubCardWithMaxIndex == null) {
|
|
324
324
|
tmp = null;
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
// Inline function 'kotlin.contracts.contract' call
|
|
328
328
|
var tmp_0;
|
|
329
329
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
|
|
330
|
-
if (previousStubCardWithMaxIndex.
|
|
330
|
+
if (previousStubCardWithMaxIndex.u69()) {
|
|
331
331
|
tmp_0 = previousStubCardWithMaxIndex;
|
|
332
332
|
} else {
|
|
333
333
|
tmp_0 = null;
|
|
@@ -335,8 +335,8 @@
|
|
|
335
335
|
tmp = tmp_0;
|
|
336
336
|
}
|
|
337
337
|
var tmp3_safe_receiver = tmp;
|
|
338
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
339
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.
|
|
338
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m69_1;
|
|
339
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.z69(tmp4_safe_receiver, playerIndex, reverse);
|
|
340
340
|
var tmp_1;
|
|
341
341
|
if (tmp5_safe_receiver == null) {
|
|
342
342
|
tmp_1 = null;
|
|
@@ -357,10 +357,10 @@
|
|
|
357
357
|
var index = tmp_2;
|
|
358
358
|
return new GameCard(index);
|
|
359
359
|
};
|
|
360
|
-
protoOf(Companion).
|
|
360
|
+
protoOf(Companion).a6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
|
|
361
361
|
previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
|
|
362
362
|
reverse = reverse === VOID ? false : reverse;
|
|
363
|
-
return $super === VOID ? this.
|
|
363
|
+
return $super === VOID ? this.t69(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.t69.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
364
364
|
};
|
|
365
365
|
var Companion_instance;
|
|
366
366
|
function Companion_getInstance() {
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
return tmp;
|
|
465
465
|
}
|
|
466
466
|
function _get_isShirt__vd98rp($this) {
|
|
467
|
-
return $this.
|
|
467
|
+
return $this.m69_1 === 52;
|
|
468
468
|
}
|
|
469
469
|
function CardName(name, ordinal) {
|
|
470
470
|
Enum.call(this, name, ordinal);
|
|
@@ -473,12 +473,12 @@
|
|
|
473
473
|
return getShortName(this);
|
|
474
474
|
};
|
|
475
475
|
function Companion_0() {
|
|
476
|
-
this.
|
|
477
|
-
this.
|
|
478
|
-
this.
|
|
479
|
-
this.
|
|
476
|
+
this.v69_1 = -1;
|
|
477
|
+
this.w69_1 = 13;
|
|
478
|
+
this.x69_1 = 52;
|
|
479
|
+
this.y69_1 = 53;
|
|
480
480
|
}
|
|
481
|
-
protoOf(Companion_0).
|
|
481
|
+
protoOf(Companion_0).z69 = function (_this__u8e3s4, playerIndex, reverse) {
|
|
482
482
|
var tmp;
|
|
483
483
|
if (reverse) {
|
|
484
484
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -548,59 +548,59 @@
|
|
|
548
548
|
return CardName_STUB_instance;
|
|
549
549
|
}
|
|
550
550
|
function GameCard(index) {
|
|
551
|
-
this.
|
|
551
|
+
this.m69_1 = index;
|
|
552
552
|
}
|
|
553
|
-
protoOf(GameCard).
|
|
553
|
+
protoOf(GameCard).o69 = function () {
|
|
554
554
|
var tmp;
|
|
555
|
-
var containsArg = this.
|
|
555
|
+
var containsArg = this.m69_1;
|
|
556
556
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
557
557
|
tmp = Suit_DIAMOND_getInstance();
|
|
558
558
|
} else {
|
|
559
|
-
if (this.
|
|
559
|
+
if (this.m69_1 <= 26) {
|
|
560
560
|
tmp = Suit_SPADE_getInstance();
|
|
561
561
|
} else {
|
|
562
|
-
if (this.
|
|
562
|
+
if (this.m69_1 <= 39) {
|
|
563
563
|
tmp = Suit_HEART_getInstance();
|
|
564
564
|
} else {
|
|
565
|
-
if (this.
|
|
565
|
+
if (this.m69_1 <= 52) {
|
|
566
566
|
tmp = Suit_CLUB_getInstance();
|
|
567
567
|
} else {
|
|
568
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
568
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.m69_1);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
return tmp;
|
|
574
574
|
};
|
|
575
|
-
protoOf(GameCard).
|
|
575
|
+
protoOf(GameCard).p69 = function () {
|
|
576
576
|
var tmp;
|
|
577
|
-
if (this.
|
|
577
|
+
if (this.u69()) {
|
|
578
578
|
tmp = -1;
|
|
579
579
|
} else {
|
|
580
|
-
tmp = this.
|
|
580
|
+
tmp = this.m69_1 - imul(13, getIndex(this.o69())) | 0;
|
|
581
581
|
}
|
|
582
582
|
return tmp;
|
|
583
583
|
};
|
|
584
584
|
protoOf(GameCard).p2 = function () {
|
|
585
|
-
return this.
|
|
585
|
+
return this.u69() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.p69());
|
|
586
586
|
};
|
|
587
|
-
protoOf(GameCard).
|
|
588
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
587
|
+
protoOf(GameCard).n69 = function () {
|
|
588
|
+
return !_get_isShirt__vd98rp(this) && !this.u69();
|
|
589
589
|
};
|
|
590
|
-
protoOf(GameCard).
|
|
591
|
-
return this.
|
|
590
|
+
protoOf(GameCard).u69 = function () {
|
|
591
|
+
return this.m69_1 >= 53;
|
|
592
592
|
};
|
|
593
593
|
protoOf(GameCard).toString = function () {
|
|
594
594
|
if (_get_isShirt__vd98rp(this)) {
|
|
595
595
|
return 'GameCard(SHIRT)';
|
|
596
596
|
}
|
|
597
|
-
if (this.
|
|
598
|
-
return 'GameCard(STUB, ' + this.
|
|
597
|
+
if (this.u69()) {
|
|
598
|
+
return 'GameCard(STUB, ' + this.m69_1 + ')';
|
|
599
599
|
}
|
|
600
|
-
return 'GameCard(' + this.
|
|
600
|
+
return 'GameCard(' + this.o69().toString() + this.p2().toString() + ', ' + this.m69_1 + ')';
|
|
601
601
|
};
|
|
602
602
|
protoOf(GameCard).hashCode = function () {
|
|
603
|
-
return this.
|
|
603
|
+
return this.m69_1;
|
|
604
604
|
};
|
|
605
605
|
protoOf(GameCard).equals = function (other) {
|
|
606
606
|
if (this === other)
|
|
@@ -608,12 +608,12 @@
|
|
|
608
608
|
if (!(other instanceof GameCard))
|
|
609
609
|
return false;
|
|
610
610
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
611
|
-
if (!(this.
|
|
611
|
+
if (!(this.m69_1 === tmp0_other_with_cast.m69_1))
|
|
612
612
|
return false;
|
|
613
613
|
return true;
|
|
614
614
|
};
|
|
615
615
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
616
|
-
return $this.
|
|
616
|
+
return $this.b6a_1.u();
|
|
617
617
|
}
|
|
618
618
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
619
619
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
Companion_instance_1 = this;
|
|
656
656
|
var tmp = this;
|
|
657
657
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
658
|
-
tmp.
|
|
658
|
+
tmp.b6a_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
659
659
|
}
|
|
660
660
|
protoOf(Companion_1).v50 = function () {
|
|
661
661
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -782,7 +782,7 @@
|
|
|
782
782
|
}
|
|
783
783
|
function Companion_2() {
|
|
784
784
|
}
|
|
785
|
-
protoOf(Companion_2).
|
|
785
|
+
protoOf(Companion_2).c6b = function (randomPoolProvider, logger) {
|
|
786
786
|
var tmp17_random = new SecureRandom(logger);
|
|
787
787
|
return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
|
|
788
788
|
};
|
|
@@ -792,12 +792,12 @@
|
|
|
792
792
|
}
|
|
793
793
|
function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
794
794
|
CoroutineImpl.call(this, resultContinuation);
|
|
795
|
-
this.
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
795
|
+
this.l6b_1 = _this__u8e3s4;
|
|
796
|
+
this.m6b_1 = leftCardIndexForEachSuit;
|
|
797
|
+
this.n6b_1 = rightCardIndexForEachSuit;
|
|
798
|
+
this.o6b_1 = approximateRoundCountForGame;
|
|
799
|
+
this.p6b_1 = userData;
|
|
800
|
+
this.q6b_1 = provider;
|
|
801
801
|
}
|
|
802
802
|
protoOf($createNewShuffledCardDeckCOROUTINE$0).p9 = function () {
|
|
803
803
|
var suspendResult = this.j9_1;
|
|
@@ -807,26 +807,26 @@
|
|
|
807
807
|
switch (tmp) {
|
|
808
808
|
case 0:
|
|
809
809
|
this.i9_1 = 4;
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
812
|
-
if (this.
|
|
810
|
+
this.r6b_1 = this.q6b_1;
|
|
811
|
+
this.s6b_1 = this.r6b_1.o2_1;
|
|
812
|
+
if (this.s6b_1 === 0) {
|
|
813
813
|
var tmp_0 = this;
|
|
814
|
-
var it = this.
|
|
815
|
-
tmp_0.
|
|
814
|
+
var it = this.l6b_1.c6a(this.m6b_1, this.n6b_1);
|
|
815
|
+
tmp_0.t6b_1 = this.l6b_1.g6a(it);
|
|
816
816
|
this.h9_1 = 3;
|
|
817
817
|
continue $sm;
|
|
818
818
|
} else {
|
|
819
|
-
if (this.
|
|
819
|
+
if (this.s6b_1 === 1) {
|
|
820
820
|
this.h9_1 = 2;
|
|
821
|
-
suspendResult = getRandomOrgCards(this.
|
|
821
|
+
suspendResult = getRandomOrgCards(this.l6b_1, this.m6b_1, this.n6b_1, this.o6b_1, this.p6b_1, false, this);
|
|
822
822
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
823
823
|
return suspendResult;
|
|
824
824
|
}
|
|
825
825
|
continue $sm;
|
|
826
826
|
} else {
|
|
827
|
-
if (this.
|
|
827
|
+
if (this.s6b_1 === 2) {
|
|
828
828
|
this.h9_1 = 1;
|
|
829
|
-
suspendResult = getRandomOrgCards(this.
|
|
829
|
+
suspendResult = getRandomOrgCards(this.l6b_1, this.m6b_1, this.n6b_1, this.o6b_1, this.p6b_1, true, this);
|
|
830
830
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
831
831
|
return suspendResult;
|
|
832
832
|
}
|
|
@@ -840,15 +840,15 @@
|
|
|
840
840
|
|
|
841
841
|
break;
|
|
842
842
|
case 1:
|
|
843
|
-
this.
|
|
843
|
+
this.t6b_1 = suspendResult;
|
|
844
844
|
this.h9_1 = 3;
|
|
845
845
|
continue $sm;
|
|
846
846
|
case 2:
|
|
847
|
-
this.
|
|
847
|
+
this.t6b_1 = suspendResult;
|
|
848
848
|
this.h9_1 = 3;
|
|
849
849
|
continue $sm;
|
|
850
850
|
case 3:
|
|
851
|
-
return this.
|
|
851
|
+
return this.t6b_1;
|
|
852
852
|
case 4:
|
|
853
853
|
throw this.k9_1;
|
|
854
854
|
}
|
|
@@ -865,12 +865,12 @@
|
|
|
865
865
|
};
|
|
866
866
|
function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
867
867
|
CoroutineImpl.call(this, resultContinuation);
|
|
868
|
-
this.
|
|
869
|
-
this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
868
|
+
this.p6a_1 = _this__u8e3s4;
|
|
869
|
+
this.q6a_1 = leftCardIndexForEachSuit;
|
|
870
|
+
this.r6a_1 = rightCardIndexForEachSuit;
|
|
871
|
+
this.s6a_1 = approximateRoundsCount;
|
|
872
|
+
this.t6a_1 = userData;
|
|
873
|
+
this.u6a_1 = signed;
|
|
874
874
|
}
|
|
875
875
|
protoOf($getRandomOrgCardsCOROUTINE$1).p9 = function () {
|
|
876
876
|
var suspendResult = this.j9_1;
|
|
@@ -886,14 +886,14 @@
|
|
|
886
886
|
while (tmp0_iterator.k()) {
|
|
887
887
|
var element = tmp0_iterator.l();
|
|
888
888
|
var tmp_1 = sum;
|
|
889
|
-
sum = tmp_1 + count(getCardsRange(this.
|
|
889
|
+
sum = tmp_1 + count(getCardsRange(this.p6a_1, this.q6a_1, this.r6a_1)) | 0;
|
|
890
890
|
}
|
|
891
891
|
|
|
892
|
-
tmp_0.
|
|
893
|
-
this.
|
|
894
|
-
this.
|
|
892
|
+
tmp_0.v6a_1 = sum;
|
|
893
|
+
this.w6a_1 = this.p6a_1.v6b_1;
|
|
894
|
+
this.x6a_1 = this.v6a_1 - 1 | 0;
|
|
895
895
|
this.h9_1 = 1;
|
|
896
|
-
suspendResult = this.
|
|
896
|
+
suspendResult = this.w6a_1.c5v(this.s6a_1, this.t6a_1, 0, this.x6a_1, this.v6a_1, this.u6a_1, VOID, this);
|
|
897
897
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
898
898
|
return suspendResult;
|
|
899
899
|
}
|
|
@@ -901,34 +901,34 @@
|
|
|
901
901
|
this.h9_1 = 2;
|
|
902
902
|
continue $sm;
|
|
903
903
|
case 1:
|
|
904
|
-
this.
|
|
905
|
-
suspendResult = new Result(this.
|
|
904
|
+
this.y6a_1 = suspendResult.gk_1;
|
|
905
|
+
suspendResult = new Result(this.y6a_1);
|
|
906
906
|
this.h9_1 = 2;
|
|
907
907
|
continue $sm;
|
|
908
908
|
case 2:
|
|
909
|
-
this.
|
|
910
|
-
if (_Result___get_isSuccess__impl__sndoy8(this.
|
|
909
|
+
this.z6a_1 = suspendResult.gk_1;
|
|
910
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.z6a_1)) {
|
|
911
911
|
var tmp_2 = this;
|
|
912
|
-
var this_0 = this.
|
|
912
|
+
var this_0 = this.z6a_1;
|
|
913
913
|
throwOnFailure(this_0);
|
|
914
914
|
var tmp_3 = _Result___get_value__impl__bjfvqg(this_0);
|
|
915
915
|
var tmp14_cards = ((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE()).cards;
|
|
916
|
-
var this_1 = normalizeCards(this.
|
|
916
|
+
var this_1 = normalizeCards(this.p6a_1, tmp14_cards, this.q6a_1);
|
|
917
917
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
918
918
|
var tmp0_iterator_0 = this_1.j();
|
|
919
919
|
while (tmp0_iterator_0.k()) {
|
|
920
920
|
var item = tmp0_iterator_0.l();
|
|
921
|
-
destination.e(Companion_instance.
|
|
921
|
+
destination.e(Companion_instance.s69(item));
|
|
922
922
|
}
|
|
923
|
-
tmp_2.
|
|
923
|
+
tmp_2.a6b_1 = destination;
|
|
924
924
|
this.h9_1 = 4;
|
|
925
925
|
continue $sm;
|
|
926
926
|
} else {
|
|
927
|
-
this.
|
|
928
|
-
var tmp15_safe_receiver = this.
|
|
929
|
-
this.
|
|
927
|
+
this.b6b_1 = Result__exceptionOrNull_impl_p6xea9(this.z6a_1);
|
|
928
|
+
var tmp15_safe_receiver = this.b6b_1;
|
|
929
|
+
this.p6a_1.w6b_1.w('CardsDealerProvider', 'createNewShuffledCardDeck error message = ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.b6b_1);
|
|
930
930
|
this.h9_1 = 3;
|
|
931
|
-
suspendResult = this.
|
|
931
|
+
suspendResult = this.p6a_1.d6a(this.q6a_1, this.r6a_1, this.s6a_1, this.t6a_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
932
932
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
933
933
|
return suspendResult;
|
|
934
934
|
}
|
|
@@ -936,11 +936,11 @@
|
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
case 3:
|
|
939
|
-
this.
|
|
939
|
+
this.a6b_1 = suspendResult;
|
|
940
940
|
this.h9_1 = 4;
|
|
941
941
|
continue $sm;
|
|
942
942
|
case 4:
|
|
943
|
-
return this.
|
|
943
|
+
return this.a6b_1;
|
|
944
944
|
case 5:
|
|
945
945
|
throw this.k9_1;
|
|
946
946
|
}
|
|
@@ -956,11 +956,11 @@
|
|
|
956
956
|
while (true);
|
|
957
957
|
};
|
|
958
958
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
959
|
+
this.u6b_1 = random;
|
|
960
|
+
this.v6b_1 = randomPoolProvider;
|
|
961
|
+
this.w6b_1 = logger;
|
|
962
962
|
}
|
|
963
|
-
protoOf(CardsDealerProviderImpl).
|
|
963
|
+
protoOf(CardsDealerProviderImpl).c6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
964
964
|
// Inline function 'kotlin.collections.flatMap' call
|
|
965
965
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
966
966
|
var this_0 = get_entries();
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
inductionVariable = inductionVariable + 1 | 0;
|
|
982
982
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
|
|
983
983
|
var it = item;
|
|
984
|
-
var tmp$ret$0 = Companion_instance.
|
|
984
|
+
var tmp$ret$0 = Companion_instance.q69(element, it);
|
|
985
985
|
destination_0.e(tmp$ret$0);
|
|
986
986
|
}
|
|
987
987
|
while (!(item === last));
|
|
@@ -990,13 +990,13 @@
|
|
|
990
990
|
}
|
|
991
991
|
return destination;
|
|
992
992
|
};
|
|
993
|
-
protoOf(CardsDealerProviderImpl).
|
|
993
|
+
protoOf(CardsDealerProviderImpl).d6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
994
994
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
995
995
|
tmp.j9_1 = Unit_instance;
|
|
996
996
|
tmp.k9_1 = null;
|
|
997
997
|
return tmp.p9();
|
|
998
998
|
};
|
|
999
|
-
protoOf(CardsDealerProviderImpl).
|
|
999
|
+
protoOf(CardsDealerProviderImpl).e6a = function (count, cards) {
|
|
1000
1000
|
// Inline function 'kotlin.apply' call
|
|
1001
1001
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1002
1002
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1030,7 +1030,7 @@
|
|
|
1030
1030
|
while (tmp0_iterator.k()) {
|
|
1031
1031
|
var element = tmp0_iterator.l();
|
|
1032
1032
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
|
|
1033
|
-
if (element.
|
|
1033
|
+
if (element.p69() === card.p69()) {
|
|
1034
1034
|
tmp$ret$2 = true;
|
|
1035
1035
|
break $l$block_1;
|
|
1036
1036
|
}
|
|
@@ -1045,7 +1045,7 @@
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return this_0;
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(CardsDealerProviderImpl).
|
|
1048
|
+
protoOf(CardsDealerProviderImpl).f6a = function (cards, times) {
|
|
1049
1049
|
// Inline function 'kotlin.let' call
|
|
1050
1050
|
// Inline function 'kotlin.contracts.contract' call
|
|
1051
1051
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
|
|
@@ -1055,49 +1055,49 @@
|
|
|
1055
1055
|
do {
|
|
1056
1056
|
var i = inductionVariable;
|
|
1057
1057
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1058
|
-
shuffled = this.
|
|
1058
|
+
shuffled = this.u6b_1.b60(shuffled);
|
|
1059
1059
|
}
|
|
1060
1060
|
while (inductionVariable < times);
|
|
1061
1061
|
return shuffled;
|
|
1062
1062
|
};
|
|
1063
1063
|
function Companion_3() {
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf(Companion_3).
|
|
1065
|
+
protoOf(Companion_3).x6b = function () {
|
|
1066
1066
|
// Inline function 'kotlin.apply' call
|
|
1067
1067
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1068
1068
|
var this_0 = ArrayList_init_$Create$();
|
|
1069
1069
|
// Inline function 'kotlin.contracts.contract' call
|
|
1070
1070
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
|
|
1071
|
-
this_0.n(listOf([Companion_instance.
|
|
1072
|
-
this_0.n(listOf([Companion_instance.
|
|
1073
|
-
this_0.n(listOf([Companion_instance.
|
|
1074
|
-
this_0.n(listOf([Companion_instance.
|
|
1075
|
-
this_0.n(listOf([Companion_instance.
|
|
1071
|
+
this_0.n(listOf([Companion_instance.r69(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.r69(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.r69(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.r69(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1072
|
+
this_0.n(listOf([Companion_instance.r69(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.r69(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.r69(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.r69(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1073
|
+
this_0.n(listOf([Companion_instance.r69(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.r69(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1074
|
+
this_0.n(listOf([Companion_instance.r69(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.r69(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
|
|
1075
|
+
this_0.n(listOf([Companion_instance.r69(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.r69(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.r69(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.r69(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.r69(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1076
1076
|
return this_0;
|
|
1077
1077
|
};
|
|
1078
|
-
protoOf(Companion_3).
|
|
1079
|
-
return listOf([Companion_instance.
|
|
1078
|
+
protoOf(Companion_3).y6b = function () {
|
|
1079
|
+
return listOf([Companion_instance.r69(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.r69(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.r69(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1080
1080
|
};
|
|
1081
1081
|
var Companion_instance_3;
|
|
1082
1082
|
function Companion_getInstance_3() {
|
|
1083
1083
|
return Companion_instance_3;
|
|
1084
1084
|
}
|
|
1085
1085
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1086
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1087
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1088
|
-
this.
|
|
1089
|
-
this.
|
|
1086
|
+
cards = cards === VOID ? Companion_instance_3.x6b() : cards;
|
|
1087
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.y6b() : cardsForLot;
|
|
1088
|
+
this.z6b_1 = cards;
|
|
1089
|
+
this.a6c_1 = cardsForLot;
|
|
1090
1090
|
}
|
|
1091
|
-
protoOf(FakeCardsDealerProvider).
|
|
1092
|
-
return this.
|
|
1093
|
-
};
|
|
1094
|
-
protoOf(FakeCardsDealerProvider).c6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1095
|
-
return this.y6b_1;
|
|
1091
|
+
protoOf(FakeCardsDealerProvider).c6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1092
|
+
return this.z6b_1;
|
|
1096
1093
|
};
|
|
1097
|
-
protoOf(FakeCardsDealerProvider).d6a = function (
|
|
1094
|
+
protoOf(FakeCardsDealerProvider).d6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1098
1095
|
return this.z6b_1;
|
|
1099
1096
|
};
|
|
1100
|
-
protoOf(FakeCardsDealerProvider).e6a = function (
|
|
1097
|
+
protoOf(FakeCardsDealerProvider).e6a = function (count, cards) {
|
|
1098
|
+
return this.a6c_1;
|
|
1099
|
+
};
|
|
1100
|
+
protoOf(FakeCardsDealerProvider).f6a = function (cards, times) {
|
|
1101
1101
|
return cards;
|
|
1102
1102
|
};
|
|
1103
1103
|
function CombinationsCheckerProvider() {
|
|
@@ -1126,16 +1126,16 @@
|
|
|
1126
1126
|
return takeLast(cards, longestCombinationSupport);
|
|
1127
1127
|
}
|
|
1128
1128
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1129
|
-
this.
|
|
1129
|
+
this.g6c_1 = function_0;
|
|
1130
1130
|
}
|
|
1131
1131
|
protoOf(sam$kotlin_Comparator$0).pc = function (a, b) {
|
|
1132
|
-
return this.
|
|
1132
|
+
return this.g6c_1(a, b);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1135
1135
|
return this.pc(a, b);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(sam$kotlin_Comparator$0).p3 = function () {
|
|
1138
|
-
return this.
|
|
1138
|
+
return this.g6c_1;
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1141
1141
|
var tmp;
|
|
@@ -1158,14 +1158,14 @@
|
|
|
1158
1158
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1159
1159
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1160
1160
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1161
|
-
var tmp = first_0(a).
|
|
1161
|
+
var tmp = first_0(a).m69_1;
|
|
1162
1162
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1163
|
-
var tmp$ret$1 = first_0(b).
|
|
1163
|
+
var tmp$ret$1 = first_0(b).m69_1;
|
|
1164
1164
|
return compareValues(tmp, tmp$ret$1);
|
|
1165
1165
|
}
|
|
1166
1166
|
function CombinationsCheckerProviderImpl() {
|
|
1167
1167
|
}
|
|
1168
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1168
|
+
protoOf(CombinationsCheckerProviderImpl).b6c = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1169
1169
|
// Inline function 'kotlin.collections.filter' call
|
|
1170
1170
|
// Inline function 'kotlin.apply' call
|
|
1171
1171
|
var this_0 = toMutableList(cards);
|
|
@@ -1178,7 +1178,7 @@
|
|
|
1178
1178
|
while (tmp0_iterator.k()) {
|
|
1179
1179
|
var element = tmp0_iterator.l();
|
|
1180
1180
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
|
|
1181
|
-
if (element.
|
|
1181
|
+
if (element.n69()) {
|
|
1182
1182
|
destination.e(element);
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
@@ -1195,14 +1195,14 @@
|
|
|
1195
1195
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1196
1196
|
var previousCard = lastOrNull(combinationCards);
|
|
1197
1197
|
var currentCard = sortedByIndexCards.o(i);
|
|
1198
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1198
|
+
var isNextInRow = !(previousCard == null) && currentCard.m69_1 === (previousCard.m69_1 + 1 | 0) && currentCard.o69().equals(previousCard.o69());
|
|
1199
1199
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.p2());
|
|
1200
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1200
|
+
var passedSuitCheck = suit == null || currentCard.o69().equals(suit);
|
|
1201
1201
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1202
1202
|
combinationCards.e(currentCard);
|
|
1203
1203
|
} else {
|
|
1204
1204
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1205
|
-
combinations.n(this.
|
|
1205
|
+
combinations.n(this.f6c(toMutableList(combinationCards), supportedCombinations));
|
|
1206
1206
|
}
|
|
1207
1207
|
combinationCards.a2();
|
|
1208
1208
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1212,11 +1212,11 @@
|
|
|
1212
1212
|
}
|
|
1213
1213
|
while (inductionVariable <= last);
|
|
1214
1214
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1215
|
-
combinations.n(this.
|
|
1215
|
+
combinations.n(this.f6c(toMutableList(combinationCards), supportedCombinations));
|
|
1216
1216
|
}
|
|
1217
1217
|
return combinations;
|
|
1218
1218
|
};
|
|
1219
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1219
|
+
protoOf(CombinationsCheckerProviderImpl).d6c = function (cards, cardsCount, includeCardNames) {
|
|
1220
1220
|
// Inline function 'kotlin.collections.filter' call
|
|
1221
1221
|
// Inline function 'kotlin.collections.filter' call
|
|
1222
1222
|
// Inline function 'kotlin.apply' call
|
|
@@ -1230,7 +1230,7 @@
|
|
|
1230
1230
|
while (tmp0_iterator.k()) {
|
|
1231
1231
|
var element = tmp0_iterator.l();
|
|
1232
1232
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1233
|
-
if (element.
|
|
1233
|
+
if (element.n69()) {
|
|
1234
1234
|
destination.e(element);
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
while (tmp0_iterator_1.k()) {
|
|
1254
1254
|
var element_1 = tmp0_iterator_1.l();
|
|
1255
1255
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1256
|
-
var key = element_1.
|
|
1256
|
+
var key = element_1.p69();
|
|
1257
1257
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1258
1258
|
var value = destination_1.h2(key);
|
|
1259
1259
|
var tmp;
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
}
|
|
1293
1293
|
return destination_3;
|
|
1294
1294
|
};
|
|
1295
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1295
|
+
protoOf(CombinationsCheckerProviderImpl).f6c = function (cards, supportedCombinations) {
|
|
1296
1296
|
// Inline function 'kotlin.collections.minOf' call
|
|
1297
1297
|
var iterator = supportedCombinations.j();
|
|
1298
1298
|
if (!iterator.k())
|
|
@@ -1322,28 +1322,28 @@
|
|
|
1322
1322
|
return sortedWith(combinations, tmp$ret$4);
|
|
1323
1323
|
};
|
|
1324
1324
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1325
|
+
this.h6c_1 = logger;
|
|
1326
|
+
this.i6c_1 = enableLogs;
|
|
1327
1327
|
}
|
|
1328
|
-
protoOf(DealerReducerImpl).
|
|
1328
|
+
protoOf(DealerReducerImpl).j6c = function (cards, cardsToRemove) {
|
|
1329
1329
|
var list = cards;
|
|
1330
1330
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1331
1331
|
while (_iterator__ex2g4s.k()) {
|
|
1332
1332
|
var gameCard = _iterator__ex2g4s.l();
|
|
1333
|
-
list = this.
|
|
1333
|
+
list = this.k6c(list, gameCard);
|
|
1334
1334
|
}
|
|
1335
1335
|
return list;
|
|
1336
1336
|
};
|
|
1337
|
-
protoOf(DealerReducerImpl).
|
|
1337
|
+
protoOf(DealerReducerImpl).k6c = function (cards, cardToRemove) {
|
|
1338
1338
|
var tmp;
|
|
1339
|
-
if (!cardToRemove.
|
|
1340
|
-
if (this.
|
|
1341
|
-
this.
|
|
1339
|
+
if (!cardToRemove.u69() && cards.s1(cardToRemove)) {
|
|
1340
|
+
if (this.i6c_1) {
|
|
1341
|
+
this.h6c_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1342
1342
|
}
|
|
1343
1343
|
tmp = minus(cards, cardToRemove);
|
|
1344
1344
|
} else {
|
|
1345
|
-
if (this.
|
|
1346
|
-
this.
|
|
1345
|
+
if (this.i6c_1) {
|
|
1346
|
+
this.h6c_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1347
1347
|
}
|
|
1348
1348
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1349
1349
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
while (tmp0_iterator.k()) {
|
|
1353
1353
|
var element = tmp0_iterator.l();
|
|
1354
1354
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1355
|
-
if (!element.
|
|
1355
|
+
if (!element.u69()) {
|
|
1356
1356
|
destination.e(element);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
@@ -1364,34 +1364,34 @@
|
|
|
1364
1364
|
while (tmp0_iterator_0.k()) {
|
|
1365
1365
|
var element_0 = tmp0_iterator_0.l();
|
|
1366
1366
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1367
|
-
if (element_0.
|
|
1367
|
+
if (element_0.u69()) {
|
|
1368
1368
|
destination_0.e(element_0);
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
1371
|
var stubCards = destination_0;
|
|
1372
1372
|
if (stubCards.p()) {
|
|
1373
|
-
this.
|
|
1373
|
+
this.h6c_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1374
1374
|
}
|
|
1375
1375
|
tmp = plus(notStubCards, dropLast(stubCards, 1));
|
|
1376
1376
|
}
|
|
1377
1377
|
return tmp;
|
|
1378
1378
|
};
|
|
1379
|
-
protoOf(DealerReducerImpl).
|
|
1380
|
-
if (this.
|
|
1381
|
-
this.
|
|
1379
|
+
protoOf(DealerReducerImpl).l6c = function (cards, cardToAdd) {
|
|
1380
|
+
if (this.i6c_1) {
|
|
1381
|
+
this.h6c_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1382
1382
|
}
|
|
1383
1383
|
if (cards.s1(cardToAdd)) {
|
|
1384
|
-
this.
|
|
1384
|
+
this.h6c_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1385
1385
|
}
|
|
1386
1386
|
return plus_0(cards, cardToAdd);
|
|
1387
1387
|
};
|
|
1388
1388
|
function DealerReducer() {
|
|
1389
1389
|
}
|
|
1390
1390
|
//region block: post-declaration
|
|
1391
|
-
protoOf(CardsDealerProviderImpl).
|
|
1392
|
-
protoOf(FakeCardsDealerProvider).
|
|
1393
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1394
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1391
|
+
protoOf(CardsDealerProviderImpl).g6a = standardShuffledCards$default;
|
|
1392
|
+
protoOf(FakeCardsDealerProvider).g6a = standardShuffledCards$default;
|
|
1393
|
+
protoOf(CombinationsCheckerProviderImpl).c6c = findCardsInRowCombinations$default;
|
|
1394
|
+
protoOf(CombinationsCheckerProviderImpl).e6c = findSameCardsNumberCombinations$default;
|
|
1395
1395
|
//endregion
|
|
1396
1396
|
//region block: init
|
|
1397
1397
|
CoreConfig_instance = new CoreConfig();
|