game_client_logic_deb 1.8.434 → 1.8.436
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 +516 -516
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1384 -1384
- package/Logic_Debertz-ai_module.js +327 -327
- package/Logic_Debertz-core.js +1018 -1018
- package/Logic_Debertz-engine.js +12298 -12080
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +3 -2
- package/Logic_Debertz-game_client.js +2996 -2996
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +114 -101
- package/raspberry-cardgame-lib-core.js.map +1 -1
package/package.json
CHANGED
|
@@ -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.x5c(cards, times) : $super.x5c.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.z5c(cards, times) : $super.z5c.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.p5e(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.p5e.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.r5e(cards, cardsCount, includeCardNames) : $super.r5e.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,7 +127,7 @@
|
|
|
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.54';
|
|
131
131
|
}
|
|
132
132
|
protoOf(CoreConfig).x3u = function () {
|
|
133
133
|
return this.version;
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
}
|
|
340
340
|
var tmp1_safe_receiver = tmp;
|
|
341
341
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.x5b_1;
|
|
342
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
342
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.n5c(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).o5c = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
362
362
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
363
363
|
reverse = reverse === VOID ? false : reverse;
|
|
364
364
|
return $super === VOID ? this.f5c(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.f5c.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).p5c = function (position) {
|
|
367
367
|
var index = 150 + position | 0;
|
|
368
368
|
return new GameCard(index);
|
|
369
369
|
};
|
|
@@ -483,8 +483,9 @@
|
|
|
483
483
|
this.j5c_1 = 52;
|
|
484
484
|
this.k5c_1 = 150;
|
|
485
485
|
this.l5c_1 = 53;
|
|
486
|
+
this.m5c_1 = 999;
|
|
486
487
|
}
|
|
487
|
-
protoOf(Companion_0).
|
|
488
|
+
protoOf(Companion_0).n5c = function (_this__u8e3s4, playerIndex, reverse) {
|
|
488
489
|
var tmp;
|
|
489
490
|
if (reverse) {
|
|
490
491
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -593,17 +594,29 @@
|
|
|
593
594
|
protoOf(GameCard).z5b = function () {
|
|
594
595
|
return !_get_isShirt__vd98rp(this) && !this.g5c();
|
|
595
596
|
};
|
|
597
|
+
protoOf(GameCard).q5c = function () {
|
|
598
|
+
return this.x5b_1 === 999;
|
|
599
|
+
};
|
|
596
600
|
protoOf(GameCard).g5c = function () {
|
|
597
601
|
return this.x5b_1 >= 53 && this.x5b_1 <= 105;
|
|
598
602
|
};
|
|
599
603
|
protoOf(GameCard).toString = function () {
|
|
600
|
-
|
|
601
|
-
|
|
604
|
+
return 'GameCard' + this.r5c();
|
|
605
|
+
};
|
|
606
|
+
protoOf(GameCard).r5c = function () {
|
|
607
|
+
return '{' + this.s5c() + ', ' + this.x5b_1 + '}';
|
|
608
|
+
};
|
|
609
|
+
protoOf(GameCard).s5c = function () {
|
|
610
|
+
if (this.q5c()) {
|
|
611
|
+
return 'stub';
|
|
602
612
|
}
|
|
603
613
|
if (this.g5c()) {
|
|
604
|
-
return '
|
|
614
|
+
return 'hidden';
|
|
615
|
+
}
|
|
616
|
+
if (_get_isShirt__vd98rp(this)) {
|
|
617
|
+
return 'shirt';
|
|
605
618
|
}
|
|
606
|
-
return
|
|
619
|
+
return this.a5c().toString() + this.r2().toString();
|
|
607
620
|
};
|
|
608
621
|
protoOf(GameCard).hashCode = function () {
|
|
609
622
|
return this.x5b_1;
|
|
@@ -619,7 +632,7 @@
|
|
|
619
632
|
return true;
|
|
620
633
|
};
|
|
621
634
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
622
|
-
return $this.
|
|
635
|
+
return $this.t5c_1.x();
|
|
623
636
|
}
|
|
624
637
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
625
638
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -661,7 +674,7 @@
|
|
|
661
674
|
Companion_instance_1 = this;
|
|
662
675
|
var tmp = this;
|
|
663
676
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
664
|
-
tmp.
|
|
677
|
+
tmp.t5c_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
665
678
|
}
|
|
666
679
|
protoOf(Companion_1).b1c = function () {
|
|
667
680
|
return _get_$cachedSerializer__te6jhj(this);
|
|
@@ -784,7 +797,7 @@
|
|
|
784
797
|
}
|
|
785
798
|
function Companion_2() {
|
|
786
799
|
}
|
|
787
|
-
protoOf(Companion_2).
|
|
800
|
+
protoOf(Companion_2).q5d = function (randomPoolProvider, logger) {
|
|
788
801
|
var tmp0_random = new SecureRandom(logger);
|
|
789
802
|
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
790
803
|
};
|
|
@@ -794,12 +807,12 @@
|
|
|
794
807
|
}
|
|
795
808
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
796
809
|
CoroutineImpl.call(this, resultContinuation);
|
|
797
|
-
this.
|
|
798
|
-
this.
|
|
799
|
-
this.
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
this.
|
|
810
|
+
this.z5d_1 = _this__u8e3s4;
|
|
811
|
+
this.a5e_1 = leftCardIndexForEachSuit;
|
|
812
|
+
this.b5e_1 = rightCardIndexForEachSuit;
|
|
813
|
+
this.c5e_1 = approximateRoundCountForGame;
|
|
814
|
+
this.d5e_1 = userData;
|
|
815
|
+
this.e5e_1 = provider;
|
|
803
816
|
}
|
|
804
817
|
protoOf($createNewShuffledCardDeckCOROUTINE$).a9 = function () {
|
|
805
818
|
var suspendResult = this.u8_1;
|
|
@@ -809,17 +822,17 @@
|
|
|
809
822
|
switch (tmp) {
|
|
810
823
|
case 0:
|
|
811
824
|
this.t8_1 = 4;
|
|
812
|
-
var tmp0 = this.
|
|
825
|
+
var tmp0 = this.e5e_1.q2_1;
|
|
813
826
|
if (tmp0 === 0) {
|
|
814
827
|
var tmp_0 = this;
|
|
815
|
-
var it = this.
|
|
816
|
-
tmp_0.
|
|
828
|
+
var it = this.z5d_1.u5c(this.a5e_1, this.b5e_1);
|
|
829
|
+
tmp_0.f5e_1 = this.z5d_1.y5c(it);
|
|
817
830
|
this.s8_1 = 3;
|
|
818
831
|
continue $sm;
|
|
819
832
|
} else {
|
|
820
833
|
if (tmp0 === 1) {
|
|
821
834
|
this.s8_1 = 2;
|
|
822
|
-
suspendResult = getRandomOrgCards(this.
|
|
835
|
+
suspendResult = getRandomOrgCards(this.z5d_1, this.a5e_1, this.b5e_1, this.c5e_1, this.d5e_1, false, this);
|
|
823
836
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
824
837
|
return suspendResult;
|
|
825
838
|
}
|
|
@@ -827,7 +840,7 @@
|
|
|
827
840
|
} else {
|
|
828
841
|
if (tmp0 === 2) {
|
|
829
842
|
this.s8_1 = 1;
|
|
830
|
-
suspendResult = getRandomOrgCards(this.
|
|
843
|
+
suspendResult = getRandomOrgCards(this.z5d_1, this.a5e_1, this.b5e_1, this.c5e_1, this.d5e_1, true, this);
|
|
831
844
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
832
845
|
return suspendResult;
|
|
833
846
|
}
|
|
@@ -841,15 +854,15 @@
|
|
|
841
854
|
|
|
842
855
|
break;
|
|
843
856
|
case 1:
|
|
844
|
-
this.
|
|
857
|
+
this.f5e_1 = suspendResult;
|
|
845
858
|
this.s8_1 = 3;
|
|
846
859
|
continue $sm;
|
|
847
860
|
case 2:
|
|
848
|
-
this.
|
|
861
|
+
this.f5e_1 = suspendResult;
|
|
849
862
|
this.s8_1 = 3;
|
|
850
863
|
continue $sm;
|
|
851
864
|
case 3:
|
|
852
|
-
return this.
|
|
865
|
+
return this.f5e_1;
|
|
853
866
|
case 4:
|
|
854
867
|
throw this.v8_1;
|
|
855
868
|
}
|
|
@@ -866,12 +879,12 @@
|
|
|
866
879
|
};
|
|
867
880
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
868
881
|
CoroutineImpl.call(this, resultContinuation);
|
|
869
|
-
this.
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
882
|
+
this.j5d_1 = _this__u8e3s4;
|
|
883
|
+
this.k5d_1 = leftCardIndexForEachSuit;
|
|
884
|
+
this.l5d_1 = rightCardIndexForEachSuit;
|
|
885
|
+
this.m5d_1 = approximateRoundsCount;
|
|
886
|
+
this.n5d_1 = userData;
|
|
887
|
+
this.o5d_1 = signed;
|
|
875
888
|
}
|
|
876
889
|
protoOf($getRandomOrgCardsCOROUTINE$).a9 = function () {
|
|
877
890
|
var suspendResult = this.u8_1;
|
|
@@ -881,11 +894,11 @@
|
|
|
881
894
|
switch (tmp) {
|
|
882
895
|
case 0:
|
|
883
896
|
this.t8_1 = 5;
|
|
884
|
-
var cardsCount = this.
|
|
885
|
-
var tmp0_$this = this.
|
|
897
|
+
var cardsCount = this.j5d_1.j5e(this.k5d_1, this.l5d_1);
|
|
898
|
+
var tmp0_$this = this.j5d_1.h5e_1;
|
|
886
899
|
var tmp1_max = cardsCount - 1 | 0;
|
|
887
900
|
this.s8_1 = 1;
|
|
888
|
-
suspendResult = tmp0_$this.l57(this.
|
|
901
|
+
suspendResult = tmp0_$this.l57(this.m5d_1, this.n5d_1, 0, tmp1_max, cardsCount, this.o5d_1, VOID, this);
|
|
889
902
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
890
903
|
return suspendResult;
|
|
891
904
|
}
|
|
@@ -904,21 +917,21 @@
|
|
|
904
917
|
throwOnFailure(result);
|
|
905
918
|
var tmp_1 = _Result___get_value__impl__bjfvqg(result);
|
|
906
919
|
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
907
|
-
var this_0 = normalizeCards(this.
|
|
920
|
+
var this_0 = normalizeCards(this.j5d_1, tmp2_cards, this.k5d_1);
|
|
908
921
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
909
922
|
var _iterator__ex2g4s = this_0.l();
|
|
910
923
|
while (_iterator__ex2g4s.m()) {
|
|
911
924
|
var item = _iterator__ex2g4s.n();
|
|
912
925
|
destination.j(Companion_instance.e5c(item));
|
|
913
926
|
}
|
|
914
|
-
tmp_0.
|
|
927
|
+
tmp_0.p5d_1 = destination;
|
|
915
928
|
this.s8_1 = 4;
|
|
916
929
|
continue $sm;
|
|
917
930
|
} else {
|
|
918
931
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
919
|
-
this.
|
|
932
|
+
this.j5d_1.i5e_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
920
933
|
this.s8_1 = 3;
|
|
921
|
-
suspendResult = this.
|
|
934
|
+
suspendResult = this.j5d_1.v5c(this.k5d_1, this.l5d_1, this.m5d_1, this.n5d_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
922
935
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
923
936
|
return suspendResult;
|
|
924
937
|
}
|
|
@@ -926,11 +939,11 @@
|
|
|
926
939
|
}
|
|
927
940
|
|
|
928
941
|
case 3:
|
|
929
|
-
this.
|
|
942
|
+
this.p5d_1 = suspendResult;
|
|
930
943
|
this.s8_1 = 4;
|
|
931
944
|
continue $sm;
|
|
932
945
|
case 4:
|
|
933
|
-
return this.
|
|
946
|
+
return this.p5d_1;
|
|
934
947
|
case 5:
|
|
935
948
|
throw this.v8_1;
|
|
936
949
|
}
|
|
@@ -946,11 +959,11 @@
|
|
|
946
959
|
while (true);
|
|
947
960
|
};
|
|
948
961
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
949
|
-
this.
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
962
|
+
this.g5e_1 = random;
|
|
963
|
+
this.h5e_1 = randomPoolProvider;
|
|
964
|
+
this.i5e_1 = logger;
|
|
952
965
|
}
|
|
953
|
-
protoOf(CardsDealerProviderImpl).
|
|
966
|
+
protoOf(CardsDealerProviderImpl).u5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
954
967
|
// Inline function 'kotlin.collections.flatMap' call
|
|
955
968
|
var tmp0 = get_entries();
|
|
956
969
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -959,7 +972,7 @@
|
|
|
959
972
|
while (_iterator__ex2g4s.m()) {
|
|
960
973
|
var element = _iterator__ex2g4s.n();
|
|
961
974
|
// Inline function 'kotlin.collections.map' call
|
|
962
|
-
var this_0 = this.
|
|
975
|
+
var this_0 = this.k5e(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
963
976
|
// Inline function 'kotlin.collections.mapTo' call
|
|
964
977
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
965
978
|
var inductionVariable = this_0.a1_1;
|
|
@@ -978,27 +991,27 @@
|
|
|
978
991
|
}
|
|
979
992
|
return destination;
|
|
980
993
|
};
|
|
981
|
-
protoOf(CardsDealerProviderImpl).
|
|
994
|
+
protoOf(CardsDealerProviderImpl).k5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
982
995
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
983
996
|
};
|
|
984
|
-
protoOf(CardsDealerProviderImpl).
|
|
997
|
+
protoOf(CardsDealerProviderImpl).j5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
985
998
|
// Inline function 'kotlin.collections.sumOf' call
|
|
986
999
|
var sum = 0;
|
|
987
1000
|
var _iterator__ex2g4s = get_entries().l();
|
|
988
1001
|
while (_iterator__ex2g4s.m()) {
|
|
989
1002
|
var element = _iterator__ex2g4s.n();
|
|
990
1003
|
var tmp = sum;
|
|
991
|
-
sum = tmp + count(this.
|
|
1004
|
+
sum = tmp + count(this.k5e(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
992
1005
|
}
|
|
993
1006
|
return sum;
|
|
994
1007
|
};
|
|
995
|
-
protoOf(CardsDealerProviderImpl).
|
|
1008
|
+
protoOf(CardsDealerProviderImpl).v5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
996
1009
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
997
1010
|
tmp.u8_1 = Unit_instance;
|
|
998
1011
|
tmp.v8_1 = null;
|
|
999
1012
|
return tmp.a9();
|
|
1000
1013
|
};
|
|
1001
|
-
protoOf(CardsDealerProviderImpl).
|
|
1014
|
+
protoOf(CardsDealerProviderImpl).w5c = function (count, cards) {
|
|
1002
1015
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1003
1016
|
// Inline function 'kotlin.apply' call
|
|
1004
1017
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1044,7 +1057,7 @@
|
|
|
1044
1057
|
}
|
|
1045
1058
|
return this_0;
|
|
1046
1059
|
};
|
|
1047
|
-
protoOf(CardsDealerProviderImpl).
|
|
1060
|
+
protoOf(CardsDealerProviderImpl).x5c = function (cards, times) {
|
|
1048
1061
|
// Inline function 'kotlin.let' call
|
|
1049
1062
|
var shuffled = toMutableList(cards);
|
|
1050
1063
|
var inductionVariable = 0;
|
|
@@ -1052,17 +1065,17 @@
|
|
|
1052
1065
|
do {
|
|
1053
1066
|
var i = inductionVariable;
|
|
1054
1067
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1055
|
-
shuffled = this.
|
|
1068
|
+
shuffled = this.g5e_1.r5b(shuffled);
|
|
1056
1069
|
}
|
|
1057
1070
|
while (inductionVariable < times);
|
|
1058
1071
|
return shuffled;
|
|
1059
1072
|
};
|
|
1060
|
-
protoOf(CardsDealerProviderImpl).
|
|
1061
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1073
|
+
protoOf(CardsDealerProviderImpl).z5c = function (cards, times) {
|
|
1074
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.g5e_1), times, this.g5e_1));
|
|
1062
1075
|
};
|
|
1063
1076
|
function Companion_3() {
|
|
1064
1077
|
}
|
|
1065
|
-
protoOf(Companion_3).
|
|
1078
|
+
protoOf(Companion_3).l5e = function () {
|
|
1066
1079
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1067
1080
|
// Inline function 'kotlin.apply' call
|
|
1068
1081
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1073,7 +1086,7 @@
|
|
|
1073
1086
|
this_0.q(listOf([Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.d5c(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1074
1087
|
return this_0;
|
|
1075
1088
|
};
|
|
1076
|
-
protoOf(Companion_3).
|
|
1089
|
+
protoOf(Companion_3).m5e = function () {
|
|
1077
1090
|
return listOf([Companion_instance.d5c(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.d5c(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1078
1091
|
};
|
|
1079
1092
|
var Companion_instance_3;
|
|
@@ -1081,24 +1094,24 @@
|
|
|
1081
1094
|
return Companion_instance_3;
|
|
1082
1095
|
}
|
|
1083
1096
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1084
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1085
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1086
|
-
this.
|
|
1087
|
-
this.
|
|
1097
|
+
cards = cards === VOID ? Companion_instance_3.l5e() : cards;
|
|
1098
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.m5e() : cardsForLot;
|
|
1099
|
+
this.n5e_1 = cards;
|
|
1100
|
+
this.o5e_1 = cardsForLot;
|
|
1088
1101
|
}
|
|
1089
|
-
protoOf(FakeCardsDealerProvider).
|
|
1090
|
-
return this.
|
|
1102
|
+
protoOf(FakeCardsDealerProvider).u5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1103
|
+
return this.n5e_1;
|
|
1091
1104
|
};
|
|
1092
|
-
protoOf(FakeCardsDealerProvider).
|
|
1093
|
-
return this.
|
|
1105
|
+
protoOf(FakeCardsDealerProvider).v5c = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1106
|
+
return this.n5e_1;
|
|
1094
1107
|
};
|
|
1095
|
-
protoOf(FakeCardsDealerProvider).
|
|
1096
|
-
return this.
|
|
1108
|
+
protoOf(FakeCardsDealerProvider).w5c = function (count, cards) {
|
|
1109
|
+
return this.o5e_1;
|
|
1097
1110
|
};
|
|
1098
|
-
protoOf(FakeCardsDealerProvider).
|
|
1111
|
+
protoOf(FakeCardsDealerProvider).x5c = function (cards, times) {
|
|
1099
1112
|
return cards;
|
|
1100
1113
|
};
|
|
1101
|
-
protoOf(FakeCardsDealerProvider).
|
|
1114
|
+
protoOf(FakeCardsDealerProvider).z5c = function (cards, times) {
|
|
1102
1115
|
return cards;
|
|
1103
1116
|
};
|
|
1104
1117
|
function CombinationsCheckerProvider() {
|
|
@@ -1126,16 +1139,16 @@
|
|
|
1126
1139
|
return takeLast(cards, longestCombinationSupport);
|
|
1127
1140
|
}
|
|
1128
1141
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1129
|
-
this.
|
|
1142
|
+
this.u5e_1 = function_0;
|
|
1130
1143
|
}
|
|
1131
1144
|
protoOf(sam$kotlin_Comparator$0).fc = function (a, b) {
|
|
1132
|
-
return this.
|
|
1145
|
+
return this.u5e_1(a, b);
|
|
1133
1146
|
};
|
|
1134
1147
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1135
1148
|
return this.fc(a, b);
|
|
1136
1149
|
};
|
|
1137
1150
|
protoOf(sam$kotlin_Comparator$0).b3 = function () {
|
|
1138
|
-
return this.
|
|
1151
|
+
return this.u5e_1;
|
|
1139
1152
|
};
|
|
1140
1153
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1141
1154
|
var tmp;
|
|
@@ -1163,7 +1176,7 @@
|
|
|
1163
1176
|
}
|
|
1164
1177
|
function CombinationsCheckerProviderImpl() {
|
|
1165
1178
|
}
|
|
1166
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1179
|
+
protoOf(CombinationsCheckerProviderImpl).p5e = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1167
1180
|
// Inline function 'kotlin.apply' call
|
|
1168
1181
|
var this_0 = toMutableList(cards);
|
|
1169
1182
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1197,7 +1210,7 @@
|
|
|
1197
1210
|
combinationCards.j(currentCard);
|
|
1198
1211
|
} else {
|
|
1199
1212
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1200
|
-
combinations.q(this.
|
|
1213
|
+
combinations.q(this.t5e(toMutableList(combinationCards), supportedCombinations));
|
|
1201
1214
|
}
|
|
1202
1215
|
combinationCards.i2();
|
|
1203
1216
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1207,11 +1220,11 @@
|
|
|
1207
1220
|
}
|
|
1208
1221
|
while (inductionVariable <= last);
|
|
1209
1222
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1210
|
-
combinations.q(this.
|
|
1223
|
+
combinations.q(this.t5e(toMutableList(combinationCards), supportedCombinations));
|
|
1211
1224
|
}
|
|
1212
1225
|
return combinations;
|
|
1213
1226
|
};
|
|
1214
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1227
|
+
protoOf(CombinationsCheckerProviderImpl).r5e = function (cards, cardsCount, includeCardNames) {
|
|
1215
1228
|
// Inline function 'kotlin.apply' call
|
|
1216
1229
|
var this_0 = toMutableList(cards);
|
|
1217
1230
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1279,7 +1292,7 @@
|
|
|
1279
1292
|
}
|
|
1280
1293
|
return destination_3;
|
|
1281
1294
|
};
|
|
1282
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1295
|
+
protoOf(CombinationsCheckerProviderImpl).t5e = function (cards, supportedCombinations) {
|
|
1283
1296
|
// Inline function 'kotlin.collections.minOf' call
|
|
1284
1297
|
var iterator = supportedCombinations.l();
|
|
1285
1298
|
if (!iterator.m())
|
|
@@ -1309,28 +1322,28 @@
|
|
|
1309
1322
|
function DealerReducer() {
|
|
1310
1323
|
}
|
|
1311
1324
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1325
|
+
this.y5e_1 = logger;
|
|
1326
|
+
this.z5e_1 = enableLogs;
|
|
1314
1327
|
}
|
|
1315
|
-
protoOf(DealerReducerImpl).
|
|
1328
|
+
protoOf(DealerReducerImpl).v5e = function (cards, cardsToRemove) {
|
|
1316
1329
|
var list = cards;
|
|
1317
1330
|
var _iterator__ex2g4s = cardsToRemove.l();
|
|
1318
1331
|
while (_iterator__ex2g4s.m()) {
|
|
1319
1332
|
var gameCard = _iterator__ex2g4s.n();
|
|
1320
|
-
list = this.
|
|
1333
|
+
list = this.w5e(list, gameCard);
|
|
1321
1334
|
}
|
|
1322
1335
|
return list;
|
|
1323
1336
|
};
|
|
1324
|
-
protoOf(DealerReducerImpl).
|
|
1337
|
+
protoOf(DealerReducerImpl).w5e = function (cards, cardToRemove) {
|
|
1325
1338
|
var tmp;
|
|
1326
1339
|
if (!cardToRemove.g5c() && cards.u1(cardToRemove)) {
|
|
1327
|
-
if (this.
|
|
1328
|
-
this.
|
|
1340
|
+
if (this.z5e_1) {
|
|
1341
|
+
this.y5e_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1329
1342
|
}
|
|
1330
1343
|
tmp = minus(cards, cardToRemove);
|
|
1331
1344
|
} else {
|
|
1332
|
-
if (this.
|
|
1333
|
-
this.
|
|
1345
|
+
if (this.z5e_1) {
|
|
1346
|
+
this.y5e_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1334
1347
|
}
|
|
1335
1348
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1336
1349
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1355,28 +1368,28 @@
|
|
|
1355
1368
|
}
|
|
1356
1369
|
var hiddenCards = destination_0;
|
|
1357
1370
|
if (hiddenCards.r()) {
|
|
1358
|
-
this.
|
|
1371
|
+
this.y5e_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1359
1372
|
}
|
|
1360
1373
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1361
1374
|
}
|
|
1362
1375
|
return tmp;
|
|
1363
1376
|
};
|
|
1364
|
-
protoOf(DealerReducerImpl).
|
|
1365
|
-
if (this.
|
|
1366
|
-
this.
|
|
1377
|
+
protoOf(DealerReducerImpl).x5e = function (cards, cardToAdd) {
|
|
1378
|
+
if (this.z5e_1) {
|
|
1379
|
+
this.y5e_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
|
|
1367
1380
|
}
|
|
1368
1381
|
if (cards.u1(cardToAdd)) {
|
|
1369
|
-
this.
|
|
1382
|
+
this.y5e_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1370
1383
|
}
|
|
1371
1384
|
return plus_0(cards, cardToAdd);
|
|
1372
1385
|
};
|
|
1373
1386
|
//region block: post-declaration
|
|
1374
|
-
protoOf(CardsDealerProviderImpl).
|
|
1375
|
-
protoOf(CardsDealerProviderImpl).
|
|
1376
|
-
protoOf(FakeCardsDealerProvider).
|
|
1377
|
-
protoOf(FakeCardsDealerProvider).
|
|
1378
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1379
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1387
|
+
protoOf(CardsDealerProviderImpl).y5c = standardShuffledCards$default;
|
|
1388
|
+
protoOf(CardsDealerProviderImpl).a5d = realLifeShuffledCards$default;
|
|
1389
|
+
protoOf(FakeCardsDealerProvider).y5c = standardShuffledCards$default;
|
|
1390
|
+
protoOf(FakeCardsDealerProvider).a5d = realLifeShuffledCards$default;
|
|
1391
|
+
protoOf(CombinationsCheckerProviderImpl).q5e = findCardsInRowCombinations$default;
|
|
1392
|
+
protoOf(CombinationsCheckerProviderImpl).s5e = findSameCardsNumberCombinations$default;
|
|
1380
1393
|
//endregion
|
|
1381
1394
|
//region block: init
|
|
1382
1395
|
CoreConfig_instance = new CoreConfig();
|