client_plugin_logic_deb 1.8.387 → 1.8.388
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1388 -1388
- package/Logic_Debertz-client_plugin.js +2580 -2580
- package/Logic_Debertz-core.js +1235 -1235
- package/Logic_Debertz-engine.js +12314 -12152
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +7384 -7373
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +990 -979
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1670 -1626
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1071 -1071
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1434 -1434
- package/ktor-ktor-client-logging.js +269 -269
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +597 -597
- package/ktor-ktor-io.js +1216 -1216
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +129 -129
- package/ktor-ktor-serialization.js +64 -64
- package/ktor-ktor-utils.js +483 -483
- package/ktor-ktor-websockets.js +41 -41
- package/package.json +1 -1
- package/random-library-secure-random.js +1 -1
- package/raspberry-cardgame-lib-core.js +168 -168
- package/raspberry-cardgame-lib-logger.js +92 -92
- package/raspberry-cardgame-lib-random.js +589 -589
- package/uuid.js +11 -11
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
|
|
97
97
|
function standardShuffledCards$default(cards, times, $super) {
|
|
98
98
|
times = times === VOID ? 3 : times;
|
|
99
|
-
return $super === VOID ? this.
|
|
99
|
+
return $super === VOID ? this.k5t(cards, times) : $super.k5t.call(this, cards, times);
|
|
100
100
|
}
|
|
101
101
|
function realLifeShuffledCards$default(cards, times, $super) {
|
|
102
102
|
times = times === VOID ? 20 : times;
|
|
103
|
-
return $super === VOID ? this.
|
|
103
|
+
return $super === VOID ? this.m5t(cards, times) : $super.m5t.call(this, cards, times);
|
|
104
104
|
}
|
|
105
105
|
initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
|
|
106
106
|
initMetadataForCompanion(Companion_2);
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
|
|
114
114
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
115
115
|
suit = suit === VOID ? null : suit;
|
|
116
|
-
return $super === VOID ? this.
|
|
116
|
+
return $super === VOID ? this.c5v(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.c5v.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
|
|
117
117
|
}
|
|
118
118
|
function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
|
|
119
119
|
cardsCount = cardsCount === VOID ? 4 : cardsCount;
|
|
120
120
|
includeCardNames = includeCardNames === VOID ? null : includeCardNames;
|
|
121
|
-
return $super === VOID ? this.
|
|
121
|
+
return $super === VOID ? this.e5v(cards, cardsCount, includeCardNames) : $super.e5v.call(this, cards, cardsCount, includeCardNames);
|
|
122
122
|
}
|
|
123
123
|
initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
|
|
124
124
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
function CoreConfig() {
|
|
130
130
|
this.version = '0.0.53';
|
|
131
131
|
}
|
|
132
|
-
protoOf(CoreConfig).
|
|
132
|
+
protoOf(CoreConfig).g3y = function () {
|
|
133
133
|
return this.version;
|
|
134
134
|
};
|
|
135
135
|
var CoreConfig_instance;
|
|
@@ -137,21 +137,21 @@
|
|
|
137
137
|
return CoreConfig_instance;
|
|
138
138
|
}
|
|
139
139
|
function CardSuitSortingComparator(suit) {
|
|
140
|
-
this.
|
|
140
|
+
this.n5s_1 = suit;
|
|
141
141
|
}
|
|
142
|
-
protoOf(CardSuitSortingComparator).
|
|
143
|
-
if (!a.
|
|
142
|
+
protoOf(CardSuitSortingComparator).o5s = function (a, b) {
|
|
143
|
+
if (!a.q5s() || !b.q5s()) {
|
|
144
144
|
return 0;
|
|
145
145
|
}
|
|
146
|
-
var suitIndexL = this.
|
|
147
|
-
var suitIndexR = this.
|
|
148
|
-
var sortedNumberL = imul(suitIndexL, 13) + a.
|
|
149
|
-
var sortedNumberR = imul(suitIndexR, 13) + b.
|
|
146
|
+
var suitIndexL = this.n5s_1.v1(a.r5s());
|
|
147
|
+
var suitIndexR = this.n5s_1.v1(b.r5s());
|
|
148
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.s5s() | 0;
|
|
149
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.s5s() | 0;
|
|
150
150
|
return sortedNumberL - sortedNumberR | 0;
|
|
151
151
|
};
|
|
152
152
|
protoOf(CardSuitSortingComparator).compare = function (a, b) {
|
|
153
153
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
154
|
-
return this.
|
|
154
|
+
return this.o5s(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
155
155
|
};
|
|
156
156
|
function filterByCardName(_this__u8e3s4, name) {
|
|
157
157
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -169,12 +169,12 @@
|
|
|
169
169
|
}
|
|
170
170
|
function CardNumberComparator() {
|
|
171
171
|
}
|
|
172
|
-
protoOf(CardNumberComparator).
|
|
173
|
-
return b.
|
|
172
|
+
protoOf(CardNumberComparator).o5s = function (a, b) {
|
|
173
|
+
return b.s5s() - a.s5s() | 0;
|
|
174
174
|
};
|
|
175
175
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
176
176
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
177
|
-
return this.
|
|
177
|
+
return this.o5s(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
178
178
|
};
|
|
179
179
|
var CardNumberComparator_instance;
|
|
180
180
|
function CardNumberComparator_getInstance() {
|
|
@@ -192,12 +192,12 @@
|
|
|
192
192
|
}
|
|
193
193
|
function CardIndexComparator() {
|
|
194
194
|
}
|
|
195
|
-
protoOf(CardIndexComparator).
|
|
196
|
-
return a.
|
|
195
|
+
protoOf(CardIndexComparator).o5s = function (a, b) {
|
|
196
|
+
return a.p5s_1 - b.p5s_1 | 0;
|
|
197
197
|
};
|
|
198
198
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
199
199
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
200
|
-
return this.
|
|
200
|
+
return this.o5s(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
201
201
|
};
|
|
202
202
|
var CardIndexComparator_instance;
|
|
203
203
|
function CardIndexComparator_getInstance() {
|
|
@@ -314,23 +314,23 @@
|
|
|
314
314
|
}
|
|
315
315
|
function Companion() {
|
|
316
316
|
}
|
|
317
|
-
protoOf(Companion).
|
|
317
|
+
protoOf(Companion).t5s = function (suit, number) {
|
|
318
318
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
319
319
|
};
|
|
320
|
-
protoOf(Companion).
|
|
320
|
+
protoOf(Companion).u5s = function (suit, cardNumber) {
|
|
321
321
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
322
322
|
};
|
|
323
|
-
protoOf(Companion).
|
|
323
|
+
protoOf(Companion).v5s = function (index) {
|
|
324
324
|
return new GameCard(index);
|
|
325
325
|
};
|
|
326
|
-
protoOf(Companion).
|
|
326
|
+
protoOf(Companion).w5s = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
327
327
|
var tmp;
|
|
328
328
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
329
329
|
tmp = null;
|
|
330
330
|
} else {
|
|
331
331
|
// Inline function 'kotlin.takeIf' call
|
|
332
332
|
var tmp_0;
|
|
333
|
-
if (previousHiddenCardWithMaxIndex.
|
|
333
|
+
if (previousHiddenCardWithMaxIndex.x5s()) {
|
|
334
334
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
335
335
|
} else {
|
|
336
336
|
tmp_0 = null;
|
|
@@ -338,8 +338,8 @@
|
|
|
338
338
|
tmp = tmp_0;
|
|
339
339
|
}
|
|
340
340
|
var tmp1_safe_receiver = tmp;
|
|
341
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
342
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
341
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p5s_1;
|
|
342
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.d5t(tmp2_safe_receiver, playerIndex, reverse);
|
|
343
343
|
var tmp_1;
|
|
344
344
|
if (tmp3_safe_receiver == null) {
|
|
345
345
|
tmp_1 = null;
|
|
@@ -358,12 +358,12 @@
|
|
|
358
358
|
var index = tmp_2;
|
|
359
359
|
return new GameCard(index);
|
|
360
360
|
};
|
|
361
|
-
protoOf(Companion).
|
|
361
|
+
protoOf(Companion).e5t = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
362
362
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
363
363
|
reverse = reverse === VOID ? false : reverse;
|
|
364
|
-
return $super === VOID ? this.
|
|
364
|
+
return $super === VOID ? this.w5s(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.w5s.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).f5t = function (position) {
|
|
367
367
|
var index = 150 + position | 0;
|
|
368
368
|
return new GameCard(index);
|
|
369
369
|
};
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
return tmp;
|
|
470
470
|
}
|
|
471
471
|
function _get_isShirt__vd98rp($this) {
|
|
472
|
-
return $this.
|
|
472
|
+
return $this.p5s_1 >= 150 && $this.p5s_1 <= 202;
|
|
473
473
|
}
|
|
474
474
|
function CardName(name, ordinal) {
|
|
475
475
|
Enum.call(this, name, ordinal);
|
|
@@ -478,13 +478,13 @@
|
|
|
478
478
|
return getShortName(this);
|
|
479
479
|
};
|
|
480
480
|
function Companion_0() {
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
481
|
+
this.y5s_1 = -1;
|
|
482
|
+
this.z5s_1 = 13;
|
|
483
|
+
this.a5t_1 = 52;
|
|
484
|
+
this.b5t_1 = 150;
|
|
485
|
+
this.c5t_1 = 53;
|
|
486
486
|
}
|
|
487
|
-
protoOf(Companion_0).
|
|
487
|
+
protoOf(Companion_0).d5t = function (_this__u8e3s4, playerIndex, reverse) {
|
|
488
488
|
var tmp;
|
|
489
489
|
if (reverse) {
|
|
490
490
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -554,59 +554,59 @@
|
|
|
554
554
|
return CardName_HIDDEN_instance;
|
|
555
555
|
}
|
|
556
556
|
function GameCard(index) {
|
|
557
|
-
this.
|
|
557
|
+
this.p5s_1 = index;
|
|
558
558
|
}
|
|
559
|
-
protoOf(GameCard).
|
|
559
|
+
protoOf(GameCard).r5s = function () {
|
|
560
560
|
var tmp;
|
|
561
|
-
var containsArg = this.
|
|
561
|
+
var containsArg = this.p5s_1;
|
|
562
562
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
563
563
|
tmp = Suit_DIAMOND_getInstance();
|
|
564
564
|
} else {
|
|
565
|
-
if (this.
|
|
565
|
+
if (this.p5s_1 <= 26) {
|
|
566
566
|
tmp = Suit_SPADE_getInstance();
|
|
567
567
|
} else {
|
|
568
|
-
if (this.
|
|
568
|
+
if (this.p5s_1 <= 39) {
|
|
569
569
|
tmp = Suit_HEART_getInstance();
|
|
570
570
|
} else {
|
|
571
|
-
if (this.
|
|
571
|
+
if (this.p5s_1 <= 52) {
|
|
572
572
|
tmp = Suit_CLUB_getInstance();
|
|
573
573
|
} else {
|
|
574
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
574
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.p5s_1);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
return tmp;
|
|
580
580
|
};
|
|
581
|
-
protoOf(GameCard).
|
|
581
|
+
protoOf(GameCard).s5s = function () {
|
|
582
582
|
var tmp;
|
|
583
|
-
if (this.
|
|
583
|
+
if (this.x5s()) {
|
|
584
584
|
tmp = -1;
|
|
585
585
|
} else {
|
|
586
|
-
tmp = this.
|
|
586
|
+
tmp = this.p5s_1 - imul(13, getIndex(this.r5s())) | 0;
|
|
587
587
|
}
|
|
588
588
|
return tmp;
|
|
589
589
|
};
|
|
590
590
|
protoOf(GameCard).q2 = function () {
|
|
591
|
-
return this.
|
|
591
|
+
return this.x5s() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.s5s());
|
|
592
592
|
};
|
|
593
|
-
protoOf(GameCard).
|
|
594
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
593
|
+
protoOf(GameCard).q5s = function () {
|
|
594
|
+
return !_get_isShirt__vd98rp(this) && !this.x5s();
|
|
595
595
|
};
|
|
596
|
-
protoOf(GameCard).
|
|
597
|
-
return this.
|
|
596
|
+
protoOf(GameCard).x5s = function () {
|
|
597
|
+
return this.p5s_1 >= 53 && this.p5s_1 <= 105;
|
|
598
598
|
};
|
|
599
599
|
protoOf(GameCard).toString = function () {
|
|
600
600
|
if (_get_isShirt__vd98rp(this)) {
|
|
601
|
-
return 'GameCard(SHIRT, ' + this.
|
|
601
|
+
return 'GameCard(SHIRT, ' + this.p5s_1 + ')';
|
|
602
602
|
}
|
|
603
|
-
if (this.
|
|
604
|
-
return 'GameCard(HIDDEN, ' + this.
|
|
603
|
+
if (this.x5s()) {
|
|
604
|
+
return 'GameCard(HIDDEN, ' + this.p5s_1 + ')';
|
|
605
605
|
}
|
|
606
|
-
return 'GameCard(' + this.
|
|
606
|
+
return 'GameCard(' + this.r5s().toString() + this.q2().toString() + ', ' + this.p5s_1 + ')';
|
|
607
607
|
};
|
|
608
608
|
protoOf(GameCard).hashCode = function () {
|
|
609
|
-
return this.
|
|
609
|
+
return this.p5s_1;
|
|
610
610
|
};
|
|
611
611
|
protoOf(GameCard).equals = function (other) {
|
|
612
612
|
if (this === other)
|
|
@@ -614,12 +614,12 @@
|
|
|
614
614
|
if (!(other instanceof GameCard))
|
|
615
615
|
return false;
|
|
616
616
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
617
|
-
if (!(this.
|
|
617
|
+
if (!(this.p5s_1 === tmp0_other_with_cast.p5s_1))
|
|
618
618
|
return false;
|
|
619
619
|
return true;
|
|
620
620
|
};
|
|
621
621
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
622
|
-
return $this.
|
|
622
|
+
return $this.g5t_1.w();
|
|
623
623
|
}
|
|
624
624
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
625
625
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -661,13 +661,13 @@
|
|
|
661
661
|
Companion_instance_1 = this;
|
|
662
662
|
var tmp = this;
|
|
663
663
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
664
|
-
tmp.
|
|
664
|
+
tmp.g5t_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
665
665
|
}
|
|
666
|
-
protoOf(Companion_1).
|
|
666
|
+
protoOf(Companion_1).q4s = function () {
|
|
667
667
|
return _get_$cachedSerializer__te6jhj(this);
|
|
668
668
|
};
|
|
669
669
|
protoOf(Companion_1).g10 = function (typeParamsSerializers) {
|
|
670
|
-
return this.
|
|
670
|
+
return this.q4s();
|
|
671
671
|
};
|
|
672
672
|
var Companion_instance_1;
|
|
673
673
|
function Companion_getInstance_1() {
|
|
@@ -784,7 +784,7 @@
|
|
|
784
784
|
}
|
|
785
785
|
function Companion_2() {
|
|
786
786
|
}
|
|
787
|
-
protoOf(Companion_2).
|
|
787
|
+
protoOf(Companion_2).e5u = function (randomPoolProvider, logger) {
|
|
788
788
|
var tmp0_random = new SecureRandom(logger);
|
|
789
789
|
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
790
790
|
};
|
|
@@ -794,12 +794,12 @@
|
|
|
794
794
|
}
|
|
795
795
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
796
796
|
CoroutineImpl.call(this, resultContinuation);
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
797
|
+
this.n5u_1 = _this__u8e3s4;
|
|
798
|
+
this.o5u_1 = leftCardIndexForEachSuit;
|
|
799
|
+
this.p5u_1 = rightCardIndexForEachSuit;
|
|
800
|
+
this.q5u_1 = approximateRoundCountForGame;
|
|
801
|
+
this.r5u_1 = userData;
|
|
802
|
+
this.s5u_1 = provider;
|
|
803
803
|
}
|
|
804
804
|
protoOf($createNewShuffledCardDeckCOROUTINE$).z8 = function () {
|
|
805
805
|
var suspendResult = this.t8_1;
|
|
@@ -809,17 +809,17 @@
|
|
|
809
809
|
switch (tmp) {
|
|
810
810
|
case 0:
|
|
811
811
|
this.s8_1 = 4;
|
|
812
|
-
var tmp0 = this.
|
|
812
|
+
var tmp0 = this.s5u_1.p2_1;
|
|
813
813
|
if (tmp0 === 0) {
|
|
814
814
|
var tmp_0 = this;
|
|
815
|
-
var it = this.
|
|
816
|
-
tmp_0.
|
|
815
|
+
var it = this.n5u_1.h5t(this.o5u_1, this.p5u_1);
|
|
816
|
+
tmp_0.t5u_1 = this.n5u_1.l5t(it);
|
|
817
817
|
this.r8_1 = 3;
|
|
818
818
|
continue $sm;
|
|
819
819
|
} else {
|
|
820
820
|
if (tmp0 === 1) {
|
|
821
821
|
this.r8_1 = 2;
|
|
822
|
-
suspendResult = getRandomOrgCards(this.
|
|
822
|
+
suspendResult = getRandomOrgCards(this.n5u_1, this.o5u_1, this.p5u_1, this.q5u_1, this.r5u_1, false, this);
|
|
823
823
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
824
824
|
return suspendResult;
|
|
825
825
|
}
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
} else {
|
|
828
828
|
if (tmp0 === 2) {
|
|
829
829
|
this.r8_1 = 1;
|
|
830
|
-
suspendResult = getRandomOrgCards(this.
|
|
830
|
+
suspendResult = getRandomOrgCards(this.n5u_1, this.o5u_1, this.p5u_1, this.q5u_1, this.r5u_1, true, this);
|
|
831
831
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
832
832
|
return suspendResult;
|
|
833
833
|
}
|
|
@@ -841,15 +841,15 @@
|
|
|
841
841
|
|
|
842
842
|
break;
|
|
843
843
|
case 1:
|
|
844
|
-
this.
|
|
844
|
+
this.t5u_1 = suspendResult;
|
|
845
845
|
this.r8_1 = 3;
|
|
846
846
|
continue $sm;
|
|
847
847
|
case 2:
|
|
848
|
-
this.
|
|
848
|
+
this.t5u_1 = suspendResult;
|
|
849
849
|
this.r8_1 = 3;
|
|
850
850
|
continue $sm;
|
|
851
851
|
case 3:
|
|
852
|
-
return this.
|
|
852
|
+
return this.t5u_1;
|
|
853
853
|
case 4:
|
|
854
854
|
throw this.u8_1;
|
|
855
855
|
}
|
|
@@ -866,12 +866,12 @@
|
|
|
866
866
|
};
|
|
867
867
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
868
868
|
CoroutineImpl.call(this, resultContinuation);
|
|
869
|
-
this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
869
|
+
this.x5t_1 = _this__u8e3s4;
|
|
870
|
+
this.y5t_1 = leftCardIndexForEachSuit;
|
|
871
|
+
this.z5t_1 = rightCardIndexForEachSuit;
|
|
872
|
+
this.a5u_1 = approximateRoundsCount;
|
|
873
|
+
this.b5u_1 = userData;
|
|
874
|
+
this.c5u_1 = signed;
|
|
875
875
|
}
|
|
876
876
|
protoOf($getRandomOrgCardsCOROUTINE$).z8 = function () {
|
|
877
877
|
var suspendResult = this.t8_1;
|
|
@@ -881,11 +881,11 @@
|
|
|
881
881
|
switch (tmp) {
|
|
882
882
|
case 0:
|
|
883
883
|
this.s8_1 = 5;
|
|
884
|
-
var cardsCount = this.
|
|
885
|
-
var tmp0_$this = this.
|
|
884
|
+
var cardsCount = this.x5t_1.o5t(this.y5t_1, this.z5t_1);
|
|
885
|
+
var tmp0_$this = this.x5t_1.v5u_1;
|
|
886
886
|
var tmp1_max = cardsCount - 1 | 0;
|
|
887
887
|
this.r8_1 = 1;
|
|
888
|
-
suspendResult = tmp0_$this.
|
|
888
|
+
suspendResult = tmp0_$this.g5n(this.a5u_1, this.b5u_1, 0, tmp1_max, cardsCount, this.c5u_1, VOID, this);
|
|
889
889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
890
890
|
return suspendResult;
|
|
891
891
|
}
|
|
@@ -904,21 +904,21 @@
|
|
|
904
904
|
throwOnFailure(result);
|
|
905
905
|
var tmp_1 = _Result___get_value__impl__bjfvqg(result);
|
|
906
906
|
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
907
|
-
var this_0 = normalizeCards(this.
|
|
907
|
+
var this_0 = normalizeCards(this.x5t_1, tmp2_cards, this.y5t_1);
|
|
908
908
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
909
909
|
var _iterator__ex2g4s = this_0.l();
|
|
910
910
|
while (_iterator__ex2g4s.m()) {
|
|
911
911
|
var item = _iterator__ex2g4s.n();
|
|
912
|
-
destination.j(Companion_instance.
|
|
912
|
+
destination.j(Companion_instance.v5s(item));
|
|
913
913
|
}
|
|
914
|
-
tmp_0.
|
|
914
|
+
tmp_0.d5u_1 = destination;
|
|
915
915
|
this.r8_1 = 4;
|
|
916
916
|
continue $sm;
|
|
917
917
|
} else {
|
|
918
918
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
919
|
-
this.
|
|
919
|
+
this.x5t_1.w5u_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
920
920
|
this.r8_1 = 3;
|
|
921
|
-
suspendResult = this.
|
|
921
|
+
suspendResult = this.x5t_1.i5t(this.y5t_1, this.z5t_1, this.a5u_1, this.b5u_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
922
922
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
923
923
|
return suspendResult;
|
|
924
924
|
}
|
|
@@ -926,11 +926,11 @@
|
|
|
926
926
|
}
|
|
927
927
|
|
|
928
928
|
case 3:
|
|
929
|
-
this.
|
|
929
|
+
this.d5u_1 = suspendResult;
|
|
930
930
|
this.r8_1 = 4;
|
|
931
931
|
continue $sm;
|
|
932
932
|
case 4:
|
|
933
|
-
return this.
|
|
933
|
+
return this.d5u_1;
|
|
934
934
|
case 5:
|
|
935
935
|
throw this.u8_1;
|
|
936
936
|
}
|
|
@@ -946,11 +946,11 @@
|
|
|
946
946
|
while (true);
|
|
947
947
|
};
|
|
948
948
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
949
|
-
this.
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
949
|
+
this.u5u_1 = random;
|
|
950
|
+
this.v5u_1 = randomPoolProvider;
|
|
951
|
+
this.w5u_1 = logger;
|
|
952
952
|
}
|
|
953
|
-
protoOf(CardsDealerProviderImpl).
|
|
953
|
+
protoOf(CardsDealerProviderImpl).h5t = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
954
954
|
// Inline function 'kotlin.collections.flatMap' call
|
|
955
955
|
var tmp0 = get_entries();
|
|
956
956
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -959,7 +959,7 @@
|
|
|
959
959
|
while (_iterator__ex2g4s.m()) {
|
|
960
960
|
var element = _iterator__ex2g4s.n();
|
|
961
961
|
// Inline function 'kotlin.collections.map' call
|
|
962
|
-
var this_0 = this.
|
|
962
|
+
var this_0 = this.x5u(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
963
963
|
// Inline function 'kotlin.collections.mapTo' call
|
|
964
964
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
965
965
|
var inductionVariable = this_0.z_1;
|
|
@@ -969,7 +969,7 @@
|
|
|
969
969
|
var item = inductionVariable;
|
|
970
970
|
inductionVariable = inductionVariable + 1 | 0;
|
|
971
971
|
var it = item;
|
|
972
|
-
var tmp$ret$0 = Companion_instance.
|
|
972
|
+
var tmp$ret$0 = Companion_instance.t5s(element, it);
|
|
973
973
|
destination_0.j(tmp$ret$0);
|
|
974
974
|
}
|
|
975
975
|
while (!(item === last));
|
|
@@ -978,27 +978,27 @@
|
|
|
978
978
|
}
|
|
979
979
|
return destination;
|
|
980
980
|
};
|
|
981
|
-
protoOf(CardsDealerProviderImpl).
|
|
981
|
+
protoOf(CardsDealerProviderImpl).x5u = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
982
982
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
983
983
|
};
|
|
984
|
-
protoOf(CardsDealerProviderImpl).
|
|
984
|
+
protoOf(CardsDealerProviderImpl).o5t = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
985
985
|
// Inline function 'kotlin.collections.sumOf' call
|
|
986
986
|
var sum = 0;
|
|
987
987
|
var _iterator__ex2g4s = get_entries().l();
|
|
988
988
|
while (_iterator__ex2g4s.m()) {
|
|
989
989
|
var element = _iterator__ex2g4s.n();
|
|
990
990
|
var tmp = sum;
|
|
991
|
-
sum = tmp + count(this.
|
|
991
|
+
sum = tmp + count(this.x5u(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
992
992
|
}
|
|
993
993
|
return sum;
|
|
994
994
|
};
|
|
995
|
-
protoOf(CardsDealerProviderImpl).
|
|
995
|
+
protoOf(CardsDealerProviderImpl).i5t = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
996
996
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
997
997
|
tmp.t8_1 = Unit_instance;
|
|
998
998
|
tmp.u8_1 = null;
|
|
999
999
|
return tmp.z8();
|
|
1000
1000
|
};
|
|
1001
|
-
protoOf(CardsDealerProviderImpl).
|
|
1001
|
+
protoOf(CardsDealerProviderImpl).j5t = function (count, cards) {
|
|
1002
1002
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1003
1003
|
// Inline function 'kotlin.apply' call
|
|
1004
1004
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
1030
1030
|
while (_iterator__ex2g4s_0.m()) {
|
|
1031
1031
|
var element = _iterator__ex2g4s_0.n();
|
|
1032
|
-
if (element.
|
|
1032
|
+
if (element.s5s() === card.s5s()) {
|
|
1033
1033
|
tmp$ret$2 = true;
|
|
1034
1034
|
break $l$block_1;
|
|
1035
1035
|
}
|
|
@@ -1044,7 +1044,7 @@
|
|
|
1044
1044
|
}
|
|
1045
1045
|
return this_0;
|
|
1046
1046
|
};
|
|
1047
|
-
protoOf(CardsDealerProviderImpl).
|
|
1047
|
+
protoOf(CardsDealerProviderImpl).k5t = function (cards, times) {
|
|
1048
1048
|
// Inline function 'kotlin.let' call
|
|
1049
1049
|
var shuffled = toMutableList(cards);
|
|
1050
1050
|
var inductionVariable = 0;
|
|
@@ -1052,57 +1052,57 @@
|
|
|
1052
1052
|
do {
|
|
1053
1053
|
var i = inductionVariable;
|
|
1054
1054
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1055
|
-
shuffled = this.
|
|
1055
|
+
shuffled = this.u5u_1.l5s(shuffled);
|
|
1056
1056
|
}
|
|
1057
1057
|
while (inductionVariable < times);
|
|
1058
1058
|
return shuffled;
|
|
1059
1059
|
};
|
|
1060
|
-
protoOf(CardsDealerProviderImpl).
|
|
1061
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1060
|
+
protoOf(CardsDealerProviderImpl).m5t = function (cards, times) {
|
|
1061
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.u5u_1), times, this.u5u_1));
|
|
1062
1062
|
};
|
|
1063
1063
|
function Companion_3() {
|
|
1064
1064
|
}
|
|
1065
|
-
protoOf(Companion_3).
|
|
1065
|
+
protoOf(Companion_3).y5u = function () {
|
|
1066
1066
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1067
1067
|
// Inline function 'kotlin.apply' call
|
|
1068
1068
|
var this_0 = ArrayList_init_$Create$();
|
|
1069
|
-
this_0.r(listOf([Companion_instance.
|
|
1070
|
-
this_0.r(listOf([Companion_instance.
|
|
1071
|
-
this_0.r(listOf([Companion_instance.
|
|
1072
|
-
this_0.r(listOf([Companion_instance.
|
|
1073
|
-
this_0.r(listOf([Companion_instance.
|
|
1069
|
+
this_0.r(listOf([Companion_instance.u5s(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1070
|
+
this_0.r(listOf([Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.u5s(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.u5s(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.u5s(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1071
|
+
this_0.r(listOf([Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1072
|
+
this_0.r(listOf([Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.u5s(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1073
|
+
this_0.r(listOf([Companion_instance.u5s(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.u5s(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.u5s(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1074
1074
|
return this_0;
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(Companion_3).
|
|
1077
|
-
return listOf([Companion_instance.
|
|
1076
|
+
protoOf(Companion_3).z5u = function () {
|
|
1077
|
+
return listOf([Companion_instance.u5s(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.u5s(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.u5s(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1078
1078
|
};
|
|
1079
1079
|
var Companion_instance_3;
|
|
1080
1080
|
function Companion_getInstance_3() {
|
|
1081
1081
|
return Companion_instance_3;
|
|
1082
1082
|
}
|
|
1083
1083
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1084
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1085
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1086
|
-
this.
|
|
1087
|
-
this.
|
|
1084
|
+
cards = cards === VOID ? Companion_instance_3.y5u() : cards;
|
|
1085
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.z5u() : cardsForLot;
|
|
1086
|
+
this.a5v_1 = cards;
|
|
1087
|
+
this.b5v_1 = cardsForLot;
|
|
1088
1088
|
}
|
|
1089
|
-
protoOf(FakeCardsDealerProvider).
|
|
1090
|
-
return this.
|
|
1089
|
+
protoOf(FakeCardsDealerProvider).h5t = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1090
|
+
return this.a5v_1;
|
|
1091
1091
|
};
|
|
1092
|
-
protoOf(FakeCardsDealerProvider).
|
|
1093
|
-
return this.
|
|
1092
|
+
protoOf(FakeCardsDealerProvider).i5t = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1093
|
+
return this.a5v_1;
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(FakeCardsDealerProvider).
|
|
1096
|
-
return this.
|
|
1095
|
+
protoOf(FakeCardsDealerProvider).j5t = function (count, cards) {
|
|
1096
|
+
return this.b5v_1;
|
|
1097
1097
|
};
|
|
1098
|
-
protoOf(FakeCardsDealerProvider).
|
|
1098
|
+
protoOf(FakeCardsDealerProvider).k5t = function (cards, times) {
|
|
1099
1099
|
return cards;
|
|
1100
1100
|
};
|
|
1101
|
-
protoOf(FakeCardsDealerProvider).
|
|
1101
|
+
protoOf(FakeCardsDealerProvider).m5t = function (cards, times) {
|
|
1102
1102
|
return cards;
|
|
1103
1103
|
};
|
|
1104
|
-
protoOf(FakeCardsDealerProvider).
|
|
1105
|
-
return this.
|
|
1104
|
+
protoOf(FakeCardsDealerProvider).o5t = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1105
|
+
return this.a5v_1.o();
|
|
1106
1106
|
};
|
|
1107
1107
|
function CombinationsCheckerProvider() {
|
|
1108
1108
|
}
|
|
@@ -1129,16 +1129,16 @@
|
|
|
1129
1129
|
return takeLast(cards, longestCombinationSupport);
|
|
1130
1130
|
}
|
|
1131
1131
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1132
|
-
this.
|
|
1132
|
+
this.h5v_1 = function_0;
|
|
1133
1133
|
}
|
|
1134
1134
|
protoOf(sam$kotlin_Comparator$0).ec = function (a, b) {
|
|
1135
|
-
return this.
|
|
1135
|
+
return this.h5v_1(a, b);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1138
1138
|
return this.ec(a, b);
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(sam$kotlin_Comparator$0).a3 = function () {
|
|
1141
|
-
return this.
|
|
1141
|
+
return this.h5v_1;
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1144
1144
|
var tmp;
|
|
@@ -1160,13 +1160,13 @@
|
|
|
1160
1160
|
};
|
|
1161
1161
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1162
1162
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1163
|
-
var tmp = first_0(a).
|
|
1164
|
-
var tmp$ret$1 = first_0(b).
|
|
1163
|
+
var tmp = first_0(a).p5s_1;
|
|
1164
|
+
var tmp$ret$1 = first_0(b).p5s_1;
|
|
1165
1165
|
return compareValues(tmp, tmp$ret$1);
|
|
1166
1166
|
}
|
|
1167
1167
|
function CombinationsCheckerProviderImpl() {
|
|
1168
1168
|
}
|
|
1169
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1169
|
+
protoOf(CombinationsCheckerProviderImpl).c5v = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1170
1170
|
// Inline function 'kotlin.apply' call
|
|
1171
1171
|
var this_0 = toMutableList(cards);
|
|
1172
1172
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1176,7 +1176,7 @@
|
|
|
1176
1176
|
var _iterator__ex2g4s = this_0.l();
|
|
1177
1177
|
while (_iterator__ex2g4s.m()) {
|
|
1178
1178
|
var element = _iterator__ex2g4s.n();
|
|
1179
|
-
if (element.
|
|
1179
|
+
if (element.q5s()) {
|
|
1180
1180
|
destination.j(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.p(i);
|
|
1196
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1196
|
+
var isNextInRow = !(previousCard == null) && currentCard.p5s_1 === (previousCard.p5s_1 + 1 | 0) && currentCard.r5s().equals(previousCard.r5s());
|
|
1197
1197
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.t1(currentCard.q2());
|
|
1198
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1198
|
+
var passedSuitCheck = suit == null || currentCard.r5s().equals(suit);
|
|
1199
1199
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1200
1200
|
combinationCards.j(currentCard);
|
|
1201
1201
|
} else {
|
|
1202
1202
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1203
|
-
combinations.r(this.
|
|
1203
|
+
combinations.r(this.g5v(toMutableList(combinationCards), supportedCombinations));
|
|
1204
1204
|
}
|
|
1205
1205
|
combinationCards.h2();
|
|
1206
1206
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1210,11 +1210,11 @@
|
|
|
1210
1210
|
}
|
|
1211
1211
|
while (inductionVariable <= last);
|
|
1212
1212
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1213
|
-
combinations.r(this.
|
|
1213
|
+
combinations.r(this.g5v(toMutableList(combinationCards), supportedCombinations));
|
|
1214
1214
|
}
|
|
1215
1215
|
return combinations;
|
|
1216
1216
|
};
|
|
1217
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1217
|
+
protoOf(CombinationsCheckerProviderImpl).e5v = function (cards, cardsCount, includeCardNames) {
|
|
1218
1218
|
// Inline function 'kotlin.apply' call
|
|
1219
1219
|
var this_0 = toMutableList(cards);
|
|
1220
1220
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
var _iterator__ex2g4s = this_0.l();
|
|
1225
1225
|
while (_iterator__ex2g4s.m()) {
|
|
1226
1226
|
var element = _iterator__ex2g4s.n();
|
|
1227
|
-
if (element.
|
|
1227
|
+
if (element.q5s()) {
|
|
1228
1228
|
destination.j(element);
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
@@ -1245,7 +1245,7 @@
|
|
|
1245
1245
|
var _iterator__ex2g4s_1 = sortedByNumberCards.l();
|
|
1246
1246
|
while (_iterator__ex2g4s_1.m()) {
|
|
1247
1247
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
1248
|
-
var key = element_1.
|
|
1248
|
+
var key = element_1.s5s();
|
|
1249
1249
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1250
1250
|
var value = destination_1.b2(key);
|
|
1251
1251
|
var tmp;
|
|
@@ -1282,7 +1282,7 @@
|
|
|
1282
1282
|
}
|
|
1283
1283
|
return destination_3;
|
|
1284
1284
|
};
|
|
1285
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1285
|
+
protoOf(CombinationsCheckerProviderImpl).g5v = function (cards, supportedCombinations) {
|
|
1286
1286
|
// Inline function 'kotlin.collections.minOf' call
|
|
1287
1287
|
var iterator = supportedCombinations.l();
|
|
1288
1288
|
if (!iterator.m())
|
|
@@ -1312,28 +1312,28 @@
|
|
|
1312
1312
|
function DealerReducer() {
|
|
1313
1313
|
}
|
|
1314
1314
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1315
|
+
this.l5v_1 = logger;
|
|
1316
|
+
this.m5v_1 = enableLogs;
|
|
1317
1317
|
}
|
|
1318
|
-
protoOf(DealerReducerImpl).
|
|
1318
|
+
protoOf(DealerReducerImpl).i5v = function (cards, cardsToRemove) {
|
|
1319
1319
|
var list = cards;
|
|
1320
1320
|
var _iterator__ex2g4s = cardsToRemove.l();
|
|
1321
1321
|
while (_iterator__ex2g4s.m()) {
|
|
1322
1322
|
var gameCard = _iterator__ex2g4s.n();
|
|
1323
|
-
list = this.
|
|
1323
|
+
list = this.j5v(list, gameCard);
|
|
1324
1324
|
}
|
|
1325
1325
|
return list;
|
|
1326
1326
|
};
|
|
1327
|
-
protoOf(DealerReducerImpl).
|
|
1327
|
+
protoOf(DealerReducerImpl).j5v = function (cards, cardToRemove) {
|
|
1328
1328
|
var tmp;
|
|
1329
|
-
if (!cardToRemove.
|
|
1330
|
-
if (this.
|
|
1331
|
-
this.
|
|
1329
|
+
if (!cardToRemove.x5s() && cards.t1(cardToRemove)) {
|
|
1330
|
+
if (this.m5v_1) {
|
|
1331
|
+
this.l5v_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1332
1332
|
}
|
|
1333
1333
|
tmp = minus(cards, cardToRemove);
|
|
1334
1334
|
} else {
|
|
1335
|
-
if (this.
|
|
1336
|
-
this.
|
|
1335
|
+
if (this.m5v_1) {
|
|
1336
|
+
this.l5v_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1337
1337
|
}
|
|
1338
1338
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1339
1339
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1341,7 +1341,7 @@
|
|
|
1341
1341
|
var _iterator__ex2g4s = cards.l();
|
|
1342
1342
|
while (_iterator__ex2g4s.m()) {
|
|
1343
1343
|
var element = _iterator__ex2g4s.n();
|
|
1344
|
-
if (!element.
|
|
1344
|
+
if (!element.x5s()) {
|
|
1345
1345
|
destination.j(element);
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
@@ -1352,34 +1352,34 @@
|
|
|
1352
1352
|
var _iterator__ex2g4s_0 = cards.l();
|
|
1353
1353
|
while (_iterator__ex2g4s_0.m()) {
|
|
1354
1354
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1355
|
-
if (element_0.
|
|
1355
|
+
if (element_0.x5s()) {
|
|
1356
1356
|
destination_0.j(element_0);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
var hiddenCards = destination_0;
|
|
1360
1360
|
if (hiddenCards.q()) {
|
|
1361
|
-
this.
|
|
1361
|
+
this.l5v_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1362
1362
|
}
|
|
1363
1363
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1364
1364
|
}
|
|
1365
1365
|
return tmp;
|
|
1366
1366
|
};
|
|
1367
|
-
protoOf(DealerReducerImpl).
|
|
1368
|
-
if (this.
|
|
1369
|
-
this.
|
|
1367
|
+
protoOf(DealerReducerImpl).k5v = function (cards, cardToAdd) {
|
|
1368
|
+
if (this.m5v_1) {
|
|
1369
|
+
this.l5v_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
|
|
1370
1370
|
}
|
|
1371
1371
|
if (cards.t1(cardToAdd)) {
|
|
1372
|
-
this.
|
|
1372
|
+
this.l5v_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1373
1373
|
}
|
|
1374
1374
|
return plus_0(cards, cardToAdd);
|
|
1375
1375
|
};
|
|
1376
1376
|
//region block: post-declaration
|
|
1377
|
-
protoOf(CardsDealerProviderImpl).
|
|
1378
|
-
protoOf(CardsDealerProviderImpl).
|
|
1379
|
-
protoOf(FakeCardsDealerProvider).
|
|
1380
|
-
protoOf(FakeCardsDealerProvider).
|
|
1381
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1382
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1377
|
+
protoOf(CardsDealerProviderImpl).l5t = standardShuffledCards$default;
|
|
1378
|
+
protoOf(CardsDealerProviderImpl).n5t = realLifeShuffledCards$default;
|
|
1379
|
+
protoOf(FakeCardsDealerProvider).l5t = standardShuffledCards$default;
|
|
1380
|
+
protoOf(FakeCardsDealerProvider).n5t = realLifeShuffledCards$default;
|
|
1381
|
+
protoOf(CombinationsCheckerProviderImpl).d5v = findCardsInRowCombinations$default;
|
|
1382
|
+
protoOf(CombinationsCheckerProviderImpl).f5v = findSameCardsNumberCombinations$default;
|
|
1383
1383
|
//endregion
|
|
1384
1384
|
//region block: init
|
|
1385
1385
|
CoreConfig_instance = new CoreConfig();
|