client_plugin_logic_deb 1.8.304 → 1.8.305
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1377 -1377
- package/Logic_Debertz-client_plugin.d.ts +3 -3
- package/Logic_Debertz-client_plugin.js +2987 -2987
- package/Logic_Debertz-core.js +1732 -1732
- package/Logic_Debertz-engine.js +16154 -16048
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +7860 -7860
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1033 -958
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +1554 -1708
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +316 -316
- package/kotlinx-serialization-kotlinx-serialization-core.js +1801 -1801
- package/kotlinx-serialization-kotlinx-serialization-json.js +1328 -1328
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1536 -1536
- package/ktor-ktor-client-logging.js +287 -287
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +599 -599
- package/ktor-ktor-io.js +1256 -1256
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +139 -139
- package/ktor-ktor-serialization.js +65 -65
- package/ktor-ktor-utils.js +498 -498
- package/ktor-ktor-websockets.js +41 -41
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +201 -195
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +881 -908
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +11 -11
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
var lazy = kotlin_kotlin.$_$.ph;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
43
43
|
var initMetadataForInterface = kotlin_kotlin.$_$.xb;
|
|
44
|
-
var until = kotlin_kotlin.$_$.ld;
|
|
45
44
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
46
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
47
46
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
48
47
|
var CoroutineImpl = kotlin_kotlin.$_$.wa;
|
|
49
48
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha;
|
|
50
49
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.wb;
|
|
51
|
-
var count = kotlin_kotlin.$_$.j7;
|
|
52
50
|
var Result = kotlin_kotlin.$_$.rg;
|
|
53
51
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.g3;
|
|
54
52
|
var throwOnFailure = kotlin_kotlin.$_$.vh;
|
|
55
53
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.j3;
|
|
56
54
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.i3;
|
|
57
55
|
var addAll = kotlin_kotlin.$_$.g6;
|
|
56
|
+
var until = kotlin_kotlin.$_$.ld;
|
|
57
|
+
var count = kotlin_kotlin.$_$.j7;
|
|
58
58
|
var Collection = kotlin_kotlin.$_$.r5;
|
|
59
59
|
var isInterface = kotlin_kotlin.$_$.ic;
|
|
60
60
|
var toMutableList = kotlin_kotlin.$_$.x9;
|
|
@@ -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.q6a(cards, times) : $super.q6a.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.s6a(cards, times) : $super.s6a.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.q6c(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.q6c.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.s6c(cards, cardsCount, includeCardNames) : $super.s6c.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]);
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
|
|
128
128
|
//endregion
|
|
129
129
|
function CoreConfig() {
|
|
130
|
-
this.version = '0.0.
|
|
130
|
+
this.version = '0.0.44';
|
|
131
131
|
}
|
|
132
|
-
protoOf(CoreConfig).
|
|
132
|
+
protoOf(CoreConfig).x32 = function () {
|
|
133
133
|
return this.version;
|
|
134
134
|
};
|
|
135
135
|
var CoreConfig_instance;
|
|
@@ -138,33 +138,33 @@
|
|
|
138
138
|
}
|
|
139
139
|
function CardIndexComparator() {
|
|
140
140
|
}
|
|
141
|
-
protoOf(CardIndexComparator).
|
|
142
|
-
return a.
|
|
141
|
+
protoOf(CardIndexComparator).u69 = function (a, b) {
|
|
142
|
+
return a.v69_1 - b.v69_1 | 0;
|
|
143
143
|
};
|
|
144
144
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
145
145
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
146
|
-
return this.
|
|
146
|
+
return this.u69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
147
147
|
};
|
|
148
148
|
var CardIndexComparator_instance;
|
|
149
149
|
function CardIndexComparator_getInstance() {
|
|
150
150
|
return CardIndexComparator_instance;
|
|
151
151
|
}
|
|
152
152
|
function CardSuitSortingComparator(suit) {
|
|
153
|
-
this.
|
|
153
|
+
this.w69_1 = suit;
|
|
154
154
|
}
|
|
155
|
-
protoOf(CardSuitSortingComparator).
|
|
156
|
-
if (!a.
|
|
155
|
+
protoOf(CardSuitSortingComparator).u69 = function (a, b) {
|
|
156
|
+
if (!a.x69() || !b.x69()) {
|
|
157
157
|
return 0;
|
|
158
158
|
}
|
|
159
|
-
var suitIndexL = this.
|
|
160
|
-
var suitIndexR = this.
|
|
161
|
-
var sortedNumberL = imul(suitIndexL, 13) + a.
|
|
162
|
-
var sortedNumberR = imul(suitIndexR, 13) + b.
|
|
159
|
+
var suitIndexL = this.w69_1.u1(a.y69());
|
|
160
|
+
var suitIndexR = this.w69_1.u1(b.y69());
|
|
161
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.z69() | 0;
|
|
162
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.z69() | 0;
|
|
163
163
|
return sortedNumberL - sortedNumberR | 0;
|
|
164
164
|
};
|
|
165
165
|
protoOf(CardSuitSortingComparator).compare = function (a, b) {
|
|
166
166
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
167
|
-
return this.
|
|
167
|
+
return this.u69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
168
168
|
};
|
|
169
169
|
function filterByCardName(_this__u8e3s4, name) {
|
|
170
170
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
}
|
|
183
183
|
function CardNumberComparator() {
|
|
184
184
|
}
|
|
185
|
-
protoOf(CardNumberComparator).
|
|
186
|
-
return b.
|
|
185
|
+
protoOf(CardNumberComparator).u69 = function (a, b) {
|
|
186
|
+
return b.z69() - a.z69() | 0;
|
|
187
187
|
};
|
|
188
188
|
protoOf(CardNumberComparator).compare = function (a, b) {
|
|
189
189
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
190
|
-
return this.
|
|
190
|
+
return this.u69(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
191
191
|
};
|
|
192
192
|
var CardNumberComparator_instance;
|
|
193
193
|
function CardNumberComparator_getInstance() {
|
|
@@ -315,16 +315,16 @@
|
|
|
315
315
|
}
|
|
316
316
|
function Companion() {
|
|
317
317
|
}
|
|
318
|
-
protoOf(Companion).
|
|
318
|
+
protoOf(Companion).a6a = function (suit, number) {
|
|
319
319
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
320
320
|
};
|
|
321
|
-
protoOf(Companion).
|
|
321
|
+
protoOf(Companion).b6a = function (suit, cardNumber) {
|
|
322
322
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
323
323
|
};
|
|
324
|
-
protoOf(Companion).
|
|
324
|
+
protoOf(Companion).c6a = function (index) {
|
|
325
325
|
return new GameCard(index);
|
|
326
326
|
};
|
|
327
|
-
protoOf(Companion).
|
|
327
|
+
protoOf(Companion).d6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
328
328
|
var tmp;
|
|
329
329
|
if (previousStubCardWithMaxIndex == null) {
|
|
330
330
|
tmp = null;
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
// Inline function 'kotlin.contracts.contract' call
|
|
334
334
|
var tmp_0;
|
|
335
335
|
// Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
|
|
336
|
-
if (previousStubCardWithMaxIndex.
|
|
336
|
+
if (previousStubCardWithMaxIndex.e6a()) {
|
|
337
337
|
tmp_0 = previousStubCardWithMaxIndex;
|
|
338
338
|
} else {
|
|
339
339
|
tmp_0 = null;
|
|
@@ -341,8 +341,8 @@
|
|
|
341
341
|
tmp = tmp_0;
|
|
342
342
|
}
|
|
343
343
|
var tmp3_safe_receiver = tmp;
|
|
344
|
-
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
345
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.
|
|
344
|
+
var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.v69_1;
|
|
345
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.k6a(tmp4_safe_receiver, playerIndex, reverse);
|
|
346
346
|
var tmp_1;
|
|
347
347
|
if (tmp5_safe_receiver == null) {
|
|
348
348
|
tmp_1 = null;
|
|
@@ -363,10 +363,10 @@
|
|
|
363
363
|
var index = tmp_2;
|
|
364
364
|
return new GameCard(index);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).l6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
|
|
367
367
|
previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
|
|
368
368
|
reverse = reverse === VOID ? false : reverse;
|
|
369
|
-
return $super === VOID ? this.
|
|
369
|
+
return $super === VOID ? this.d6a(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.d6a.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
370
370
|
};
|
|
371
371
|
var Companion_instance;
|
|
372
372
|
function Companion_getInstance() {
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
return tmp;
|
|
471
471
|
}
|
|
472
472
|
function _get_isShirt__vd98rp($this) {
|
|
473
|
-
return $this.
|
|
473
|
+
return $this.v69_1 >= 150 && $this.v69_1 <= 202;
|
|
474
474
|
}
|
|
475
475
|
function CardName(name, ordinal) {
|
|
476
476
|
Enum.call(this, name, ordinal);
|
|
@@ -479,13 +479,13 @@
|
|
|
479
479
|
return getShortName(this);
|
|
480
480
|
};
|
|
481
481
|
function Companion_0() {
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
482
|
+
this.f6a_1 = -1;
|
|
483
|
+
this.g6a_1 = 13;
|
|
484
|
+
this.h6a_1 = 52;
|
|
485
|
+
this.i6a_1 = 150;
|
|
486
|
+
this.j6a_1 = 53;
|
|
487
487
|
}
|
|
488
|
-
protoOf(Companion_0).
|
|
488
|
+
protoOf(Companion_0).k6a = function (_this__u8e3s4, playerIndex, reverse) {
|
|
489
489
|
var tmp;
|
|
490
490
|
if (reverse) {
|
|
491
491
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -555,59 +555,59 @@
|
|
|
555
555
|
return CardName_STUB_instance;
|
|
556
556
|
}
|
|
557
557
|
function GameCard(index) {
|
|
558
|
-
this.
|
|
558
|
+
this.v69_1 = index;
|
|
559
559
|
}
|
|
560
|
-
protoOf(GameCard).
|
|
560
|
+
protoOf(GameCard).y69 = function () {
|
|
561
561
|
var tmp;
|
|
562
|
-
var containsArg = this.
|
|
562
|
+
var containsArg = this.v69_1;
|
|
563
563
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
564
564
|
tmp = Suit_DIAMOND_getInstance();
|
|
565
565
|
} else {
|
|
566
|
-
if (this.
|
|
566
|
+
if (this.v69_1 <= 26) {
|
|
567
567
|
tmp = Suit_SPADE_getInstance();
|
|
568
568
|
} else {
|
|
569
|
-
if (this.
|
|
569
|
+
if (this.v69_1 <= 39) {
|
|
570
570
|
tmp = Suit_HEART_getInstance();
|
|
571
571
|
} else {
|
|
572
|
-
if (this.
|
|
572
|
+
if (this.v69_1 <= 52) {
|
|
573
573
|
tmp = Suit_CLUB_getInstance();
|
|
574
574
|
} else {
|
|
575
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
575
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.v69_1);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
return tmp;
|
|
581
581
|
};
|
|
582
|
-
protoOf(GameCard).
|
|
582
|
+
protoOf(GameCard).z69 = function () {
|
|
583
583
|
var tmp;
|
|
584
|
-
if (this.
|
|
584
|
+
if (this.e6a()) {
|
|
585
585
|
tmp = -1;
|
|
586
586
|
} else {
|
|
587
|
-
tmp = this.
|
|
587
|
+
tmp = this.v69_1 - imul(13, getIndex(this.y69())) | 0;
|
|
588
588
|
}
|
|
589
589
|
return tmp;
|
|
590
590
|
};
|
|
591
591
|
protoOf(GameCard).p2 = function () {
|
|
592
|
-
return this.
|
|
592
|
+
return this.e6a() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.z69());
|
|
593
593
|
};
|
|
594
|
-
protoOf(GameCard).
|
|
595
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
594
|
+
protoOf(GameCard).x69 = function () {
|
|
595
|
+
return !_get_isShirt__vd98rp(this) && !this.e6a();
|
|
596
596
|
};
|
|
597
|
-
protoOf(GameCard).
|
|
598
|
-
return this.
|
|
597
|
+
protoOf(GameCard).e6a = function () {
|
|
598
|
+
return this.v69_1 >= 53 && this.v69_1 <= 105;
|
|
599
599
|
};
|
|
600
600
|
protoOf(GameCard).toString = function () {
|
|
601
601
|
if (_get_isShirt__vd98rp(this)) {
|
|
602
602
|
return 'GameCard(SHIRT)';
|
|
603
603
|
}
|
|
604
|
-
if (this.
|
|
605
|
-
return 'GameCard(STUB, ' + this.
|
|
604
|
+
if (this.e6a()) {
|
|
605
|
+
return 'GameCard(STUB, ' + this.v69_1 + ')';
|
|
606
606
|
}
|
|
607
|
-
return 'GameCard(' + this.
|
|
607
|
+
return 'GameCard(' + this.y69().toString() + this.p2().toString() + ', ' + this.v69_1 + ')';
|
|
608
608
|
};
|
|
609
609
|
protoOf(GameCard).hashCode = function () {
|
|
610
|
-
return this.
|
|
610
|
+
return this.v69_1;
|
|
611
611
|
};
|
|
612
612
|
protoOf(GameCard).equals = function (other) {
|
|
613
613
|
if (this === other)
|
|
@@ -615,12 +615,12 @@
|
|
|
615
615
|
if (!(other instanceof GameCard))
|
|
616
616
|
return false;
|
|
617
617
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
618
|
-
if (!(this.
|
|
618
|
+
if (!(this.v69_1 === tmp0_other_with_cast.v69_1))
|
|
619
619
|
return false;
|
|
620
620
|
return true;
|
|
621
621
|
};
|
|
622
622
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
623
|
-
return $this.
|
|
623
|
+
return $this.m6a_1.u();
|
|
624
624
|
}
|
|
625
625
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
626
626
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -662,13 +662,13 @@
|
|
|
662
662
|
Companion_instance_1 = this;
|
|
663
663
|
var tmp = this;
|
|
664
664
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
665
|
-
tmp.
|
|
665
|
+
tmp.m6a_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
666
666
|
}
|
|
667
|
-
protoOf(Companion_1).
|
|
667
|
+
protoOf(Companion_1).g50 = function () {
|
|
668
668
|
return _get_$cachedSerializer__te6jhj(this);
|
|
669
669
|
};
|
|
670
|
-
protoOf(Companion_1).
|
|
671
|
-
return this.
|
|
670
|
+
protoOf(Companion_1).d4k = function (typeParamsSerializers) {
|
|
671
|
+
return this.g50();
|
|
672
672
|
};
|
|
673
673
|
var Companion_instance_1;
|
|
674
674
|
function Companion_getInstance_1() {
|
|
@@ -761,9 +761,6 @@
|
|
|
761
761
|
}
|
|
762
762
|
function CardsDealerProvider() {
|
|
763
763
|
}
|
|
764
|
-
function getCardsRange($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
765
|
-
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
766
|
-
}
|
|
767
764
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
768
765
|
var tmp = new $getRandomOrgCardsCOROUTINE$1($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
769
766
|
tmp.h9_1 = Unit_instance;
|
|
@@ -789,7 +786,7 @@
|
|
|
789
786
|
}
|
|
790
787
|
function Companion_2() {
|
|
791
788
|
}
|
|
792
|
-
protoOf(Companion_2).
|
|
789
|
+
protoOf(Companion_2).q6b = function (randomPoolProvider, logger) {
|
|
793
790
|
var tmp17_random = new SecureRandom(logger);
|
|
794
791
|
return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
|
|
795
792
|
};
|
|
@@ -799,12 +796,12 @@
|
|
|
799
796
|
}
|
|
800
797
|
function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
801
798
|
CoroutineImpl.call(this, resultContinuation);
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
805
|
-
this.
|
|
806
|
-
this.
|
|
807
|
-
this.
|
|
799
|
+
this.z6b_1 = _this__u8e3s4;
|
|
800
|
+
this.a6c_1 = leftCardIndexForEachSuit;
|
|
801
|
+
this.b6c_1 = rightCardIndexForEachSuit;
|
|
802
|
+
this.c6c_1 = approximateRoundCountForGame;
|
|
803
|
+
this.d6c_1 = userData;
|
|
804
|
+
this.e6c_1 = provider;
|
|
808
805
|
}
|
|
809
806
|
protoOf($createNewShuffledCardDeckCOROUTINE$0).n9 = function () {
|
|
810
807
|
var suspendResult = this.h9_1;
|
|
@@ -814,26 +811,26 @@
|
|
|
814
811
|
switch (tmp) {
|
|
815
812
|
case 0:
|
|
816
813
|
this.g9_1 = 4;
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
if (this.
|
|
814
|
+
this.f6c_1 = this.e6c_1;
|
|
815
|
+
this.g6c_1 = this.f6c_1.o2_1;
|
|
816
|
+
if (this.g6c_1 === 0) {
|
|
820
817
|
var tmp_0 = this;
|
|
821
|
-
var it = this.
|
|
822
|
-
tmp_0.
|
|
818
|
+
var it = this.z6b_1.n6a(this.a6c_1, this.b6c_1);
|
|
819
|
+
tmp_0.h6c_1 = this.z6b_1.r6a(it);
|
|
823
820
|
this.f9_1 = 3;
|
|
824
821
|
continue $sm;
|
|
825
822
|
} else {
|
|
826
|
-
if (this.
|
|
823
|
+
if (this.g6c_1 === 1) {
|
|
827
824
|
this.f9_1 = 2;
|
|
828
|
-
suspendResult = getRandomOrgCards(this.
|
|
825
|
+
suspendResult = getRandomOrgCards(this.z6b_1, this.a6c_1, this.b6c_1, this.c6c_1, this.d6c_1, false, this);
|
|
829
826
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
830
827
|
return suspendResult;
|
|
831
828
|
}
|
|
832
829
|
continue $sm;
|
|
833
830
|
} else {
|
|
834
|
-
if (this.
|
|
831
|
+
if (this.g6c_1 === 2) {
|
|
835
832
|
this.f9_1 = 1;
|
|
836
|
-
suspendResult = getRandomOrgCards(this.
|
|
833
|
+
suspendResult = getRandomOrgCards(this.z6b_1, this.a6c_1, this.b6c_1, this.c6c_1, this.d6c_1, true, this);
|
|
837
834
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
838
835
|
return suspendResult;
|
|
839
836
|
}
|
|
@@ -847,15 +844,15 @@
|
|
|
847
844
|
|
|
848
845
|
break;
|
|
849
846
|
case 1:
|
|
850
|
-
this.
|
|
847
|
+
this.h6c_1 = suspendResult;
|
|
851
848
|
this.f9_1 = 3;
|
|
852
849
|
continue $sm;
|
|
853
850
|
case 2:
|
|
854
|
-
this.
|
|
851
|
+
this.h6c_1 = suspendResult;
|
|
855
852
|
this.f9_1 = 3;
|
|
856
853
|
continue $sm;
|
|
857
854
|
case 3:
|
|
858
|
-
return this.
|
|
855
|
+
return this.h6c_1;
|
|
859
856
|
case 4:
|
|
860
857
|
throw this.i9_1;
|
|
861
858
|
}
|
|
@@ -872,12 +869,12 @@
|
|
|
872
869
|
};
|
|
873
870
|
function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
874
871
|
CoroutineImpl.call(this, resultContinuation);
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
878
|
-
this.
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
872
|
+
this.d6b_1 = _this__u8e3s4;
|
|
873
|
+
this.e6b_1 = leftCardIndexForEachSuit;
|
|
874
|
+
this.f6b_1 = rightCardIndexForEachSuit;
|
|
875
|
+
this.g6b_1 = approximateRoundsCount;
|
|
876
|
+
this.h6b_1 = userData;
|
|
877
|
+
this.i6b_1 = signed;
|
|
881
878
|
}
|
|
882
879
|
protoOf($getRandomOrgCardsCOROUTINE$1).n9 = function () {
|
|
883
880
|
var suspendResult = this.h9_1;
|
|
@@ -887,20 +884,11 @@
|
|
|
887
884
|
switch (tmp) {
|
|
888
885
|
case 0:
|
|
889
886
|
this.g9_1 = 5;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
while (tmp0_iterator.k()) {
|
|
894
|
-
var element = tmp0_iterator.l();
|
|
895
|
-
var tmp_1 = sum;
|
|
896
|
-
sum = tmp_1 + count(getCardsRange(this.p6b_1, this.q6b_1, this.r6b_1)) | 0;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
tmp_0.v6b_1 = sum;
|
|
900
|
-
this.w6b_1 = this.p6b_1.v6c_1;
|
|
901
|
-
this.x6b_1 = this.v6b_1 - 1 | 0;
|
|
887
|
+
this.j6b_1 = this.d6b_1.u6a(this.e6b_1, this.f6b_1);
|
|
888
|
+
this.k6b_1 = this.d6b_1.j6c_1;
|
|
889
|
+
this.l6b_1 = this.j6b_1 - 1 | 0;
|
|
902
890
|
this.f9_1 = 1;
|
|
903
|
-
suspendResult = this.
|
|
891
|
+
suspendResult = this.k6b_1.m5u(this.g6b_1, this.h6b_1, 0, this.l6b_1, this.j6b_1, this.i6b_1, VOID, this);
|
|
904
892
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
905
893
|
return suspendResult;
|
|
906
894
|
}
|
|
@@ -908,34 +896,34 @@
|
|
|
908
896
|
this.f9_1 = 2;
|
|
909
897
|
continue $sm;
|
|
910
898
|
case 1:
|
|
911
|
-
this.
|
|
912
|
-
suspendResult = new Result(this.
|
|
899
|
+
this.m6b_1 = suspendResult.ek_1;
|
|
900
|
+
suspendResult = new Result(this.m6b_1);
|
|
913
901
|
this.f9_1 = 2;
|
|
914
902
|
continue $sm;
|
|
915
903
|
case 2:
|
|
916
|
-
this.
|
|
917
|
-
if (_Result___get_isSuccess__impl__sndoy8(this.
|
|
918
|
-
var
|
|
919
|
-
var this_0 = this.
|
|
904
|
+
this.n6b_1 = suspendResult.ek_1;
|
|
905
|
+
if (_Result___get_isSuccess__impl__sndoy8(this.n6b_1)) {
|
|
906
|
+
var tmp_0 = this;
|
|
907
|
+
var this_0 = this.n6b_1;
|
|
920
908
|
throwOnFailure(this_0);
|
|
921
|
-
var
|
|
922
|
-
var tmp14_cards = ((
|
|
923
|
-
var this_1 = normalizeCards(this.
|
|
909
|
+
var tmp_1 = _Result___get_value__impl__bjfvqg(this_0);
|
|
910
|
+
var tmp14_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
911
|
+
var this_1 = normalizeCards(this.d6b_1, tmp14_cards, this.e6b_1);
|
|
924
912
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
925
|
-
var
|
|
926
|
-
while (
|
|
927
|
-
var item =
|
|
928
|
-
destination.e(Companion_instance.
|
|
913
|
+
var tmp0_iterator = this_1.j();
|
|
914
|
+
while (tmp0_iterator.k()) {
|
|
915
|
+
var item = tmp0_iterator.l();
|
|
916
|
+
destination.e(Companion_instance.c6a(item));
|
|
929
917
|
}
|
|
930
|
-
|
|
918
|
+
tmp_0.o6b_1 = destination;
|
|
931
919
|
this.f9_1 = 4;
|
|
932
920
|
continue $sm;
|
|
933
921
|
} else {
|
|
934
|
-
this.
|
|
935
|
-
var tmp15_safe_receiver = this.
|
|
936
|
-
this.
|
|
922
|
+
this.p6b_1 = Result__exceptionOrNull_impl_p6xea9(this.n6b_1);
|
|
923
|
+
var tmp15_safe_receiver = this.p6b_1;
|
|
924
|
+
this.d6b_1.k6c_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.p6b_1);
|
|
937
925
|
this.f9_1 = 3;
|
|
938
|
-
suspendResult = this.
|
|
926
|
+
suspendResult = this.d6b_1.o6a(this.e6b_1, this.f6b_1, this.g6b_1, this.h6b_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
939
927
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
940
928
|
return suspendResult;
|
|
941
929
|
}
|
|
@@ -943,11 +931,11 @@
|
|
|
943
931
|
}
|
|
944
932
|
|
|
945
933
|
case 3:
|
|
946
|
-
this.
|
|
934
|
+
this.o6b_1 = suspendResult;
|
|
947
935
|
this.f9_1 = 4;
|
|
948
936
|
continue $sm;
|
|
949
937
|
case 4:
|
|
950
|
-
return this.
|
|
938
|
+
return this.o6b_1;
|
|
951
939
|
case 5:
|
|
952
940
|
throw this.i9_1;
|
|
953
941
|
}
|
|
@@ -963,11 +951,11 @@
|
|
|
963
951
|
while (true);
|
|
964
952
|
};
|
|
965
953
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
966
|
-
this.
|
|
967
|
-
this.
|
|
968
|
-
this.
|
|
954
|
+
this.i6c_1 = random;
|
|
955
|
+
this.j6c_1 = randomPoolProvider;
|
|
956
|
+
this.k6c_1 = logger;
|
|
969
957
|
}
|
|
970
|
-
protoOf(CardsDealerProviderImpl).
|
|
958
|
+
protoOf(CardsDealerProviderImpl).n6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
971
959
|
// Inline function 'kotlin.collections.flatMap' call
|
|
972
960
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
973
961
|
var this_0 = get_entries();
|
|
@@ -977,7 +965,7 @@
|
|
|
977
965
|
var element = tmp0_iterator.l();
|
|
978
966
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>' call
|
|
979
967
|
// Inline function 'kotlin.collections.map' call
|
|
980
|
-
var this_1 =
|
|
968
|
+
var this_1 = this.l6c(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
981
969
|
// Inline function 'kotlin.collections.mapTo' call
|
|
982
970
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
983
971
|
var inductionVariable = this_1.a1_1;
|
|
@@ -988,7 +976,7 @@
|
|
|
988
976
|
inductionVariable = inductionVariable + 1 | 0;
|
|
989
977
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
|
|
990
978
|
var it = item;
|
|
991
|
-
var tmp$ret$0 = Companion_instance.
|
|
979
|
+
var tmp$ret$0 = Companion_instance.a6a(element, it);
|
|
992
980
|
destination_0.e(tmp$ret$0);
|
|
993
981
|
}
|
|
994
982
|
while (!(item === last));
|
|
@@ -997,13 +985,28 @@
|
|
|
997
985
|
}
|
|
998
986
|
return destination;
|
|
999
987
|
};
|
|
1000
|
-
protoOf(CardsDealerProviderImpl).
|
|
988
|
+
protoOf(CardsDealerProviderImpl).l6c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
989
|
+
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
990
|
+
};
|
|
991
|
+
protoOf(CardsDealerProviderImpl).u6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
992
|
+
// Inline function 'kotlin.collections.sumOf' call
|
|
993
|
+
var sum = 0;
|
|
994
|
+
var tmp0_iterator = get_entries().j();
|
|
995
|
+
while (tmp0_iterator.k()) {
|
|
996
|
+
var element = tmp0_iterator.l();
|
|
997
|
+
var tmp = sum;
|
|
998
|
+
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getCardsCount.<anonymous>' call
|
|
999
|
+
sum = tmp + count(this.l6c(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
1000
|
+
}
|
|
1001
|
+
return sum;
|
|
1002
|
+
};
|
|
1003
|
+
protoOf(CardsDealerProviderImpl).o6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1001
1004
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
1002
1005
|
tmp.h9_1 = Unit_instance;
|
|
1003
1006
|
tmp.i9_1 = null;
|
|
1004
1007
|
return tmp.n9();
|
|
1005
1008
|
};
|
|
1006
|
-
protoOf(CardsDealerProviderImpl).
|
|
1009
|
+
protoOf(CardsDealerProviderImpl).p6a = function (count, cards) {
|
|
1007
1010
|
// Inline function 'kotlin.apply' call
|
|
1008
1011
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1009
1012
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1037,7 +1040,7 @@
|
|
|
1037
1040
|
while (tmp0_iterator.k()) {
|
|
1038
1041
|
var element = tmp0_iterator.l();
|
|
1039
1042
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
|
|
1040
|
-
if (element.
|
|
1043
|
+
if (element.z69() === card.z69()) {
|
|
1041
1044
|
tmp$ret$2 = true;
|
|
1042
1045
|
break $l$block_1;
|
|
1043
1046
|
}
|
|
@@ -1052,7 +1055,7 @@
|
|
|
1052
1055
|
}
|
|
1053
1056
|
return this_0;
|
|
1054
1057
|
};
|
|
1055
|
-
protoOf(CardsDealerProviderImpl).
|
|
1058
|
+
protoOf(CardsDealerProviderImpl).q6a = function (cards, times) {
|
|
1056
1059
|
// Inline function 'kotlin.let' call
|
|
1057
1060
|
// Inline function 'kotlin.contracts.contract' call
|
|
1058
1061
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
|
|
@@ -1062,57 +1065,60 @@
|
|
|
1062
1065
|
do {
|
|
1063
1066
|
var i = inductionVariable;
|
|
1064
1067
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1065
|
-
shuffled = this.
|
|
1068
|
+
shuffled = this.i6c_1.s5z(shuffled);
|
|
1066
1069
|
}
|
|
1067
1070
|
while (inductionVariable < times);
|
|
1068
1071
|
return shuffled;
|
|
1069
1072
|
};
|
|
1070
|
-
protoOf(CardsDealerProviderImpl).
|
|
1071
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1073
|
+
protoOf(CardsDealerProviderImpl).s6a = function (cards, times) {
|
|
1074
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.i6c_1), times, this.i6c_1));
|
|
1072
1075
|
};
|
|
1073
1076
|
function Companion_3() {
|
|
1074
1077
|
}
|
|
1075
|
-
protoOf(Companion_3).
|
|
1078
|
+
protoOf(Companion_3).m6c = function () {
|
|
1076
1079
|
// Inline function 'kotlin.apply' call
|
|
1077
1080
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1078
1081
|
var this_0 = ArrayList_init_$Create$();
|
|
1079
1082
|
// Inline function 'kotlin.contracts.contract' call
|
|
1080
1083
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
|
|
1081
|
-
this_0.n(listOf([Companion_instance.
|
|
1082
|
-
this_0.n(listOf([Companion_instance.
|
|
1083
|
-
this_0.n(listOf([Companion_instance.
|
|
1084
|
-
this_0.n(listOf([Companion_instance.
|
|
1085
|
-
this_0.n(listOf([Companion_instance.
|
|
1084
|
+
this_0.n(listOf([Companion_instance.b6a(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1085
|
+
this_0.n(listOf([Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.b6a(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.b6a(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.b6a(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1086
|
+
this_0.n(listOf([Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1087
|
+
this_0.n(listOf([Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.b6a(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
|
|
1088
|
+
this_0.n(listOf([Companion_instance.b6a(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.b6a(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.b6a(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1086
1089
|
return this_0;
|
|
1087
1090
|
};
|
|
1088
|
-
protoOf(Companion_3).
|
|
1089
|
-
return listOf([Companion_instance.
|
|
1091
|
+
protoOf(Companion_3).n6c = function () {
|
|
1092
|
+
return listOf([Companion_instance.b6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.b6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1090
1093
|
};
|
|
1091
1094
|
var Companion_instance_3;
|
|
1092
1095
|
function Companion_getInstance_3() {
|
|
1093
1096
|
return Companion_instance_3;
|
|
1094
1097
|
}
|
|
1095
1098
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1096
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1097
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1098
|
-
this.
|
|
1099
|
-
this.
|
|
1099
|
+
cards = cards === VOID ? Companion_instance_3.m6c() : cards;
|
|
1100
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.n6c() : cardsForLot;
|
|
1101
|
+
this.o6c_1 = cards;
|
|
1102
|
+
this.p6c_1 = cardsForLot;
|
|
1100
1103
|
}
|
|
1101
|
-
protoOf(FakeCardsDealerProvider).
|
|
1102
|
-
return this.
|
|
1104
|
+
protoOf(FakeCardsDealerProvider).n6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1105
|
+
return this.o6c_1;
|
|
1103
1106
|
};
|
|
1104
|
-
protoOf(FakeCardsDealerProvider).
|
|
1105
|
-
return this.
|
|
1107
|
+
protoOf(FakeCardsDealerProvider).o6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1108
|
+
return this.o6c_1;
|
|
1106
1109
|
};
|
|
1107
|
-
protoOf(FakeCardsDealerProvider).
|
|
1108
|
-
return this.
|
|
1110
|
+
protoOf(FakeCardsDealerProvider).p6a = function (count, cards) {
|
|
1111
|
+
return this.p6c_1;
|
|
1109
1112
|
};
|
|
1110
|
-
protoOf(FakeCardsDealerProvider).
|
|
1113
|
+
protoOf(FakeCardsDealerProvider).q6a = function (cards, times) {
|
|
1111
1114
|
return cards;
|
|
1112
1115
|
};
|
|
1113
|
-
protoOf(FakeCardsDealerProvider).
|
|
1116
|
+
protoOf(FakeCardsDealerProvider).s6a = function (cards, times) {
|
|
1114
1117
|
return cards;
|
|
1115
1118
|
};
|
|
1119
|
+
protoOf(FakeCardsDealerProvider).u6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1120
|
+
return this.o6c_1.m();
|
|
1121
|
+
};
|
|
1116
1122
|
function CombinationsCheckerProvider() {
|
|
1117
1123
|
}
|
|
1118
1124
|
function createCombination($this, cards, supportedCombinations) {
|
|
@@ -1139,16 +1145,16 @@
|
|
|
1139
1145
|
return takeLast(cards, longestCombinationSupport);
|
|
1140
1146
|
}
|
|
1141
1147
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1142
|
-
this.
|
|
1148
|
+
this.v6c_1 = function_0;
|
|
1143
1149
|
}
|
|
1144
1150
|
protoOf(sam$kotlin_Comparator$0).nc = function (a, b) {
|
|
1145
|
-
return this.
|
|
1151
|
+
return this.v6c_1(a, b);
|
|
1146
1152
|
};
|
|
1147
1153
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1148
1154
|
return this.nc(a, b);
|
|
1149
1155
|
};
|
|
1150
1156
|
protoOf(sam$kotlin_Comparator$0).p3 = function () {
|
|
1151
|
-
return this.
|
|
1157
|
+
return this.v6c_1;
|
|
1152
1158
|
};
|
|
1153
1159
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1154
1160
|
var tmp;
|
|
@@ -1171,14 +1177,14 @@
|
|
|
1171
1177
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1172
1178
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1173
1179
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1174
|
-
var tmp = first_0(a).
|
|
1180
|
+
var tmp = first_0(a).v69_1;
|
|
1175
1181
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
|
|
1176
|
-
var tmp$ret$1 = first_0(b).
|
|
1182
|
+
var tmp$ret$1 = first_0(b).v69_1;
|
|
1177
1183
|
return compareValues(tmp, tmp$ret$1);
|
|
1178
1184
|
}
|
|
1179
1185
|
function CombinationsCheckerProviderImpl() {
|
|
1180
1186
|
}
|
|
1181
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1187
|
+
protoOf(CombinationsCheckerProviderImpl).q6c = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1182
1188
|
// Inline function 'kotlin.collections.filter' call
|
|
1183
1189
|
// Inline function 'kotlin.apply' call
|
|
1184
1190
|
var this_0 = toMutableList(cards);
|
|
@@ -1191,7 +1197,7 @@
|
|
|
1191
1197
|
while (tmp0_iterator.k()) {
|
|
1192
1198
|
var element = tmp0_iterator.l();
|
|
1193
1199
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
|
|
1194
|
-
if (element.
|
|
1200
|
+
if (element.x69()) {
|
|
1195
1201
|
destination.e(element);
|
|
1196
1202
|
}
|
|
1197
1203
|
}
|
|
@@ -1208,14 +1214,14 @@
|
|
|
1208
1214
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1209
1215
|
var previousCard = lastOrNull(combinationCards);
|
|
1210
1216
|
var currentCard = sortedByIndexCards.o(i);
|
|
1211
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1217
|
+
var isNextInRow = !(previousCard == null) && currentCard.v69_1 === (previousCard.v69_1 + 1 | 0) && currentCard.y69().equals(previousCard.y69());
|
|
1212
1218
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.p2());
|
|
1213
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1219
|
+
var passedSuitCheck = suit == null || currentCard.y69().equals(suit);
|
|
1214
1220
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1215
1221
|
combinationCards.e(currentCard);
|
|
1216
1222
|
} else {
|
|
1217
1223
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1218
|
-
combinations.n(this.
|
|
1224
|
+
combinations.n(this.u6c(toMutableList(combinationCards), supportedCombinations));
|
|
1219
1225
|
}
|
|
1220
1226
|
combinationCards.a2();
|
|
1221
1227
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1225,11 +1231,11 @@
|
|
|
1225
1231
|
}
|
|
1226
1232
|
while (inductionVariable <= last);
|
|
1227
1233
|
if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
|
|
1228
|
-
combinations.n(this.
|
|
1234
|
+
combinations.n(this.u6c(toMutableList(combinationCards), supportedCombinations));
|
|
1229
1235
|
}
|
|
1230
1236
|
return combinations;
|
|
1231
1237
|
};
|
|
1232
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1238
|
+
protoOf(CombinationsCheckerProviderImpl).s6c = function (cards, cardsCount, includeCardNames) {
|
|
1233
1239
|
// Inline function 'kotlin.collections.filter' call
|
|
1234
1240
|
// Inline function 'kotlin.collections.filter' call
|
|
1235
1241
|
// Inline function 'kotlin.apply' call
|
|
@@ -1243,7 +1249,7 @@
|
|
|
1243
1249
|
while (tmp0_iterator.k()) {
|
|
1244
1250
|
var element = tmp0_iterator.l();
|
|
1245
1251
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1246
|
-
if (element.
|
|
1252
|
+
if (element.x69()) {
|
|
1247
1253
|
destination.e(element);
|
|
1248
1254
|
}
|
|
1249
1255
|
}
|
|
@@ -1266,7 +1272,7 @@
|
|
|
1266
1272
|
while (tmp0_iterator_1.k()) {
|
|
1267
1273
|
var element_1 = tmp0_iterator_1.l();
|
|
1268
1274
|
// Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
|
|
1269
|
-
var key = element_1.
|
|
1275
|
+
var key = element_1.z69();
|
|
1270
1276
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1271
1277
|
var value = destination_1.h2(key);
|
|
1272
1278
|
var tmp;
|
|
@@ -1305,7 +1311,7 @@
|
|
|
1305
1311
|
}
|
|
1306
1312
|
return destination_3;
|
|
1307
1313
|
};
|
|
1308
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1314
|
+
protoOf(CombinationsCheckerProviderImpl).u6c = function (cards, supportedCombinations) {
|
|
1309
1315
|
// Inline function 'kotlin.collections.minOf' call
|
|
1310
1316
|
var iterator = supportedCombinations.j();
|
|
1311
1317
|
if (!iterator.k())
|
|
@@ -1335,28 +1341,28 @@
|
|
|
1335
1341
|
return sortedWith(combinations, tmp$ret$4);
|
|
1336
1342
|
};
|
|
1337
1343
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1344
|
+
this.w6c_1 = logger;
|
|
1345
|
+
this.x6c_1 = enableLogs;
|
|
1340
1346
|
}
|
|
1341
|
-
protoOf(DealerReducerImpl).
|
|
1347
|
+
protoOf(DealerReducerImpl).y6c = function (cards, cardsToRemove) {
|
|
1342
1348
|
var list = cards;
|
|
1343
1349
|
var _iterator__ex2g4s = cardsToRemove.j();
|
|
1344
1350
|
while (_iterator__ex2g4s.k()) {
|
|
1345
1351
|
var gameCard = _iterator__ex2g4s.l();
|
|
1346
|
-
list = this.
|
|
1352
|
+
list = this.z6c(list, gameCard);
|
|
1347
1353
|
}
|
|
1348
1354
|
return list;
|
|
1349
1355
|
};
|
|
1350
|
-
protoOf(DealerReducerImpl).
|
|
1356
|
+
protoOf(DealerReducerImpl).z6c = function (cards, cardToRemove) {
|
|
1351
1357
|
var tmp;
|
|
1352
|
-
if (!cardToRemove.
|
|
1353
|
-
if (this.
|
|
1354
|
-
this.
|
|
1358
|
+
if (!cardToRemove.e6a() && cards.s1(cardToRemove)) {
|
|
1359
|
+
if (this.x6c_1) {
|
|
1360
|
+
this.w6c_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1355
1361
|
}
|
|
1356
1362
|
tmp = minus(cards, cardToRemove);
|
|
1357
1363
|
} else {
|
|
1358
|
-
if (this.
|
|
1359
|
-
this.
|
|
1364
|
+
if (this.x6c_1) {
|
|
1365
|
+
this.w6c_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
|
|
1360
1366
|
}
|
|
1361
1367
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1362
1368
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1365,7 +1371,7 @@
|
|
|
1365
1371
|
while (tmp0_iterator.k()) {
|
|
1366
1372
|
var element = tmp0_iterator.l();
|
|
1367
1373
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1368
|
-
if (!element.
|
|
1374
|
+
if (!element.e6a()) {
|
|
1369
1375
|
destination.e(element);
|
|
1370
1376
|
}
|
|
1371
1377
|
}
|
|
@@ -1377,36 +1383,36 @@
|
|
|
1377
1383
|
while (tmp0_iterator_0.k()) {
|
|
1378
1384
|
var element_0 = tmp0_iterator_0.l();
|
|
1379
1385
|
// Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
|
|
1380
|
-
if (element_0.
|
|
1386
|
+
if (element_0.e6a()) {
|
|
1381
1387
|
destination_0.e(element_0);
|
|
1382
1388
|
}
|
|
1383
1389
|
}
|
|
1384
1390
|
var stubCards = destination_0;
|
|
1385
1391
|
if (stubCards.p()) {
|
|
1386
|
-
this.
|
|
1392
|
+
this.w6c_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1387
1393
|
}
|
|
1388
1394
|
tmp = plus(notStubCards, dropLast(stubCards, 1));
|
|
1389
1395
|
}
|
|
1390
1396
|
return tmp;
|
|
1391
1397
|
};
|
|
1392
|
-
protoOf(DealerReducerImpl).
|
|
1393
|
-
if (this.
|
|
1394
|
-
this.
|
|
1398
|
+
protoOf(DealerReducerImpl).a6d = function (cards, cardToAdd) {
|
|
1399
|
+
if (this.x6c_1) {
|
|
1400
|
+
this.w6c_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
|
|
1395
1401
|
}
|
|
1396
1402
|
if (cards.s1(cardToAdd)) {
|
|
1397
|
-
this.
|
|
1403
|
+
this.w6c_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1398
1404
|
}
|
|
1399
1405
|
return plus_0(cards, cardToAdd);
|
|
1400
1406
|
};
|
|
1401
1407
|
function DealerReducer() {
|
|
1402
1408
|
}
|
|
1403
1409
|
//region block: post-declaration
|
|
1404
|
-
protoOf(CardsDealerProviderImpl).
|
|
1405
|
-
protoOf(CardsDealerProviderImpl).
|
|
1406
|
-
protoOf(FakeCardsDealerProvider).
|
|
1407
|
-
protoOf(FakeCardsDealerProvider).
|
|
1408
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1409
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1410
|
+
protoOf(CardsDealerProviderImpl).r6a = standardShuffledCards$default;
|
|
1411
|
+
protoOf(CardsDealerProviderImpl).t6a = realLifeShuffledCards$default;
|
|
1412
|
+
protoOf(FakeCardsDealerProvider).r6a = standardShuffledCards$default;
|
|
1413
|
+
protoOf(FakeCardsDealerProvider).t6a = realLifeShuffledCards$default;
|
|
1414
|
+
protoOf(CombinationsCheckerProviderImpl).r6c = findCardsInRowCombinations$default;
|
|
1415
|
+
protoOf(CombinationsCheckerProviderImpl).t6c = findSameCardsNumberCombinations$default;
|
|
1410
1416
|
//endregion
|
|
1411
1417
|
//region block: init
|
|
1412
1418
|
CoreConfig_instance = new CoreConfig();
|