client_plugin_logic_deb 1.8.468 → 1.8.469
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 +73 -73
- package/Kosi-Kodein-kodein-di.js +608 -608
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1620 -1620
- package/Logic_Debertz-ai_module.js +583 -583
- package/Logic_Debertz-bot_engine.js +3274 -0
- package/Logic_Debertz-bot_engine.js.map +1 -0
- package/Logic_Debertz-client_plugin.d.ts +4 -2
- package/Logic_Debertz-client_plugin.js +5221 -5038
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2129 -2129
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18320 -18143
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +12500 -12443
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +2118 -2059
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +2514 -2329
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +3367 -3367
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +46 -46
- package/kotlinx-io-kotlinx-io-core.js +576 -576
- package/kotlinx-serialization-kotlinx-serialization-core.js +1857 -1857
- package/kotlinx-serialization-kotlinx-serialization-json.js +1447 -1447
- package/ktor-ktor-client-content-negotiation.js +210 -210
- package/ktor-ktor-client-core.js +3042 -3042
- package/ktor-ktor-client-logging.js +1120 -1120
- package/ktor-ktor-events.js +11 -11
- package/ktor-ktor-http-cio.js +522 -522
- package/ktor-ktor-http.js +733 -733
- package/ktor-ktor-io.js +1101 -1101
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +246 -246
- package/ktor-ktor-serialization.js +119 -119
- package/ktor-ktor-utils.js +834 -834
- package/ktor-ktor-websockets.js +50 -50
- package/package.json +1 -1
- package/random-library-crypto-rand.js +12 -12
- package/random-library-secure-random.js +7 -7
- package/raspberry-cardgame-lib-core.js +256 -256
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +997 -997
- package/uuid.js +27 -27
|
@@ -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.$_$.ne;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.sd;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.dd;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.b;
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.cj;
|
|
27
|
+
var Comparator = kotlin_kotlin.$_$.oi;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.md;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
31
|
-
var take = kotlin_kotlin.$_$.
|
|
32
|
-
var toList = kotlin_kotlin.$_$.
|
|
33
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
34
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
35
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
31
|
+
var take = kotlin_kotlin.$_$.ba;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.ha;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.aa;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.bk;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.nd;
|
|
36
36
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
37
|
-
var Enum = kotlin_kotlin.$_$.
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.ri;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.qb;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.f;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.zj;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.qd;
|
|
44
44
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.o6;
|
|
45
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
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.$_$.
|
|
47
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ob;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ya;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.od;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.aj;
|
|
51
51
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.z2;
|
|
52
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.fk;
|
|
53
53
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.c3;
|
|
54
54
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.b3;
|
|
55
55
|
var addAll = kotlin_kotlin.$_$.c6;
|
|
56
|
-
var until = kotlin_kotlin.$_$.
|
|
57
|
-
var count = kotlin_kotlin.$_$.
|
|
56
|
+
var until = kotlin_kotlin.$_$.ff;
|
|
57
|
+
var count = kotlin_kotlin.$_$.k7;
|
|
58
58
|
var Collection = kotlin_kotlin.$_$.m5;
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.be;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.na;
|
|
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.$_$.
|
|
63
|
+
var listOf = kotlin_kotlin.$_$.v8;
|
|
64
|
+
var first = kotlin_kotlin.$_$.y7;
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.x9;
|
|
66
66
|
var asReversed = kotlin_kotlin.$_$.g6;
|
|
67
67
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
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.$_$.
|
|
68
|
+
var equals = kotlin_kotlin.$_$.ed;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.rc;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.ld;
|
|
71
|
+
var first_0 = kotlin_kotlin.$_$.x7;
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.wa;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.v9;
|
|
74
|
+
var lastOrNull = kotlin_kotlin.$_$.p8;
|
|
75
75
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.w9;
|
|
77
77
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.w1;
|
|
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.$_$.
|
|
78
|
+
var compareTo = kotlin_kotlin.$_$.cd;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.qe;
|
|
80
|
+
var dropLast = kotlin_kotlin.$_$.m7;
|
|
81
|
+
var plus = kotlin_kotlin.$_$.i9;
|
|
82
|
+
var minus = kotlin_kotlin.$_$.b9;
|
|
83
|
+
var plus_0 = kotlin_kotlin.$_$.j9;
|
|
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.r6l(cards, times) : $super.r6l.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.t6l(cards, times) : $super.t6l.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.j6n(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.j6n.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.l6n(cards, cardsCount, includeCardNames) : $super.l6n.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).h46 = 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.q6k_1 = suit;
|
|
141
141
|
}
|
|
142
|
-
protoOf(CardSuitSortingComparator).
|
|
143
|
-
if (!a.
|
|
142
|
+
protoOf(CardSuitSortingComparator).r6k = function (a, b) {
|
|
143
|
+
if (!a.t6k() || !b.t6k()) {
|
|
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.q6k_1.o2(a.u6k());
|
|
147
|
+
var suitIndexR = this.q6k_1.o2(b.u6k());
|
|
148
|
+
var sortedNumberL = imul(suitIndexL, 13) + a.v6k() | 0;
|
|
149
|
+
var sortedNumberR = imul(suitIndexR, 13) + b.v6k() | 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.r6k(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).r6k = function (a, b) {
|
|
173
|
+
return b.v6k() - a.v6k() | 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.r6k(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).r6k = function (a, b) {
|
|
196
|
+
return a.s6k_1 - b.s6k_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.r6k(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
201
201
|
};
|
|
202
202
|
var CardIndexComparator_instance;
|
|
203
203
|
function CardIndexComparator_getInstance() {
|
|
@@ -314,23 +314,23 @@
|
|
|
314
314
|
}
|
|
315
315
|
function Companion() {
|
|
316
316
|
}
|
|
317
|
-
protoOf(Companion).
|
|
317
|
+
protoOf(Companion).w6k = function (suit, number) {
|
|
318
318
|
return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
|
|
319
319
|
};
|
|
320
|
-
protoOf(Companion).
|
|
320
|
+
protoOf(Companion).x6k = function (suit, cardNumber) {
|
|
321
321
|
return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
|
|
322
322
|
};
|
|
323
|
-
protoOf(Companion).
|
|
323
|
+
protoOf(Companion).y6k = function (index) {
|
|
324
324
|
return new GameCard(index);
|
|
325
325
|
};
|
|
326
|
-
protoOf(Companion).
|
|
326
|
+
protoOf(Companion).z6k = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
327
327
|
var tmp;
|
|
328
328
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
329
329
|
tmp = null;
|
|
330
330
|
} else {
|
|
331
331
|
// Inline function 'kotlin.takeIf' call
|
|
332
332
|
var tmp_0;
|
|
333
|
-
if (previousHiddenCardWithMaxIndex.
|
|
333
|
+
if (previousHiddenCardWithMaxIndex.a6l()) {
|
|
334
334
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
335
335
|
} else {
|
|
336
336
|
tmp_0 = null;
|
|
@@ -338,8 +338,8 @@
|
|
|
338
338
|
tmp = tmp_0;
|
|
339
339
|
}
|
|
340
340
|
var tmp1_safe_receiver = tmp;
|
|
341
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
342
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
341
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s6k_1;
|
|
342
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.h6l(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).i6l = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
362
362
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
363
363
|
reverse = reverse === VOID ? false : reverse;
|
|
364
|
-
return $super === VOID ? this.
|
|
364
|
+
return $super === VOID ? this.z6k(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.z6k.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
365
365
|
};
|
|
366
|
-
protoOf(Companion).
|
|
366
|
+
protoOf(Companion).j6l = function (position) {
|
|
367
367
|
var index = 150 + position | 0;
|
|
368
368
|
return new GameCard(index);
|
|
369
369
|
};
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
return tmp;
|
|
470
470
|
}
|
|
471
471
|
function _get_isShirt__vd98rp($this) {
|
|
472
|
-
return $this.
|
|
472
|
+
return $this.s6k_1 >= 150 && $this.s6k_1 <= 202;
|
|
473
473
|
}
|
|
474
474
|
function CardName(name, ordinal) {
|
|
475
475
|
Enum.call(this, name, ordinal);
|
|
@@ -478,14 +478,14 @@
|
|
|
478
478
|
return getShortName(this);
|
|
479
479
|
};
|
|
480
480
|
function Companion_0() {
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
487
|
-
}
|
|
488
|
-
protoOf(Companion_0).
|
|
481
|
+
this.b6l_1 = -1;
|
|
482
|
+
this.c6l_1 = 13;
|
|
483
|
+
this.d6l_1 = 52;
|
|
484
|
+
this.e6l_1 = 150;
|
|
485
|
+
this.f6l_1 = 53;
|
|
486
|
+
this.g6l_1 = 999;
|
|
487
|
+
}
|
|
488
|
+
protoOf(Companion_0).h6l = 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,83 +555,83 @@
|
|
|
555
555
|
return CardName_HIDDEN_instance;
|
|
556
556
|
}
|
|
557
557
|
function GameCard(index) {
|
|
558
|
-
this.
|
|
558
|
+
this.s6k_1 = index;
|
|
559
559
|
}
|
|
560
|
-
protoOf(GameCard).
|
|
560
|
+
protoOf(GameCard).u6k = function () {
|
|
561
561
|
var tmp;
|
|
562
|
-
var containsArg = this.
|
|
562
|
+
var containsArg = this.s6k_1;
|
|
563
563
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
564
564
|
tmp = Suit_DIAMOND_getInstance();
|
|
565
565
|
} else {
|
|
566
|
-
if (this.
|
|
566
|
+
if (this.s6k_1 <= 26) {
|
|
567
567
|
tmp = Suit_SPADE_getInstance();
|
|
568
568
|
} else {
|
|
569
|
-
if (this.
|
|
569
|
+
if (this.s6k_1 <= 39) {
|
|
570
570
|
tmp = Suit_HEART_getInstance();
|
|
571
571
|
} else {
|
|
572
|
-
if (this.
|
|
572
|
+
if (this.s6k_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.s6k_1);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
return tmp;
|
|
581
581
|
};
|
|
582
|
-
protoOf(GameCard).
|
|
582
|
+
protoOf(GameCard).v6k = function () {
|
|
583
583
|
var tmp;
|
|
584
|
-
if (this.
|
|
584
|
+
if (this.a6l()) {
|
|
585
585
|
tmp = -1;
|
|
586
586
|
} else {
|
|
587
|
-
tmp = this.
|
|
587
|
+
tmp = this.s6k_1 - imul(13, getIndex(this.u6k())) | 0;
|
|
588
588
|
}
|
|
589
589
|
return tmp;
|
|
590
590
|
};
|
|
591
591
|
protoOf(GameCard).m = function () {
|
|
592
|
-
return this.
|
|
592
|
+
return this.a6l() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.v6k());
|
|
593
593
|
};
|
|
594
|
-
protoOf(GameCard).
|
|
595
|
-
return !_get_isShirt__vd98rp(this) && !this.
|
|
594
|
+
protoOf(GameCard).t6k = function () {
|
|
595
|
+
return !_get_isShirt__vd98rp(this) && !this.a6l();
|
|
596
596
|
};
|
|
597
|
-
protoOf(GameCard).
|
|
598
|
-
return this.
|
|
597
|
+
protoOf(GameCard).k6l = function () {
|
|
598
|
+
return this.s6k_1 === 999;
|
|
599
599
|
};
|
|
600
|
-
protoOf(GameCard).
|
|
601
|
-
return this.
|
|
600
|
+
protoOf(GameCard).a6l = function () {
|
|
601
|
+
return this.s6k_1 >= 53 && this.s6k_1 <= 105;
|
|
602
602
|
};
|
|
603
603
|
protoOf(GameCard).toString = function () {
|
|
604
|
-
return 'GameCard' + this.
|
|
605
|
-
};
|
|
606
|
-
protoOf(GameCard).k6l = function () {
|
|
607
|
-
return '{' + this.l6l() + ', ' + this.r6k_1 + '}';
|
|
604
|
+
return 'GameCard' + this.l6l();
|
|
608
605
|
};
|
|
609
606
|
protoOf(GameCard).l6l = function () {
|
|
610
|
-
|
|
607
|
+
return '{' + this.m6l() + ', ' + this.s6k_1 + '}';
|
|
608
|
+
};
|
|
609
|
+
protoOf(GameCard).m6l = function () {
|
|
610
|
+
if (this.k6l()) {
|
|
611
611
|
return 'stub';
|
|
612
612
|
}
|
|
613
|
-
if (this.
|
|
613
|
+
if (this.a6l()) {
|
|
614
614
|
return 'hidden';
|
|
615
615
|
}
|
|
616
616
|
if (_get_isShirt__vd98rp(this)) {
|
|
617
617
|
return 'shirt';
|
|
618
618
|
}
|
|
619
|
-
return this.
|
|
619
|
+
return this.u6k().toString() + this.m().toString();
|
|
620
620
|
};
|
|
621
621
|
protoOf(GameCard).hashCode = function () {
|
|
622
|
-
return this.
|
|
622
|
+
return this.s6k_1;
|
|
623
623
|
};
|
|
624
624
|
protoOf(GameCard).equals = function (other) {
|
|
625
625
|
if (this === other)
|
|
626
626
|
return true;
|
|
627
627
|
if (!(other instanceof GameCard))
|
|
628
628
|
return false;
|
|
629
|
-
if (!(this.
|
|
629
|
+
if (!(this.s6k_1 === other.s6k_1))
|
|
630
630
|
return false;
|
|
631
631
|
return true;
|
|
632
632
|
};
|
|
633
633
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
634
|
-
return $this.
|
|
634
|
+
return $this.n6l_1.o1();
|
|
635
635
|
}
|
|
636
636
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
637
637
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -673,13 +673,13 @@
|
|
|
673
673
|
Companion_instance_1 = this;
|
|
674
674
|
var tmp = this;
|
|
675
675
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
676
|
-
tmp.
|
|
676
|
+
tmp.n6l_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
677
677
|
}
|
|
678
|
-
protoOf(Companion_1).
|
|
678
|
+
protoOf(Companion_1).f5e = function () {
|
|
679
679
|
return _get_$cachedSerializer__te6jhj(this);
|
|
680
680
|
};
|
|
681
|
-
protoOf(Companion_1).
|
|
682
|
-
return this.
|
|
681
|
+
protoOf(Companion_1).y10 = function (typeParamsSerializers) {
|
|
682
|
+
return this.f5e();
|
|
683
683
|
};
|
|
684
684
|
var Companion_instance_1;
|
|
685
685
|
function Companion_getInstance_1() {
|
|
@@ -774,9 +774,9 @@
|
|
|
774
774
|
}
|
|
775
775
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
776
776
|
var tmp = new $getRandomOrgCardsCOROUTINE$($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
777
|
-
tmp.
|
|
778
|
-
tmp.
|
|
779
|
-
return tmp.
|
|
777
|
+
tmp.k9_1 = Unit_instance;
|
|
778
|
+
tmp.l9_1 = null;
|
|
779
|
+
return tmp.q9();
|
|
780
780
|
}
|
|
781
781
|
function normalizeCards($this, cards, leftCardIndexForEachSuit) {
|
|
782
782
|
var oneSuitCount = cards.g1() / get_entries().g1() | 0;
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
}
|
|
797
797
|
function Companion_2() {
|
|
798
798
|
}
|
|
799
|
-
protoOf(Companion_2).
|
|
799
|
+
protoOf(Companion_2).l6m = function (randomPoolProvider, logger) {
|
|
800
800
|
var tmp0_random = new SecureRandom(logger);
|
|
801
801
|
return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
|
|
802
802
|
};
|
|
@@ -806,40 +806,40 @@
|
|
|
806
806
|
}
|
|
807
807
|
function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
|
|
808
808
|
CoroutineImpl.call(this, resultContinuation);
|
|
809
|
-
this.
|
|
810
|
-
this.
|
|
811
|
-
this.
|
|
812
|
-
this.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
}
|
|
816
|
-
protoOf($createNewShuffledCardDeckCOROUTINE$).
|
|
817
|
-
var suspendResult = this.
|
|
809
|
+
this.u6m_1 = _this__u8e3s4;
|
|
810
|
+
this.v6m_1 = leftCardIndexForEachSuit;
|
|
811
|
+
this.w6m_1 = rightCardIndexForEachSuit;
|
|
812
|
+
this.x6m_1 = approximateRoundCountForGame;
|
|
813
|
+
this.y6m_1 = userData;
|
|
814
|
+
this.z6m_1 = provider;
|
|
815
|
+
}
|
|
816
|
+
protoOf($createNewShuffledCardDeckCOROUTINE$).q9 = function () {
|
|
817
|
+
var suspendResult = this.k9_1;
|
|
818
818
|
$sm: do
|
|
819
819
|
try {
|
|
820
|
-
var tmp = this.
|
|
820
|
+
var tmp = this.i9_1;
|
|
821
821
|
switch (tmp) {
|
|
822
822
|
case 0:
|
|
823
|
-
this.
|
|
824
|
-
var tmp0 = this.
|
|
823
|
+
this.j9_1 = 4;
|
|
824
|
+
var tmp0 = this.z6m_1.a1_1;
|
|
825
825
|
if (tmp0 === 0) {
|
|
826
826
|
var tmp_0 = this;
|
|
827
|
-
var it = this.
|
|
828
|
-
tmp_0.
|
|
829
|
-
this.
|
|
827
|
+
var it = this.u6m_1.o6l(this.v6m_1, this.w6m_1);
|
|
828
|
+
tmp_0.a6n_1 = this.u6m_1.s6l(it);
|
|
829
|
+
this.i9_1 = 3;
|
|
830
830
|
continue $sm;
|
|
831
831
|
} else {
|
|
832
832
|
if (tmp0 === 1) {
|
|
833
|
-
this.
|
|
834
|
-
suspendResult = getRandomOrgCards(this.
|
|
833
|
+
this.i9_1 = 2;
|
|
834
|
+
suspendResult = getRandomOrgCards(this.u6m_1, this.v6m_1, this.w6m_1, this.x6m_1, this.y6m_1, false, this);
|
|
835
835
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
836
836
|
return suspendResult;
|
|
837
837
|
}
|
|
838
838
|
continue $sm;
|
|
839
839
|
} else {
|
|
840
840
|
if (tmp0 === 2) {
|
|
841
|
-
this.
|
|
842
|
-
suspendResult = getRandomOrgCards(this.
|
|
841
|
+
this.i9_1 = 1;
|
|
842
|
+
suspendResult = getRandomOrgCards(this.u6m_1, this.v6m_1, this.w6m_1, this.x6m_1, this.y6m_1, true, this);
|
|
843
843
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
844
844
|
return suspendResult;
|
|
845
845
|
}
|
|
@@ -853,84 +853,84 @@
|
|
|
853
853
|
|
|
854
854
|
break;
|
|
855
855
|
case 1:
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
856
|
+
this.a6n_1 = suspendResult;
|
|
857
|
+
this.i9_1 = 3;
|
|
858
858
|
continue $sm;
|
|
859
859
|
case 2:
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
860
|
+
this.a6n_1 = suspendResult;
|
|
861
|
+
this.i9_1 = 3;
|
|
862
862
|
continue $sm;
|
|
863
863
|
case 3:
|
|
864
|
-
return this.
|
|
864
|
+
return this.a6n_1;
|
|
865
865
|
case 4:
|
|
866
|
-
throw this.
|
|
866
|
+
throw this.l9_1;
|
|
867
867
|
}
|
|
868
868
|
} catch ($p) {
|
|
869
869
|
var e = $p;
|
|
870
|
-
if (this.
|
|
870
|
+
if (this.j9_1 === 4) {
|
|
871
871
|
throw e;
|
|
872
872
|
} else {
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
873
|
+
this.i9_1 = this.j9_1;
|
|
874
|
+
this.l9_1 = e;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
while (true);
|
|
878
878
|
};
|
|
879
879
|
function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
|
|
880
880
|
CoroutineImpl.call(this, resultContinuation);
|
|
881
|
-
this.
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
884
|
-
this.
|
|
885
|
-
this.
|
|
886
|
-
this.
|
|
887
|
-
}
|
|
888
|
-
protoOf($getRandomOrgCardsCOROUTINE$).
|
|
889
|
-
var suspendResult = this.
|
|
881
|
+
this.e6m_1 = _this__u8e3s4;
|
|
882
|
+
this.f6m_1 = leftCardIndexForEachSuit;
|
|
883
|
+
this.g6m_1 = rightCardIndexForEachSuit;
|
|
884
|
+
this.h6m_1 = approximateRoundsCount;
|
|
885
|
+
this.i6m_1 = userData;
|
|
886
|
+
this.j6m_1 = signed;
|
|
887
|
+
}
|
|
888
|
+
protoOf($getRandomOrgCardsCOROUTINE$).q9 = function () {
|
|
889
|
+
var suspendResult = this.k9_1;
|
|
890
890
|
$sm: do
|
|
891
891
|
try {
|
|
892
|
-
var tmp = this.
|
|
892
|
+
var tmp = this.i9_1;
|
|
893
893
|
switch (tmp) {
|
|
894
894
|
case 0:
|
|
895
|
-
this.
|
|
896
|
-
var cardsCount = this.
|
|
897
|
-
var tmp0_$this = this.
|
|
895
|
+
this.j9_1 = 5;
|
|
896
|
+
var cardsCount = this.e6m_1.v6l(this.f6m_1, this.g6m_1);
|
|
897
|
+
var tmp0_$this = this.e6m_1.c6n_1;
|
|
898
898
|
var tmp1_max = cardsCount - 1 | 0;
|
|
899
|
-
this.
|
|
900
|
-
suspendResult = tmp0_$this.
|
|
899
|
+
this.i9_1 = 1;
|
|
900
|
+
suspendResult = tmp0_$this.l6f(this.h6m_1, this.i6m_1, 0, tmp1_max, cardsCount, this.j6m_1, VOID, this);
|
|
901
901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
902
902
|
return suspendResult;
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
this.
|
|
905
|
+
this.i9_1 = 2;
|
|
906
906
|
continue $sm;
|
|
907
907
|
case 1:
|
|
908
|
-
var unboxed = suspendResult.
|
|
908
|
+
var unboxed = suspendResult.mm_1;
|
|
909
909
|
suspendResult = new Result(unboxed);
|
|
910
|
-
this.
|
|
910
|
+
this.i9_1 = 2;
|
|
911
911
|
continue $sm;
|
|
912
912
|
case 2:
|
|
913
|
-
var result = suspendResult.
|
|
913
|
+
var result = suspendResult.mm_1;
|
|
914
914
|
if (_Result___get_isSuccess__impl__sndoy8(result)) {
|
|
915
915
|
var tmp_0 = this;
|
|
916
916
|
throwOnFailure(result);
|
|
917
917
|
var tmp_1 = _Result___get_value__impl__bjfvqg(result);
|
|
918
918
|
var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
|
|
919
|
-
var this_0 = normalizeCards(this.
|
|
919
|
+
var this_0 = normalizeCards(this.e6m_1, tmp2_cards, this.f6m_1);
|
|
920
920
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
921
921
|
var _iterator__ex2g4s = this_0.t();
|
|
922
922
|
while (_iterator__ex2g4s.u()) {
|
|
923
923
|
var item = _iterator__ex2g4s.v();
|
|
924
|
-
destination.e1(Companion_instance.
|
|
924
|
+
destination.e1(Companion_instance.y6k(item));
|
|
925
925
|
}
|
|
926
|
-
tmp_0.
|
|
927
|
-
this.
|
|
926
|
+
tmp_0.k6m_1 = destination;
|
|
927
|
+
this.i9_1 = 4;
|
|
928
928
|
continue $sm;
|
|
929
929
|
} else {
|
|
930
930
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
933
|
-
suspendResult = this.
|
|
931
|
+
this.e6m_1.d6n_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
932
|
+
this.i9_1 = 3;
|
|
933
|
+
suspendResult = this.e6m_1.p6l(this.f6m_1, this.g6m_1, this.h6m_1, this.i6m_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
934
934
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
935
935
|
return suspendResult;
|
|
936
936
|
}
|
|
@@ -938,31 +938,31 @@
|
|
|
938
938
|
}
|
|
939
939
|
|
|
940
940
|
case 3:
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
941
|
+
this.k6m_1 = suspendResult;
|
|
942
|
+
this.i9_1 = 4;
|
|
943
943
|
continue $sm;
|
|
944
944
|
case 4:
|
|
945
|
-
return this.
|
|
945
|
+
return this.k6m_1;
|
|
946
946
|
case 5:
|
|
947
|
-
throw this.
|
|
947
|
+
throw this.l9_1;
|
|
948
948
|
}
|
|
949
949
|
} catch ($p) {
|
|
950
950
|
var e = $p;
|
|
951
|
-
if (this.
|
|
951
|
+
if (this.j9_1 === 5) {
|
|
952
952
|
throw e;
|
|
953
953
|
} else {
|
|
954
|
-
this.
|
|
955
|
-
this.
|
|
954
|
+
this.i9_1 = this.j9_1;
|
|
955
|
+
this.l9_1 = e;
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
while (true);
|
|
959
959
|
};
|
|
960
960
|
function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
961
|
+
this.b6n_1 = random;
|
|
962
|
+
this.c6n_1 = randomPoolProvider;
|
|
963
|
+
this.d6n_1 = logger;
|
|
964
964
|
}
|
|
965
|
-
protoOf(CardsDealerProviderImpl).
|
|
965
|
+
protoOf(CardsDealerProviderImpl).o6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
966
966
|
// Inline function 'kotlin.collections.flatMap' call
|
|
967
967
|
var tmp0 = get_entries();
|
|
968
968
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
while (_iterator__ex2g4s.u()) {
|
|
972
972
|
var element = _iterator__ex2g4s.v();
|
|
973
973
|
// Inline function 'kotlin.collections.map' call
|
|
974
|
-
var this_0 = this.
|
|
974
|
+
var this_0 = this.e6n(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
975
975
|
// Inline function 'kotlin.collections.mapTo' call
|
|
976
976
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
977
977
|
var inductionVariable = this_0.r1_1;
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
var item = inductionVariable;
|
|
982
982
|
inductionVariable = inductionVariable + 1 | 0;
|
|
983
983
|
var it = item;
|
|
984
|
-
var tmp$ret$0 = Companion_instance.
|
|
984
|
+
var tmp$ret$0 = Companion_instance.w6k(element, it);
|
|
985
985
|
destination_0.e1(tmp$ret$0);
|
|
986
986
|
}
|
|
987
987
|
while (!(item === last));
|
|
@@ -990,27 +990,27 @@
|
|
|
990
990
|
}
|
|
991
991
|
return destination;
|
|
992
992
|
};
|
|
993
|
-
protoOf(CardsDealerProviderImpl).
|
|
993
|
+
protoOf(CardsDealerProviderImpl).e6n = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
994
994
|
return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
|
|
995
995
|
};
|
|
996
|
-
protoOf(CardsDealerProviderImpl).
|
|
996
|
+
protoOf(CardsDealerProviderImpl).v6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
997
997
|
// Inline function 'kotlin.collections.sumOf' call
|
|
998
998
|
var sum = 0;
|
|
999
999
|
var _iterator__ex2g4s = get_entries().t();
|
|
1000
1000
|
while (_iterator__ex2g4s.u()) {
|
|
1001
1001
|
var element = _iterator__ex2g4s.v();
|
|
1002
1002
|
var tmp = sum;
|
|
1003
|
-
sum = tmp + count(this.
|
|
1003
|
+
sum = tmp + count(this.e6n(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
|
|
1004
1004
|
}
|
|
1005
1005
|
return sum;
|
|
1006
1006
|
};
|
|
1007
|
-
protoOf(CardsDealerProviderImpl).
|
|
1007
|
+
protoOf(CardsDealerProviderImpl).p6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1008
1008
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
1009
|
-
tmp.
|
|
1010
|
-
tmp.
|
|
1011
|
-
return tmp.
|
|
1009
|
+
tmp.k9_1 = Unit_instance;
|
|
1010
|
+
tmp.l9_1 = null;
|
|
1011
|
+
return tmp.q9();
|
|
1012
1012
|
};
|
|
1013
|
-
protoOf(CardsDealerProviderImpl).
|
|
1013
|
+
protoOf(CardsDealerProviderImpl).q6l = function (count, cards) {
|
|
1014
1014
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1015
1015
|
// Inline function 'kotlin.apply' call
|
|
1016
1016
|
var this_0 = ArrayList_init_$Create$();
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
1042
1042
|
while (_iterator__ex2g4s_0.u()) {
|
|
1043
1043
|
var element = _iterator__ex2g4s_0.v();
|
|
1044
|
-
if (element.
|
|
1044
|
+
if (element.v6k() === card.v6k()) {
|
|
1045
1045
|
tmp$ret$2 = true;
|
|
1046
1046
|
break $l$block_1;
|
|
1047
1047
|
}
|
|
@@ -1056,7 +1056,7 @@
|
|
|
1056
1056
|
}
|
|
1057
1057
|
return this_0;
|
|
1058
1058
|
};
|
|
1059
|
-
protoOf(CardsDealerProviderImpl).
|
|
1059
|
+
protoOf(CardsDealerProviderImpl).r6l = function (cards, times) {
|
|
1060
1060
|
// Inline function 'kotlin.let' call
|
|
1061
1061
|
var shuffled = toMutableList(cards);
|
|
1062
1062
|
var inductionVariable = 0;
|
|
@@ -1064,57 +1064,57 @@
|
|
|
1064
1064
|
do {
|
|
1065
1065
|
var i = inductionVariable;
|
|
1066
1066
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1067
|
-
shuffled = this.
|
|
1067
|
+
shuffled = this.b6n_1.o6k(shuffled);
|
|
1068
1068
|
}
|
|
1069
1069
|
while (inductionVariable < times);
|
|
1070
1070
|
return shuffled;
|
|
1071
1071
|
};
|
|
1072
|
-
protoOf(CardsDealerProviderImpl).
|
|
1073
|
-
return toList(overhand(riffle(toMutableList(cards), times, this.
|
|
1072
|
+
protoOf(CardsDealerProviderImpl).t6l = function (cards, times) {
|
|
1073
|
+
return toList(overhand(riffle(toMutableList(cards), times, this.b6n_1), times, this.b6n_1));
|
|
1074
1074
|
};
|
|
1075
1075
|
function Companion_3() {
|
|
1076
1076
|
}
|
|
1077
|
-
protoOf(Companion_3).
|
|
1077
|
+
protoOf(Companion_3).f6n = function () {
|
|
1078
1078
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1079
1079
|
// Inline function 'kotlin.apply' call
|
|
1080
1080
|
var this_0 = ArrayList_init_$Create$();
|
|
1081
|
-
this_0.i1(listOf([Companion_instance.
|
|
1082
|
-
this_0.i1(listOf([Companion_instance.
|
|
1083
|
-
this_0.i1(listOf([Companion_instance.
|
|
1084
|
-
this_0.i1(listOf([Companion_instance.
|
|
1085
|
-
this_0.i1(listOf([Companion_instance.
|
|
1081
|
+
this_0.i1(listOf([Companion_instance.x6k(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
|
|
1082
|
+
this_0.i1(listOf([Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.x6k(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.x6k(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.x6k(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
|
|
1083
|
+
this_0.i1(listOf([Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
|
|
1084
|
+
this_0.i1(listOf([Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.x6k(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_QUEEN_getInstance())]));
|
|
1085
|
+
this_0.i1(listOf([Companion_instance.x6k(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.x6k(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.x6k(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
|
|
1086
1086
|
return this_0;
|
|
1087
1087
|
};
|
|
1088
|
-
protoOf(Companion_3).
|
|
1089
|
-
return listOf([Companion_instance.
|
|
1088
|
+
protoOf(Companion_3).g6n = function () {
|
|
1089
|
+
return listOf([Companion_instance.x6k(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.x6k(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.x6k(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
|
|
1090
1090
|
};
|
|
1091
1091
|
var Companion_instance_3;
|
|
1092
1092
|
function Companion_getInstance_3() {
|
|
1093
1093
|
return Companion_instance_3;
|
|
1094
1094
|
}
|
|
1095
1095
|
function FakeCardsDealerProvider(cards, cardsForLot) {
|
|
1096
|
-
cards = cards === VOID ? Companion_instance_3.
|
|
1097
|
-
cardsForLot = cardsForLot === VOID ? Companion_instance_3.
|
|
1098
|
-
this.
|
|
1099
|
-
this.
|
|
1096
|
+
cards = cards === VOID ? Companion_instance_3.f6n() : cards;
|
|
1097
|
+
cardsForLot = cardsForLot === VOID ? Companion_instance_3.g6n() : cardsForLot;
|
|
1098
|
+
this.h6n_1 = cards;
|
|
1099
|
+
this.i6n_1 = cardsForLot;
|
|
1100
1100
|
}
|
|
1101
|
-
protoOf(FakeCardsDealerProvider).
|
|
1102
|
-
return this.
|
|
1103
|
-
};
|
|
1104
|
-
protoOf(FakeCardsDealerProvider).o6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1105
|
-
return this.g6n_1;
|
|
1101
|
+
protoOf(FakeCardsDealerProvider).o6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1102
|
+
return this.h6n_1;
|
|
1106
1103
|
};
|
|
1107
|
-
protoOf(FakeCardsDealerProvider).p6l = function (
|
|
1104
|
+
protoOf(FakeCardsDealerProvider).p6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
1108
1105
|
return this.h6n_1;
|
|
1109
1106
|
};
|
|
1110
|
-
protoOf(FakeCardsDealerProvider).q6l = function (
|
|
1107
|
+
protoOf(FakeCardsDealerProvider).q6l = function (count, cards) {
|
|
1108
|
+
return this.i6n_1;
|
|
1109
|
+
};
|
|
1110
|
+
protoOf(FakeCardsDealerProvider).r6l = function (cards, times) {
|
|
1111
1111
|
return cards;
|
|
1112
1112
|
};
|
|
1113
|
-
protoOf(FakeCardsDealerProvider).
|
|
1113
|
+
protoOf(FakeCardsDealerProvider).t6l = function (cards, times) {
|
|
1114
1114
|
return cards;
|
|
1115
1115
|
};
|
|
1116
|
-
protoOf(FakeCardsDealerProvider).
|
|
1117
|
-
return this.
|
|
1116
|
+
protoOf(FakeCardsDealerProvider).v6l = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
|
|
1117
|
+
return this.h6n_1.g1();
|
|
1118
1118
|
};
|
|
1119
1119
|
function CombinationsCheckerProvider() {
|
|
1120
1120
|
}
|
|
@@ -1141,16 +1141,16 @@
|
|
|
1141
1141
|
return takeLast(cards, longestCombinationSupport);
|
|
1142
1142
|
}
|
|
1143
1143
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1144
|
-
this.
|
|
1144
|
+
this.o6n_1 = function_0;
|
|
1145
1145
|
}
|
|
1146
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1147
|
-
return this.
|
|
1146
|
+
protoOf(sam$kotlin_Comparator$0).hd = function (a, b) {
|
|
1147
|
+
return this.o6n_1(a, b);
|
|
1148
1148
|
};
|
|
1149
1149
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1150
|
-
return this.
|
|
1150
|
+
return this.hd(a, b);
|
|
1151
1151
|
};
|
|
1152
1152
|
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
1153
|
-
return this.
|
|
1153
|
+
return this.o6n_1;
|
|
1154
1154
|
};
|
|
1155
1155
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1156
1156
|
var tmp;
|
|
@@ -1172,13 +1172,13 @@
|
|
|
1172
1172
|
};
|
|
1173
1173
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1174
1174
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1175
|
-
var tmp = first_0(a).
|
|
1176
|
-
var tmp$ret$1 = first_0(b).
|
|
1175
|
+
var tmp = first_0(a).s6k_1;
|
|
1176
|
+
var tmp$ret$1 = first_0(b).s6k_1;
|
|
1177
1177
|
return compareValues(tmp, tmp$ret$1);
|
|
1178
1178
|
}
|
|
1179
1179
|
function CombinationsCheckerProviderImpl() {
|
|
1180
1180
|
}
|
|
1181
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1181
|
+
protoOf(CombinationsCheckerProviderImpl).j6n = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
|
|
1182
1182
|
// Inline function 'kotlin.apply' call
|
|
1183
1183
|
var this_0 = toMutableList(cards);
|
|
1184
1184
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
var _iterator__ex2g4s = this_0.t();
|
|
1189
1189
|
while (_iterator__ex2g4s.u()) {
|
|
1190
1190
|
var element = _iterator__ex2g4s.v();
|
|
1191
|
-
if (element.
|
|
1191
|
+
if (element.t6k()) {
|
|
1192
1192
|
destination.e1(element);
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
@@ -1205,14 +1205,14 @@
|
|
|
1205
1205
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1206
1206
|
var previousCard = lastOrNull(combinationCards);
|
|
1207
1207
|
var currentCard = sortedByIndexCards.h1(i);
|
|
1208
|
-
var isNextInRow = !(previousCard == null) && currentCard.
|
|
1208
|
+
var isNextInRow = !(previousCard == null) && currentCard.s6k_1 === (previousCard.s6k_1 + 1 | 0) && currentCard.u6k().equals(previousCard.u6k());
|
|
1209
1209
|
var passedCardNamesCheck = includeCardNames == null || includeCardNames.m2(currentCard.m());
|
|
1210
|
-
var passedSuitCheck = suit == null || currentCard.
|
|
1210
|
+
var passedSuitCheck = suit == null || currentCard.u6k().equals(suit);
|
|
1211
1211
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1212
1212
|
combinationCards.e1(currentCard);
|
|
1213
1213
|
} else {
|
|
1214
1214
|
if (combinationCards.g1() > (checkFromIndex - 1 | 0)) {
|
|
1215
|
-
combinations.i1(this.
|
|
1215
|
+
combinations.i1(this.n6n(toMutableList(combinationCards), supportedCombinations));
|
|
1216
1216
|
}
|
|
1217
1217
|
combinationCards.b3();
|
|
1218
1218
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
@@ -1222,11 +1222,11 @@
|
|
|
1222
1222
|
}
|
|
1223
1223
|
while (inductionVariable <= last);
|
|
1224
1224
|
if (combinationCards.g1() > (checkFromIndex - 1 | 0)) {
|
|
1225
|
-
combinations.i1(this.
|
|
1225
|
+
combinations.i1(this.n6n(toMutableList(combinationCards), supportedCombinations));
|
|
1226
1226
|
}
|
|
1227
1227
|
return combinations;
|
|
1228
1228
|
};
|
|
1229
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1229
|
+
protoOf(CombinationsCheckerProviderImpl).l6n = function (cards, cardsCount, includeCardNames) {
|
|
1230
1230
|
// Inline function 'kotlin.apply' call
|
|
1231
1231
|
var this_0 = toMutableList(cards);
|
|
1232
1232
|
sortWith(this_0, CardIndexComparator_instance);
|
|
@@ -1236,7 +1236,7 @@
|
|
|
1236
1236
|
var _iterator__ex2g4s = this_0.t();
|
|
1237
1237
|
while (_iterator__ex2g4s.u()) {
|
|
1238
1238
|
var element = _iterator__ex2g4s.v();
|
|
1239
|
-
if (element.
|
|
1239
|
+
if (element.t6k()) {
|
|
1240
1240
|
destination.e1(element);
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
var _iterator__ex2g4s_1 = sortedByNumberCards.t();
|
|
1258
1258
|
while (_iterator__ex2g4s_1.u()) {
|
|
1259
1259
|
var element_1 = _iterator__ex2g4s_1.v();
|
|
1260
|
-
var key = element_1.
|
|
1260
|
+
var key = element_1.v6k();
|
|
1261
1261
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1262
1262
|
var value = destination_1.v2(key);
|
|
1263
1263
|
var tmp;
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
}
|
|
1295
1295
|
return destination_3;
|
|
1296
1296
|
};
|
|
1297
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1297
|
+
protoOf(CombinationsCheckerProviderImpl).n6n = function (cards, supportedCombinations) {
|
|
1298
1298
|
// Inline function 'kotlin.collections.minOf' call
|
|
1299
1299
|
var iterator = supportedCombinations.t();
|
|
1300
1300
|
if (!iterator.u())
|
|
@@ -1324,28 +1324,28 @@
|
|
|
1324
1324
|
function DealerReducer() {
|
|
1325
1325
|
}
|
|
1326
1326
|
function DealerReducerImpl(logger, enableLogs) {
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1327
|
+
this.s6n_1 = logger;
|
|
1328
|
+
this.t6n_1 = enableLogs;
|
|
1329
1329
|
}
|
|
1330
|
-
protoOf(DealerReducerImpl).
|
|
1330
|
+
protoOf(DealerReducerImpl).p6n = function (cards, cardsToRemove) {
|
|
1331
1331
|
var list = cards;
|
|
1332
1332
|
var _iterator__ex2g4s = cardsToRemove.t();
|
|
1333
1333
|
while (_iterator__ex2g4s.u()) {
|
|
1334
1334
|
var gameCard = _iterator__ex2g4s.v();
|
|
1335
|
-
list = this.
|
|
1335
|
+
list = this.q6n(list, gameCard);
|
|
1336
1336
|
}
|
|
1337
1337
|
return list;
|
|
1338
1338
|
};
|
|
1339
|
-
protoOf(DealerReducerImpl).
|
|
1339
|
+
protoOf(DealerReducerImpl).q6n = function (cards, cardToRemove) {
|
|
1340
1340
|
var tmp;
|
|
1341
|
-
if (!cardToRemove.
|
|
1342
|
-
if (this.
|
|
1343
|
-
this.
|
|
1341
|
+
if (!cardToRemove.a6l() && cards.m2(cardToRemove)) {
|
|
1342
|
+
if (this.t6n_1) {
|
|
1343
|
+
this.s6n_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.g1() - 1 | 0));
|
|
1344
1344
|
}
|
|
1345
1345
|
tmp = minus(cards, cardToRemove);
|
|
1346
1346
|
} else {
|
|
1347
|
-
if (this.
|
|
1348
|
-
this.
|
|
1347
|
+
if (this.t6n_1) {
|
|
1348
|
+
this.s6n_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.g1() - 1 | 0));
|
|
1349
1349
|
}
|
|
1350
1350
|
// Inline function 'kotlin.collections.filterNot' call
|
|
1351
1351
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
@@ -1353,7 +1353,7 @@
|
|
|
1353
1353
|
var _iterator__ex2g4s = cards.t();
|
|
1354
1354
|
while (_iterator__ex2g4s.u()) {
|
|
1355
1355
|
var element = _iterator__ex2g4s.v();
|
|
1356
|
-
if (!element.
|
|
1356
|
+
if (!element.a6l()) {
|
|
1357
1357
|
destination.e1(element);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
@@ -1364,34 +1364,34 @@
|
|
|
1364
1364
|
var _iterator__ex2g4s_0 = cards.t();
|
|
1365
1365
|
while (_iterator__ex2g4s_0.u()) {
|
|
1366
1366
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1367
|
-
if (element_0.
|
|
1367
|
+
if (element_0.a6l()) {
|
|
1368
1368
|
destination_0.e1(element_0);
|
|
1369
1369
|
}
|
|
1370
1370
|
}
|
|
1371
1371
|
var hiddenCards = destination_0;
|
|
1372
1372
|
if (hiddenCards.r()) {
|
|
1373
|
-
this.
|
|
1373
|
+
this.s6n_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
|
|
1374
1374
|
}
|
|
1375
1375
|
tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
|
|
1376
1376
|
}
|
|
1377
1377
|
return tmp;
|
|
1378
1378
|
};
|
|
1379
|
-
protoOf(DealerReducerImpl).
|
|
1380
|
-
if (this.
|
|
1381
|
-
this.
|
|
1379
|
+
protoOf(DealerReducerImpl).r6n = function (cards, cardToAdd) {
|
|
1380
|
+
if (this.t6n_1) {
|
|
1381
|
+
this.s6n_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.g1() + 1 | 0));
|
|
1382
1382
|
}
|
|
1383
1383
|
if (cards.m2(cardToAdd)) {
|
|
1384
|
-
this.
|
|
1384
|
+
this.s6n_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1385
1385
|
}
|
|
1386
1386
|
return plus_0(cards, cardToAdd);
|
|
1387
1387
|
};
|
|
1388
1388
|
//region block: post-declaration
|
|
1389
|
-
protoOf(CardsDealerProviderImpl).
|
|
1390
|
-
protoOf(CardsDealerProviderImpl).
|
|
1391
|
-
protoOf(FakeCardsDealerProvider).
|
|
1392
|
-
protoOf(FakeCardsDealerProvider).
|
|
1393
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1394
|
-
protoOf(CombinationsCheckerProviderImpl).
|
|
1389
|
+
protoOf(CardsDealerProviderImpl).s6l = standardShuffledCards$default;
|
|
1390
|
+
protoOf(CardsDealerProviderImpl).u6l = realLifeShuffledCards$default;
|
|
1391
|
+
protoOf(FakeCardsDealerProvider).s6l = standardShuffledCards$default;
|
|
1392
|
+
protoOf(FakeCardsDealerProvider).u6l = realLifeShuffledCards$default;
|
|
1393
|
+
protoOf(CombinationsCheckerProviderImpl).k6n = findCardsInRowCombinations$default;
|
|
1394
|
+
protoOf(CombinationsCheckerProviderImpl).m6n = findSameCardsNumberCombinations$default;
|
|
1395
1395
|
//endregion
|
|
1396
1396
|
//region block: init
|
|
1397
1397
|
CoreConfig_instance = new CoreConfig();
|