client_plugin_logic_deb 1.8.497 → 1.8.498
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 +79 -79
- package/Kosi-Kodein-kodein-di.js +635 -635
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1666 -1666
- package/Logic_Debertz-ai_module.js +564 -560
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-bot_engine.js +899 -899
- package/Logic_Debertz-client_plugin.js +3260 -3249
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2058 -2058
- package/Logic_Debertz-engine.js +18347 -18271
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +9774 -9743
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1490 -1490
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +1856 -1727
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +2635 -2635
- package/kotlinx-io-kotlinx-io-bytestring.js +52 -52
- package/kotlinx-io-kotlinx-io-core.js +595 -595
- package/kotlinx-serialization-kotlinx-serialization-core.js +2020 -2020
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1467 -1467
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +162 -162
- package/ktor-ktor-client-core.js +2007 -2007
- package/ktor-ktor-client-logging.js +666 -666
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http-cio.js +390 -390
- package/ktor-ktor-http.js +769 -769
- package/ktor-ktor-io.js +664 -664
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +158 -158
- package/ktor-ktor-serialization.js +74 -74
- package/ktor-ktor-utils.js +722 -722
- package/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
- package/random-library-crypto-rand.js +13 -13
- package/random-library-secure-random.js +10 -10
- package/raspberry-cardgame-lib-core.js +236 -236
- package/raspberry-cardgame-lib-logger.js +107 -107
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +893 -893
- package/uuid.js +32 -32
|
@@ -19,68 +19,68 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
24
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.se;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.xd;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.id;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.b;
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
29
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
30
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
31
|
-
var take = kotlin_kotlin.$_$.
|
|
32
|
-
var toList = kotlin_kotlin.$_$.
|
|
33
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
34
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
35
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
36
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
37
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
38
|
-
var Enum = kotlin_kotlin.$_$.
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.hj;
|
|
27
|
+
var Comparator = kotlin_kotlin.$_$.ti;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.rd;
|
|
29
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
30
|
+
var Unit_instance = kotlin_kotlin.$_$.o5;
|
|
31
|
+
var take = kotlin_kotlin.$_$.ga;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.ma;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.fa;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.gk;
|
|
35
|
+
var enumEntries = kotlin_kotlin.$_$.vb;
|
|
36
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.sd;
|
|
37
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
38
|
+
var Enum = kotlin_kotlin.$_$.wi;
|
|
39
39
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
40
|
-
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
40
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.g;
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.ek;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
44
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
45
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.vd;
|
|
44
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
|
|
45
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
46
46
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
47
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
48
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
49
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
50
|
-
var Result = kotlin_kotlin.$_$.
|
|
51
|
-
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.
|
|
52
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
53
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
54
|
-
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.
|
|
55
|
-
var addAll = kotlin_kotlin.$_$.
|
|
56
|
-
var until = kotlin_kotlin.$_$.
|
|
57
|
-
var count = kotlin_kotlin.$_$.
|
|
58
|
-
var Collection = kotlin_kotlin.$_$.
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
47
|
+
var CoroutineImpl = kotlin_kotlin.$_$.tb;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.db;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.td;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.fj;
|
|
51
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.b3;
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.kk;
|
|
53
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.e3;
|
|
54
|
+
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.d3;
|
|
55
|
+
var addAll = kotlin_kotlin.$_$.g6;
|
|
56
|
+
var until = kotlin_kotlin.$_$.kf;
|
|
57
|
+
var count = kotlin_kotlin.$_$.o7;
|
|
58
|
+
var Collection = kotlin_kotlin.$_$.q5;
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.ge;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.sa;
|
|
61
61
|
var riffle = kotlin_io_raspberryapps_cardgame_random.$_$.l;
|
|
62
62
|
var overhand = kotlin_io_raspberryapps_cardgame_random.$_$.k;
|
|
63
|
-
var listOf = kotlin_kotlin.$_$.
|
|
64
|
-
var first = kotlin_kotlin.$_$.
|
|
65
|
-
var sorted = kotlin_kotlin.$_$.
|
|
66
|
-
var asReversed = kotlin_kotlin.$_$.
|
|
67
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
68
|
-
var equals = kotlin_kotlin.$_$.
|
|
69
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
70
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
71
|
-
var first_0 = kotlin_kotlin.$_$.
|
|
72
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
73
|
-
var sortWith = kotlin_kotlin.$_$.
|
|
74
|
-
var lastOrNull = kotlin_kotlin.$_$.
|
|
75
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
77
|
-
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
78
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
79
|
-
var toString = kotlin_kotlin.$_$.
|
|
80
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
81
|
-
var plus = kotlin_kotlin.$_$.
|
|
82
|
-
var minus = kotlin_kotlin.$_$.
|
|
83
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
63
|
+
var listOf = kotlin_kotlin.$_$.z8;
|
|
64
|
+
var first = kotlin_kotlin.$_$.c8;
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.ca;
|
|
66
|
+
var asReversed = kotlin_kotlin.$_$.k6;
|
|
67
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
68
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.wc;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.qd;
|
|
71
|
+
var first_0 = kotlin_kotlin.$_$.b8;
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.bb;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.aa;
|
|
74
|
+
var lastOrNull = kotlin_kotlin.$_$.t8;
|
|
75
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.ba;
|
|
77
|
+
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.y1;
|
|
78
|
+
var compareTo = kotlin_kotlin.$_$.hd;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.ve;
|
|
80
|
+
var dropLast = kotlin_kotlin.$_$.q7;
|
|
81
|
+
var plus = kotlin_kotlin.$_$.m9;
|
|
82
|
+
var minus = kotlin_kotlin.$_$.f9;
|
|
83
|
+
var plus_0 = kotlin_kotlin.$_$.n9;
|
|
84
84
|
//endregion
|
|
85
85
|
//region block: pre-declaration
|
|
86
86
|
initMetadataForObject(CoreConfig, 'CoreConfig');
|
|
@@ -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.p6n(cards, times) : $super.p6n.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.r6n(cards, times) : $super.r6n.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.h6p(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.h6p.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.j6p(cards, cardsCount, includeCardNames) : $super.j6p.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.58';
|
|
131
131
|
}
|
|
132
|
-
protoOf(CoreConfig).
|
|
132
|
+
protoOf(CoreConfig).f48 = 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.o6m_1 = suit;
|
|
141
141
|
}
|
|
142
|
-
protoOf(CardSuitSortingComparator).
|
|
143
|
-
if (!a.
|
|
142
|
+
protoOf(CardSuitSortingComparator).p6m = function (a, b) {
|
|
143
|
+
if (!a.r6m() || !b.r6m()) {
|
|
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.o6m_1.o2(a.s6m());
|
|
147
|
+
var suitIndexR = this.o6m_1.o2(b.s6m());
|
|
148
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.t6m() | 0;
|
|
149
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.t6m() | 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.p6m(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).p6m = function (a, b) {
|
|
173
|
+
return b.t6m() - a.t6m() | 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.p6m(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).p6m = function (a, b) {
|
|
196
|
+
return a.q6m_1 - b.q6m_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.p6m(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
201
201
|
};
|
|
202
202
|
var CardIndexComparator_instance;
|
|
203
203
|
function CardIndexComparator_getInstance() {
|
|
@@ -323,23 +323,23 @@
|
|
|
323
323
|
var $ENTRIES;
|
|
324
324
|
function Companion() {
|
|
325
325
|
}
|
|
326
|
-
protoOf(Companion).
|
|
326
|
+
protoOf(Companion).u6m = function (suit, number) {
|
|
327
327
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
328
328
|
};
|
|
329
|
-
protoOf(Companion).
|
|
329
|
+
protoOf(Companion).v6m = function (suit, cardNumber) {
|
|
330
330
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
331
331
|
};
|
|
332
|
-
protoOf(Companion).
|
|
332
|
+
protoOf(Companion).w6m = function (index) {
|
|
333
333
|
return new GameCard(index);
|
|
334
334
|
};
|
|
335
|
-
protoOf(Companion).
|
|
335
|
+
protoOf(Companion).x6m = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
336
336
|
var tmp;
|
|
337
337
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
338
338
|
tmp = null;
|
|
339
339
|
} else {
|
|
340
340
|
// Inline function 'kotlin.takeIf' call
|
|
341
341
|
var tmp_0;
|
|
342
|
-
if (previousHiddenCardWithMaxIndex.
|
|
342
|
+
if (previousHiddenCardWithMaxIndex.y6m()) {
|
|
343
343
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
344
344
|
} else {
|
|
345
345
|
tmp_0 = null;
|
|
@@ -347,8 +347,8 @@
|
|
|
347
347
|
tmp = tmp_0;
|
|
348
348
|
}
|
|
349
349
|
var tmp1_safe_receiver = tmp;
|
|
350
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
351
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
350
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q6m_1;
|
|
351
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.f6n(tmp2_safe_receiver, playerIndex, reverse);
|
|
352
352
|
var tmp_1;
|
|
353
353
|
if (tmp3_safe_receiver == null) {
|
|
354
354
|
tmp_1 = null;
|
|
@@ -367,12 +367,12 @@
|
|
|
367
367
|
var index = tmp_2;
|
|
368
368
|
return new GameCard(index);
|
|
369
369
|
};
|
|
370
|
-
protoOf(Companion).
|
|
370
|
+
protoOf(Companion).g6n = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
371
371
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
372
372
|
reverse = reverse === VOID ? false : reverse;
|
|
373
|
-
return $super === VOID ? this.
|
|
373
|
+
return $super === VOID ? this.x6m(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.x6m.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
374
374
|
};
|
|
375
|
-
protoOf(Companion).
|
|
375
|
+
protoOf(Companion).h6n = function (position) {
|
|
376
376
|
var index = 150 + position | 0;
|
|
377
377
|
return new GameCard(index);
|
|
378
378
|
};
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
return tmp;
|
|
479
479
|
}
|
|
480
480
|
function _get_isShirt__vd98rp($this) {
|
|
481
|
-
return $this.
|
|
481
|
+
return $this.q6m_1 >= 150 && $this.q6m_1 <= 202;
|
|
482
482
|
}
|
|
483
483
|
function CardName(name, ordinal) {
|
|
484
484
|
Enum.call(this, name, ordinal);
|
|
@@ -487,14 +487,14 @@
|
|
|
487
487
|
return getShortName(this);
|
|
488
488
|
};
|
|
489
489
|
function Companion_0() {
|
|
490
|
-
this.
|
|
491
|
-
this.
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
}
|
|
497
|
-
protoOf(Companion_0).
|
|
490
|
+
this.z6m_1 = -1;
|
|
491
|
+
this.a6n_1 = 13;
|
|
492
|
+
this.b6n_1 = 52;
|
|
493
|
+
this.c6n_1 = 150;
|
|
494
|
+
this.d6n_1 = 53;
|
|
495
|
+
this.e6n_1 = 999;
|
|
496
|
+
}
|
|
497
|
+
protoOf(Companion_0).f6n = function (_this__u8e3s4, playerIndex, reverse) {
|
|
498
498
|
var tmp;
|
|
499
499
|
if (reverse) {
|
|
500
500
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -564,83 +564,83 @@
|
|
|
564
564
|
return CardName_HIDDEN_instance;
|
|
565
565
|
}
|
|
566
566
|
function GameCard(index) {
|
|
567
|
-
this.
|
|
567
|
+
this.q6m_1 = index;
|
|
568
568
|
}
|
|
569
|
-
protoOf(GameCard).
|
|
569
|
+
protoOf(GameCard).s6m = function () {
|
|
570
570
|
var tmp;
|
|
571
|
-
var containsArg = this.
|
|
571
|
+
var containsArg = this.q6m_1;
|
|
572
572
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
573
573
|
tmp = Suit_DIAMOND_getInstance();
|
|
574
574
|
} else {
|
|
575
|
-
if (this.
|
|
575
|
+
if (this.q6m_1 <= 26) {
|
|
576
576
|
tmp = Suit_SPADE_getInstance();
|
|
577
577
|
} else {
|
|
578
|
-
if (this.
|
|
578
|
+
if (this.q6m_1 <= 39) {
|
|
579
579
|
tmp = Suit_HEART_getInstance();
|
|
580
580
|
} else {
|
|
581
|
-
if (this.
|
|
581
|
+
if (this.q6m_1 <= 52) {
|
|
582
582
|
tmp = Suit_CLUB_getInstance();
|
|
583
583
|
} else {
|
|
584
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
584
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.q6m_1);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
return tmp;
|
|
590
590
|
};
|
|
591
|
-
protoOf(GameCard).
|
|
591
|
+
protoOf(GameCard).t6m = function () {
|
|
592
592
|
var tmp;
|
|
593
|
-
if (this.
|
|
593
|
+
if (this.y6m()) {
|
|
594
594
|
tmp = -1;
|
|
595
595
|
} else {
|
|
596
|
-
tmp = this.
|
|
596
|
+
tmp = this.q6m_1 - imul(13, getIndex(this.s6m())) | 0;
|
|
597
597
|
}
|
|
598
598
|
return tmp;
|
|
599
599
|
};
|
|
600
600
|
protoOf(GameCard).m = function () {
|
|
601
|
-
return this.
|
|
601
|
+
return this.y6m() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.t6m());
|
|
602
602
|
};
|
|
603
|
-
protoOf(GameCard).
|
|
604
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
603
|
+
protoOf(GameCard).r6m = function () {
|
|
604
|
+
return !_get_isShirt__vd98rp(this) && !this.y6m();
|
|
605
605
|
};
|
|
606
|
-
protoOf(GameCard).
|
|
607
|
-
return this.
|
|
606
|
+
protoOf(GameCard).i6n = function () {
|
|
607
|
+
return this.q6m_1 === 999;
|
|
608
608
|
};
|
|
609
|
-
protoOf(GameCard).
|
|
610
|
-
return this.
|
|
609
|
+
protoOf(GameCard).y6m = function () {
|
|
610
|
+
return this.q6m_1 >= 53 && this.q6m_1 <= 105;
|
|
611
611
|
};
|
|
612
612
|
protoOf(GameCard).toString = function () {
|
|
613
|
-
return 'GameCard' + this.
|
|
613
|
+
return 'GameCard' + this.j6n();
|
|
614
614
|
};
|
|
615
|
-
protoOf(GameCard).
|
|
616
|
-
return '{' + this.
|
|
615
|
+
protoOf(GameCard).j6n = function () {
|
|
616
|
+
return '{' + this.k6n() + ', ' + this.q6m_1 + '}';
|
|
617
617
|
};
|
|
618
|
-
protoOf(GameCard).
|
|
619
|
-
if (this.
|
|
618
|
+
protoOf(GameCard).k6n = function () {
|
|
619
|
+
if (this.i6n()) {
|
|
620
620
|
return 'stub';
|
|
621
621
|
}
|
|
622
|
-
if (this.
|
|
622
|
+
if (this.y6m()) {
|
|
623
623
|
return 'hidden';
|
|
624
624
|
}
|
|
625
625
|
if (_get_isShirt__vd98rp(this)) {
|
|
626
626
|
return 'shirt';
|
|
627
627
|
}
|
|
628
|
-
return this.
|
|
628
|
+
return this.s6m().toString() + this.m().toString();
|
|
629
629
|
};
|
|
630
630
|
protoOf(GameCard).hashCode = function () {
|
|
631
|
-
return this.
|
|
631
|
+
return this.q6m_1;
|
|
632
632
|
};
|
|
633
633
|
protoOf(GameCard).equals = function (other) {
|
|
634
634
|
if (this === other)
|
|
635
635
|
return true;
|
|
636
636
|
if (!(other instanceof GameCard))
|
|
637
637
|
return false;
|
|
638
|
-
if (!(this.
|
|
638
|
+
if (!(this.q6m_1 === other.q6m_1))
|
|
639
639
|
return false;
|
|
640
640
|
return true;
|
|
641
641
|
};
|
|
642
642
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
643
|
-
return $this.
|
|
643
|
+
return $this.l6n_1.o1();
|
|
644
644
|
}
|
|
645
645
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
646
646
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values_0());
|
|
@@ -682,13 +682,13 @@
|
|
|
682
682
|
Companion_instance_1 = this;
|
|
683
683
|
var tmp = this;
|
|
684
684
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
685
|
-
tmp.
|
|
685
|
+
tmp.l6n_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
686
686
|
}
|
|
687
|
-
protoOf(Companion_1).
|
|
687
|
+
protoOf(Companion_1).d5g = function () {
|
|
688
688
|
return _get_$cachedSerializer__te6jhj(this);
|
|
689
689
|
};
|
|
690
|
-
protoOf(Companion_1).
|
|
691
|
-
return this.
|
|
690
|
+
protoOf(Companion_1).w12 = function (typeParamsSerializers) {
|
|
691
|
+
return this.d5g();
|
|
692
692
|
};
|
|
693
693
|
var Companion_instance_1;
|
|
694
694
|
function Companion_getInstance_1() {
|
|
@@ -805,7 +805,7 @@
|
|
|
805
805
|
}
|
|
806
806
|
function Companion_2() {
|
|
807
807
|
}
|
|
808
|
-
protoOf(Companion_2).
|
|
808
|
+
protoOf(Companion_2).j6o = function (randomPoolProvider, logger) {
|
|
809
809
|
var tmp0_random = new SecureRandom(logger);
|
|
810
810
|
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
811
811
|
};
|
|
@@ -815,12 +815,12 @@
|
|
|
815
815
|
}
|
|
816
816
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
817
817
|
CoroutineImpl.call(this, resultContinuation);
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
821
|
-
this.
|
|
822
|
-
this.
|
|
823
|
-
this.
|
|
818
|
+
this.s6o_1 = _this__u8e3s4;
|
|
819
|
+
this.t6o_1 = leftCardIndexForEachSuit;
|
|
820
|
+
this.u6o_1 = rightCardIndexForEachSuit;
|
|
821
|
+
this.v6o_1 = approximateRoundCountForGame;
|
|
822
|
+
this.w6o_1 = userData;
|
|
823
|
+
this.x6o_1 = provider;
|
|
824
824
|
}
|
|
825
825
|
protoOf($createNewShuffledCardDeckCOROUTINE$).q9 = function () {
|
|
826
826
|
var suspendResult = this.k9_1;
|
|
@@ -830,17 +830,17 @@
|
|
|
830
830
|
switch (tmp) {
|
|
831
831
|
case 0:
|
|
832
832
|
this.j9_1 = 4;
|
|
833
|
-
var tmp0 = this.
|
|
833
|
+
var tmp0 = this.x6o_1.a1_1;
|
|
834
834
|
if (tmp0 === 0) {
|
|
835
835
|
var tmp_0 = this;
|
|
836
|
-
var it = this.
|
|
837
|
-
tmp_0.
|
|
836
|
+
var it = this.s6o_1.m6n(this.t6o_1, this.u6o_1);
|
|
837
|
+
tmp_0.y6o_1 = this.s6o_1.q6n(it);
|
|
838
838
|
this.i9_1 = 3;
|
|
839
839
|
continue $sm;
|
|
840
840
|
} else {
|
|
841
841
|
if (tmp0 === 1) {
|
|
842
842
|
this.i9_1 = 2;
|
|
843
|
-
suspendResult = getRandomOrgCards(this.
|
|
843
|
+
suspendResult = getRandomOrgCards(this.s6o_1, this.t6o_1, this.u6o_1, this.v6o_1, this.w6o_1, false, this);
|
|
844
844
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
845
845
|
return suspendResult;
|
|
846
846
|
}
|
|
@@ -848,7 +848,7 @@
|
|
|
848
848
|
} else {
|
|
849
849
|
if (tmp0 === 2) {
|
|
850
850
|
this.i9_1 = 1;
|
|
851
|
-
suspendResult = getRandomOrgCards(this.
|
|
851
|
+
suspendResult = getRandomOrgCards(this.s6o_1, this.t6o_1, this.u6o_1, this.v6o_1, this.w6o_1, true, this);
|
|
852
852
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
853
853
|
return suspendResult;
|
|
854
854
|
}
|
|
@@ -862,15 +862,15 @@
|
|
|
862
862
|
|
|
863
863
|
break;
|
|
864
864
|
case 1:
|
|
865
|
-
this.
|
|
865
|
+
this.y6o_1 = suspendResult;
|
|
866
866
|
this.i9_1 = 3;
|
|
867
867
|
continue $sm;
|
|
868
868
|
case 2:
|
|
869
|
-
this.
|
|
869
|
+
this.y6o_1 = suspendResult;
|
|
870
870
|
this.i9_1 = 3;
|
|
871
871
|
continue $sm;
|
|
872
872
|
case 3:
|
|
873
|
-
return this.
|
|
873
|
+
return this.y6o_1;
|
|
874
874
|
case 4:
|
|
875
875
|
throw this.l9_1;
|
|
876
876
|
}
|
|
@@ -887,12 +887,12 @@
|
|
|
887
887
|
};
|
|
888
888
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
889
889
|
CoroutineImpl.call(this, resultContinuation);
|
|
890
|
-
this.
|
|
891
|
-
this.
|
|
892
|
-
this.
|
|
893
|
-
this.
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
890
|
+
this.c6o_1 = _this__u8e3s4;
|
|
891
|
+
this.d6o_1 = leftCardIndexForEachSuit;
|
|
892
|
+
this.e6o_1 = rightCardIndexForEachSuit;
|
|
893
|
+
this.f6o_1 = approximateRoundsCount;
|
|
894
|
+
this.g6o_1 = userData;
|
|
895
|
+
this.h6o_1 = signed;
|
|
896
896
|
}
|
|
897
897
|
protoOf($getRandomOrgCardsCOROUTINE$).q9 = function () {
|
|
898
898
|
var suspendResult = this.k9_1;
|
|
@@ -902,11 +902,11 @@
|
|
|
902
902
|
switch (tmp) {
|
|
903
903
|
case 0:
|
|
904
904
|
this.j9_1 = 5;
|
|
905
|
-
var cardsCount = this.
|
|
906
|
-
var tmp0_$this = this.
|
|
905
|
+
var cardsCount = this.c6o_1.t6n(this.d6o_1, this.e6o_1);
|
|
906
|
+
var tmp0_$this = this.c6o_1.a6p_1;
|
|
907
907
|
var tmp1_max = cardsCount - 1 | 0;
|
|
908
908
|
this.i9_1 = 1;
|
|
909
|
-
suspendResult = tmp0_$this.
|
|
909
|
+
suspendResult = tmp0_$this.j6h(this.f6o_1, this.g6o_1, 0, tmp1_max, cardsCount, this.h6o_1, VOID, this);
|
|
910
910
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
911
911
|
return suspendResult;
|
|
912
912
|
}
|
|
@@ -914,32 +914,32 @@
|
|
|
914
914
|
this.i9_1 = 2;
|
|
915
915
|
continue $sm;
|
|
916
916
|
case 1:
|
|
917
|
-
var unboxed = suspendResult.
|
|
917
|
+
var unboxed = suspendResult.ko_1;
|
|
918
918
|
suspendResult = new Result(unboxed);
|
|
919
919
|
this.i9_1 = 2;
|
|
920
920
|
continue $sm;
|
|
921
921
|
case 2:
|
|
922
|
-
var result = suspendResult.
|
|
922
|
+
var result = suspendResult.ko_1;
|
|
923
923
|
if (_Result___get_isSuccess__impl__sndoy8(result)) {
|
|
924
924
|
var tmp_0 = this;
|
|
925
925
|
throwOnFailure(result);
|
|
926
926
|
var tmp_1 = _Result___get_value__impl__bjfvqg(result);
|
|
927
927
|
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
928
|
-
var this_0 = normalizeCards(this.
|
|
928
|
+
var this_0 = normalizeCards(this.c6o_1, tmp2_cards, this.d6o_1);
|
|
929
929
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
930
930
|
var _iterator__ex2g4s = this_0.t();
|
|
931
931
|
while (_iterator__ex2g4s.u()) {
|
|
932
932
|
var item = _iterator__ex2g4s.v();
|
|
933
|
-
destination.e1(Companion_instance.
|
|
933
|
+
destination.e1(Companion_instance.w6m(item));
|
|
934
934
|
}
|
|
935
|
-
tmp_0.
|
|
935
|
+
tmp_0.i6o_1 = destination;
|
|
936
936
|
this.i9_1 = 4;
|
|
937
937
|
continue $sm;
|
|
938
938
|
} else {
|
|
939
939
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
940
|
-
this.
|
|
940
|
+
this.c6o_1.b6p_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
941
941
|
this.i9_1 = 3;
|
|
942
|
-
suspendResult = this.
|
|
942
|
+
suspendResult = this.c6o_1.n6n(this.d6o_1, this.e6o_1, this.f6o_1, this.g6o_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
943
943
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
944
944
|
return suspendResult;
|
|
945
945
|
}
|
|
@@ -947,11 +947,11 @@
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
case 3:
|
|
950
|
-
this.
|
|
950
|
+
this.i6o_1 = suspendResult;
|
|
951
951
|
this.i9_1 = 4;
|
|
952
952
|
continue $sm;
|
|
953
953
|
case 4:
|
|
954
|
-
return this.
|
|
954
|
+
return this.i6o_1;
|
|
955
955
|
case 5:
|
|
956
956
|
throw this.l9_1;
|
|
957
957
|
}
|
|
@@ -967,11 +967,11 @@
|
|
|
967
967
|
while (true);
|
|
968
968
|
};
|
|
969
969
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
970
|
-
this.
|
|
971
|
-
this.
|
|
972
|
-
this.
|
|
970
|
+
this.z6o_1 = random;
|
|
971
|
+
this.a6p_1 = randomPoolProvider;
|
|
972
|
+
this.b6p_1 = logger;
|
|
973
973
|
}
|
|
974
|
-
protoOf(CardsDealerProviderImpl).
|
|
974
|
+
protoOf(CardsDealerProviderImpl).m6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
975
975
|
// Inline function 'kotlin.collections.flatMap' call
|
|
976
976
|
var tmp0 = get_entries_0();
|
|
977
977
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -980,7 +980,7 @@
|
|
|
980
980
|
while (_iterator__ex2g4s.u()) {
|
|
981
981
|
var element = _iterator__ex2g4s.v();
|
|
982
982
|
// Inline function 'kotlin.collections.map' call
|
|
983
|
-
var this_0 = this.
|
|
983
|
+
var this_0 = this.c6p(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
984
984
|
// Inline function 'kotlin.collections.mapTo' call
|
|
985
985
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
986
986
|
var inductionVariable = this_0.r1_1;
|
|
@@ -990,7 +990,7 @@
|
|
|
990
990
|
var item = inductionVariable;
|
|
991
991
|
inductionVariable = inductionVariable + 1 | 0;
|
|
992
992
|
var it = item;
|
|
993
|
-
var tmp$ret$0 = Companion_instance.
|
|
993
|
+
var tmp$ret$0 = Companion_instance.u6m(element, it);
|
|
994
994
|
destination_0.e1(tmp$ret$0);
|
|
995
995
|
}
|
|
996
996
|
while (!(item === last));
|
|
@@ -999,27 +999,27 @@
|
|
|
999
999
|
}
|
|
1000
1000
|
return destination;
|
|
1001
1001
|
};
|
|
1002
|
-
protoOf(CardsDealerProviderImpl).
|
|
1002
|
+
protoOf(CardsDealerProviderImpl).c6p = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1003
1003
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
1004
1004
|
};
|
|
1005
|
-
protoOf(CardsDealerProviderImpl).
|
|
1005
|
+
protoOf(CardsDealerProviderImpl).t6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1006
1006
|
// Inline function 'kotlin.collections.sumOf' call
|
|
1007
1007
|
var sum = 0;
|
|
1008
1008
|
var _iterator__ex2g4s = get_entries_0().t();
|
|
1009
1009
|
while (_iterator__ex2g4s.u()) {
|
|
1010
1010
|
var element = _iterator__ex2g4s.v();
|
|
1011
1011
|
var tmp = sum;
|
|
1012
|
-
sum = tmp + count(this.
|
|
1012
|
+
sum = tmp + count(this.c6p(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
1013
1013
|
}
|
|
1014
1014
|
return sum;
|
|
1015
1015
|
};
|
|
1016
|
-
protoOf(CardsDealerProviderImpl).
|
|
1016
|
+
protoOf(CardsDealerProviderImpl).n6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1017
1017
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
1018
1018
|
tmp.k9_1 = Unit_instance;
|
|
1019
1019
|
tmp.l9_1 = null;
|
|
1020
1020
|
return tmp.q9();
|
|
1021
1021
|
};
|
|
1022
|
-
protoOf(CardsDealerProviderImpl).
|
|
1022
|
+
protoOf(CardsDealerProviderImpl).o6n = function (count, cards) {
|
|
1023
1023
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1024
1024
|
// Inline function 'kotlin.apply' call
|
|
1025
1025
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1050,7 +1050,7 @@
|
|
|
1050
1050
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
1051
1051
|
while (_iterator__ex2g4s_0.u()) {
|
|
1052
1052
|
var element = _iterator__ex2g4s_0.v();
|
|
1053
|
-
if (element.
|
|
1053
|
+
if (element.t6m() === card.t6m()) {
|
|
1054
1054
|
tmp$ret$2 = true;
|
|
1055
1055
|
break $l$block_1;
|
|
1056
1056
|
}
|
|
@@ -1065,7 +1065,7 @@
|
|
|
1065
1065
|
}
|
|
1066
1066
|
return this_0;
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(CardsDealerProviderImpl).
|
|
1068
|
+
protoOf(CardsDealerProviderImpl).p6n = function (cards, times) {
|
|
1069
1069
|
// Inline function 'kotlin.let' call
|
|
1070
1070
|
var shuffled = toMutableList(cards);
|
|
1071
1071
|
var inductionVariable = 0;
|
|
@@ -1073,57 +1073,57 @@
|
|
|
1073
1073
|
do {
|
|
1074
1074
|
var i = inductionVariable;
|
|
1075
1075
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1076
|
-
shuffled = this.
|
|
1076
|
+
shuffled = this.z6o_1.m6m(shuffled);
|
|
1077
1077
|
}
|
|
1078
1078
|
while (inductionVariable < times);
|
|
1079
1079
|
return shuffled;
|
|
1080
1080
|
};
|
|
1081
|
-
protoOf(CardsDealerProviderImpl).
|
|
1082
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1081
|
+
protoOf(CardsDealerProviderImpl).r6n = function (cards, times) {
|
|
1082
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.z6o_1), times, this.z6o_1));
|
|
1083
1083
|
};
|
|
1084
1084
|
function Companion_3() {
|
|
1085
1085
|
}
|
|
1086
|
-
protoOf(Companion_3).
|
|
1086
|
+
protoOf(Companion_3).d6p = function () {
|
|
1087
1087
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1088
1088
|
// Inline function 'kotlin.apply' call
|
|
1089
1089
|
var this_0 = ArrayList_init_$Create$();
|
|
1090
|
-
this_0.i1(listOf([Companion_instance.
|
|
1091
|
-
this_0.i1(listOf([Companion_instance.
|
|
1092
|
-
this_0.i1(listOf([Companion_instance.
|
|
1093
|
-
this_0.i1(listOf([Companion_instance.
|
|
1094
|
-
this_0.i1(listOf([Companion_instance.
|
|
1090
|
+
this_0.i1(listOf([Companion_instance.v6m(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1091
|
+
this_0.i1(listOf([Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.v6m(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.v6m(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.v6m(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1092
|
+
this_0.i1(listOf([Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1093
|
+
this_0.i1(listOf([Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.v6m(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1094
|
+
this_0.i1(listOf([Companion_instance.v6m(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.v6m(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.v6m(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1095
1095
|
return this_0;
|
|
1096
1096
|
};
|
|
1097
|
-
protoOf(Companion_3).
|
|
1098
|
-
return listOf([Companion_instance.
|
|
1097
|
+
protoOf(Companion_3).e6p = function () {
|
|
1098
|
+
return listOf([Companion_instance.v6m(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.v6m(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.v6m(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1099
1099
|
};
|
|
1100
1100
|
var Companion_instance_3;
|
|
1101
1101
|
function Companion_getInstance_3() {
|
|
1102
1102
|
return Companion_instance_3;
|
|
1103
1103
|
}
|
|
1104
1104
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1105
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1106
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1107
|
-
this.
|
|
1108
|
-
this.
|
|
1105
|
+
cards = cards === VOID ? Companion_instance_3.d6p() : cards;
|
|
1106
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.e6p() : cardsForLot;
|
|
1107
|
+
this.f6p_1 = cards;
|
|
1108
|
+
this.g6p_1 = cardsForLot;
|
|
1109
1109
|
}
|
|
1110
|
-
protoOf(FakeCardsDealerProvider).
|
|
1111
|
-
return this.
|
|
1110
|
+
protoOf(FakeCardsDealerProvider).m6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1111
|
+
return this.f6p_1;
|
|
1112
1112
|
};
|
|
1113
|
-
protoOf(FakeCardsDealerProvider).
|
|
1114
|
-
return this.
|
|
1113
|
+
protoOf(FakeCardsDealerProvider).n6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1114
|
+
return this.f6p_1;
|
|
1115
1115
|
};
|
|
1116
|
-
protoOf(FakeCardsDealerProvider).
|
|
1117
|
-
return this.
|
|
1116
|
+
protoOf(FakeCardsDealerProvider).o6n = function (count, cards) {
|
|
1117
|
+
return this.g6p_1;
|
|
1118
1118
|
};
|
|
1119
|
-
protoOf(FakeCardsDealerProvider).
|
|
1119
|
+
protoOf(FakeCardsDealerProvider).p6n = function (cards, times) {
|
|
1120
1120
|
return cards;
|
|
1121
1121
|
};
|
|
1122
|
-
protoOf(FakeCardsDealerProvider).
|
|
1122
|
+
protoOf(FakeCardsDealerProvider).r6n = function (cards, times) {
|
|
1123
1123
|
return cards;
|
|
1124
1124
|
};
|
|
1125
|
-
protoOf(FakeCardsDealerProvider).
|
|
1126
|
-
return this.
|
|
1125
|
+
protoOf(FakeCardsDealerProvider).t6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1126
|
+
return this.f6p_1.g1();
|
|
1127
1127
|
};
|
|
1128
1128
|
function CombinationsCheckerProvider() {
|
|
1129
1129
|
}
|
|
@@ -1150,16 +1150,16 @@
|
|
|
1150
1150
|
return takeLast(cards, longestCombinationSupport);
|
|
1151
1151
|
}
|
|
1152
1152
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1153
|
-
this.
|
|
1153
|
+
this.m6p_1 = function_0;
|
|
1154
1154
|
}
|
|
1155
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1156
|
-
return this.
|
|
1155
|
+
protoOf(sam$kotlin_Comparator$0).ce = function (a, b) {
|
|
1156
|
+
return this.m6p_1(a, b);
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1159
|
-
return this.
|
|
1159
|
+
return this.ce(a, b);
|
|
1160
1160
|
};
|
|
1161
1161
|
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
1162
|
-
return this.
|
|
1162
|
+
return this.m6p_1;
|
|
1163
1163
|
};
|
|
1164
1164
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1165
1165
|
var tmp;
|
|
@@ -1181,13 +1181,13 @@
|
|
|
1181
1181
|
};
|
|
1182
1182
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1183
1183
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1184
|
-
var tmp = first_0(a).
|
|
1185
|
-
var tmp$ret$1 = first_0(b).
|
|
1184
|
+
var tmp = first_0(a).q6m_1;
|
|
1185
|
+
var tmp$ret$1 = first_0(b).q6m_1;
|
|
1186
1186
|
return compareValues(tmp, tmp$ret$1);
|
|
1187
1187
|
}
|
|
1188
1188
|
function CombinationsCheckerProviderImpl() {
|
|
1189
1189
|
}
|
|
1190
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1190
|
+
protoOf(CombinationsCheckerProviderImpl).h6p = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1191
1191
|
// Inline function 'kotlin.apply' call
|
|
1192
1192
|
var this_0 = toMutableList(cards);
|
|
1193
1193
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1197,7 +1197,7 @@
|
|
|
1197
1197
|
var _iterator__ex2g4s = this_0.t();
|
|
1198
1198
|
while (_iterator__ex2g4s.u()) {
|
|
1199
1199
|
var element = _iterator__ex2g4s.v();
|
|
1200
|
-
if (element.
|
|
1200
|
+
if (element.r6m()) {
|
|
1201
1201
|
destination.e1(element);
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
@@ -1214,14 +1214,14 @@
|
|
|
1214
1214
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1215
1215
|
var previousCard = lastOrNull(combinationCards);
|
|
1216
1216
|
var currentCard = sortedByIndexCards.h1(i);
|
|
1217
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1217
|
+
var isNextInRow = !(previousCard == null) && currentCard.q6m_1 === (previousCard.q6m_1 + 1 | 0) && currentCard.s6m().equals(previousCard.s6m());
|
|
1218
1218
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.m2(currentCard.m());
|
|
1219
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1219
|
+
var passedSuitCheck = suit == null || currentCard.s6m().equals(suit);
|
|
1220
1220
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1221
1221
|
combinationCards.e1(currentCard);
|
|
1222
1222
|
} else {
|
|
1223
1223
|
if (combinationCards.g1() > (checkFromIndex - 1 | 0)) {
|
|
1224
|
-
combinations.i1(this.
|
|
1224
|
+
combinations.i1(this.l6p(toMutableList(combinationCards), supportedCombinations));
|
|
1225
1225
|
}
|
|
1226
1226
|
combinationCards.b3();
|
|
1227
1227
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1231,11 +1231,11 @@
|
|
|
1231
1231
|
}
|
|
1232
1232
|
while (inductionVariable <= last);
|
|
1233
1233
|
if (combinationCards.g1() > (checkFromIndex - 1 | 0)) {
|
|
1234
|
-
combinations.i1(this.
|
|
1234
|
+
combinations.i1(this.l6p(toMutableList(combinationCards), supportedCombinations));
|
|
1235
1235
|
}
|
|
1236
1236
|
return combinations;
|
|
1237
1237
|
};
|
|
1238
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1238
|
+
protoOf(CombinationsCheckerProviderImpl).j6p = function (cards, cardsCount, includeCardNames) {
|
|
1239
1239
|
// Inline function 'kotlin.apply' call
|
|
1240
1240
|
var this_0 = toMutableList(cards);
|
|
1241
1241
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1245,7 +1245,7 @@
|
|
|
1245
1245
|
var _iterator__ex2g4s = this_0.t();
|
|
1246
1246
|
while (_iterator__ex2g4s.u()) {
|
|
1247
1247
|
var element = _iterator__ex2g4s.v();
|
|
1248
|
-
if (element.
|
|
1248
|
+
if (element.r6m()) {
|
|
1249
1249
|
destination.e1(element);
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
@@ -1266,7 +1266,7 @@
|
|
|
1266
1266
|
var _iterator__ex2g4s_1 = sortedByNumberCards.t();
|
|
1267
1267
|
while (_iterator__ex2g4s_1.u()) {
|
|
1268
1268
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1269
|
-
var key = element_1.
|
|
1269
|
+
var key = element_1.t6m();
|
|
1270
1270
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1271
1271
|
var value = destination_1.v2(key);
|
|
1272
1272
|
var tmp;
|
|
@@ -1303,7 +1303,7 @@
|
|
|
1303
1303
|
}
|
|
1304
1304
|
return destination_3;
|
|
1305
1305
|
};
|
|
1306
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1306
|
+
protoOf(CombinationsCheckerProviderImpl).l6p = function (cards, supportedCombinations) {
|
|
1307
1307
|
// Inline function 'kotlin.collections.minOf' call
|
|
1308
1308
|
var iterator = supportedCombinations.t();
|
|
1309
1309
|
if (!iterator.u())
|
|
@@ -1333,28 +1333,28 @@
|
|
|
1333
1333
|
function DealerReducer() {
|
|
1334
1334
|
}
|
|
1335
1335
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1336
|
+
this.q6p_1 = logger;
|
|
1337
|
+
this.r6p_1 = enableLogs;
|
|
1338
1338
|
}
|
|
1339
|
-
protoOf(DealerReducerImpl).
|
|
1339
|
+
protoOf(DealerReducerImpl).n6p = function (cards, cardsToRemove) {
|
|
1340
1340
|
var list = cards;
|
|
1341
1341
|
var _iterator__ex2g4s = cardsToRemove.t();
|
|
1342
1342
|
while (_iterator__ex2g4s.u()) {
|
|
1343
1343
|
var gameCard = _iterator__ex2g4s.v();
|
|
1344
|
-
list = this.
|
|
1344
|
+
list = this.o6p(list, gameCard);
|
|
1345
1345
|
}
|
|
1346
1346
|
return list;
|
|
1347
1347
|
};
|
|
1348
|
-
protoOf(DealerReducerImpl).
|
|
1348
|
+
protoOf(DealerReducerImpl).o6p = function (cards, cardToRemove) {
|
|
1349
1349
|
var tmp;
|
|
1350
|
-
if (!cardToRemove.
|
|
1351
|
-
if (this.
|
|
1352
|
-
this.
|
|
1350
|
+
if (!cardToRemove.y6m() && cards.m2(cardToRemove)) {
|
|
1351
|
+
if (this.r6p_1) {
|
|
1352
|
+
this.q6p_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.g1() - 1 | 0));
|
|
1353
1353
|
}
|
|
1354
1354
|
tmp = minus(cards, cardToRemove);
|
|
1355
1355
|
} else {
|
|
1356
|
-
if (this.
|
|
1357
|
-
this.
|
|
1356
|
+
if (this.r6p_1) {
|
|
1357
|
+
this.q6p_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.g1() - 1 | 0));
|
|
1358
1358
|
}
|
|
1359
1359
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1360
1360
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1362,7 +1362,7 @@
|
|
|
1362
1362
|
var _iterator__ex2g4s = cards.t();
|
|
1363
1363
|
while (_iterator__ex2g4s.u()) {
|
|
1364
1364
|
var element = _iterator__ex2g4s.v();
|
|
1365
|
-
if (!element.
|
|
1365
|
+
if (!element.y6m()) {
|
|
1366
1366
|
destination.e1(element);
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
@@ -1373,34 +1373,34 @@
|
|
|
1373
1373
|
var _iterator__ex2g4s_0 = cards.t();
|
|
1374
1374
|
while (_iterator__ex2g4s_0.u()) {
|
|
1375
1375
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1376
|
-
if (element_0.
|
|
1376
|
+
if (element_0.y6m()) {
|
|
1377
1377
|
destination_0.e1(element_0);
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
var hiddenCards = destination_0;
|
|
1381
1381
|
if (hiddenCards.r()) {
|
|
1382
|
-
this.
|
|
1382
|
+
this.q6p_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1383
1383
|
}
|
|
1384
1384
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1385
1385
|
}
|
|
1386
1386
|
return tmp;
|
|
1387
1387
|
};
|
|
1388
|
-
protoOf(DealerReducerImpl).
|
|
1389
|
-
if (this.
|
|
1390
|
-
this.
|
|
1388
|
+
protoOf(DealerReducerImpl).p6p = function (cards, cardToAdd) {
|
|
1389
|
+
if (this.r6p_1) {
|
|
1390
|
+
this.q6p_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.g1() + 1 | 0));
|
|
1391
1391
|
}
|
|
1392
1392
|
if (cards.m2(cardToAdd)) {
|
|
1393
|
-
this.
|
|
1393
|
+
this.q6p_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1394
1394
|
}
|
|
1395
1395
|
return plus_0(cards, cardToAdd);
|
|
1396
1396
|
};
|
|
1397
1397
|
//region block: post-declaration
|
|
1398
|
-
protoOf(CardsDealerProviderImpl).
|
|
1399
|
-
protoOf(CardsDealerProviderImpl).
|
|
1400
|
-
protoOf(FakeCardsDealerProvider).
|
|
1401
|
-
protoOf(FakeCardsDealerProvider).
|
|
1402
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1403
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1398
|
+
protoOf(CardsDealerProviderImpl).q6n = standardShuffledCards$default;
|
|
1399
|
+
protoOf(CardsDealerProviderImpl).s6n = realLifeShuffledCards$default;
|
|
1400
|
+
protoOf(FakeCardsDealerProvider).q6n = standardShuffledCards$default;
|
|
1401
|
+
protoOf(FakeCardsDealerProvider).s6n = realLifeShuffledCards$default;
|
|
1402
|
+
protoOf(CombinationsCheckerProviderImpl).i6p = findCardsInRowCombinations$default;
|
|
1403
|
+
protoOf(CombinationsCheckerProviderImpl).k6p = findSameCardsNumberCombinations$default;
|
|
1404
1404
|
//endregion
|
|
1405
1405
|
//region block: init
|
|
1406
1406
|
CoreConfig_instance = new CoreConfig();
|