raspberry_games_engine_helpers 1.8.362 → 1.8.363
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 +95 -95
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +740 -737
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2092 -2031
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1216 -1241
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.d.ts +45 -45
- package/Logic_Debertz-engine.js +11390 -11611
- package/Logic_Debertz-engine.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3956 -3905
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +23 -23
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2667 -2663
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1803 -1791
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +60 -60
- package/raspberry-cardgame-lib-logger.js +108 -108
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +82 -82
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
21
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
26
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
27
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
28
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
29
|
-
var Enum = kotlin_kotlin.$_$.
|
|
30
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.da;
|
|
20
|
+
var initMetadataForObject = kotlin_kotlin.$_$.m9;
|
|
21
|
+
var defineProp = kotlin_kotlin.$_$.a9;
|
|
22
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
23
|
+
var THROW_CCE = kotlin_kotlin.$_$.cd;
|
|
24
|
+
var Comparator = kotlin_kotlin.$_$.sc;
|
|
25
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.xd;
|
|
26
|
+
var Unit_instance = kotlin_kotlin.$_$.a4;
|
|
27
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.i9;
|
|
28
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
29
|
+
var Enum = kotlin_kotlin.$_$.vc;
|
|
30
|
+
var initMetadataForClass = kotlin_kotlin.$_$.h9;
|
|
31
31
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
32
|
-
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.
|
|
33
|
-
var lazy = kotlin_kotlin.$_$.
|
|
32
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.d;
|
|
33
|
+
var lazy = kotlin_kotlin.$_$.vd;
|
|
34
34
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
35
35
|
//endregion
|
|
36
36
|
//region block: pre-declaration
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
function CoreConfig() {
|
|
47
47
|
this.version = '0.0.53';
|
|
48
48
|
}
|
|
49
|
-
protoOf(CoreConfig).
|
|
49
|
+
protoOf(CoreConfig).k17 = function () {
|
|
50
50
|
return this.version;
|
|
51
51
|
};
|
|
52
52
|
var CoreConfig_instance;
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
}
|
|
56
56
|
function CardIndexComparator() {
|
|
57
57
|
}
|
|
58
|
-
protoOf(CardIndexComparator).
|
|
59
|
-
return a.
|
|
58
|
+
protoOf(CardIndexComparator).l17 = function (a, b) {
|
|
59
|
+
return a.m17_1 - b.m17_1 | 0;
|
|
60
60
|
};
|
|
61
61
|
protoOf(CardIndexComparator).compare = function (a, b) {
|
|
62
62
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
63
|
-
return this.
|
|
63
|
+
return this.l17(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
64
64
|
};
|
|
65
65
|
var CardIndexComparator_instance;
|
|
66
66
|
function CardIndexComparator_getInstance() {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
var CardName_HIDDEN_instance;
|
|
83
83
|
function getShortName($this) {
|
|
84
84
|
var tmp;
|
|
85
|
-
switch ($this.
|
|
85
|
+
switch ($this.h2_1) {
|
|
86
86
|
case 0:
|
|
87
87
|
tmp = 'A';
|
|
88
88
|
break;
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
}
|
|
154
154
|
function Companion() {
|
|
155
155
|
}
|
|
156
|
-
protoOf(Companion).
|
|
156
|
+
protoOf(Companion).n17 = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse) {
|
|
157
157
|
var tmp;
|
|
158
158
|
if (previousHiddenCardWithMaxIndex == null) {
|
|
159
159
|
tmp = null;
|
|
160
160
|
} else {
|
|
161
161
|
// Inline function 'kotlin.takeIf' call
|
|
162
162
|
var tmp_0;
|
|
163
|
-
if (previousHiddenCardWithMaxIndex.
|
|
163
|
+
if (previousHiddenCardWithMaxIndex.o17()) {
|
|
164
164
|
tmp_0 = previousHiddenCardWithMaxIndex;
|
|
165
165
|
} else {
|
|
166
166
|
tmp_0 = null;
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
tmp = tmp_0;
|
|
169
169
|
}
|
|
170
170
|
var tmp1_safe_receiver = tmp;
|
|
171
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
172
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.
|
|
171
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m17_1;
|
|
172
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.u17(tmp2_safe_receiver, playerIndex, reverse);
|
|
173
173
|
var tmp_1;
|
|
174
174
|
if (tmp3_safe_receiver == null) {
|
|
175
175
|
tmp_1 = null;
|
|
@@ -188,10 +188,10 @@
|
|
|
188
188
|
var index = tmp_2;
|
|
189
189
|
return new GameCard(index);
|
|
190
190
|
};
|
|
191
|
-
protoOf(Companion).
|
|
191
|
+
protoOf(Companion).v17 = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
|
|
192
192
|
previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
|
|
193
193
|
reverse = reverse === VOID ? false : reverse;
|
|
194
|
-
return $super === VOID ? this.
|
|
194
|
+
return $super === VOID ? this.n17(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.n17.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
|
|
195
195
|
};
|
|
196
196
|
var Companion_instance;
|
|
197
197
|
function Companion_getInstance() {
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
return tmp;
|
|
246
246
|
}
|
|
247
247
|
function _get_isShirt__vd98rp($this) {
|
|
248
|
-
return $this.
|
|
248
|
+
return $this.m17_1 >= 150 && $this.m17_1 <= 202;
|
|
249
249
|
}
|
|
250
250
|
function CardName(name, ordinal) {
|
|
251
251
|
Enum.call(this, name, ordinal);
|
|
@@ -254,13 +254,13 @@
|
|
|
254
254
|
return getShortName(this);
|
|
255
255
|
};
|
|
256
256
|
function Companion_0() {
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
257
|
+
this.p17_1 = -1;
|
|
258
|
+
this.q17_1 = 13;
|
|
259
|
+
this.r17_1 = 52;
|
|
260
|
+
this.s17_1 = 150;
|
|
261
|
+
this.t17_1 = 53;
|
|
262
262
|
}
|
|
263
|
-
protoOf(Companion_0).
|
|
263
|
+
protoOf(Companion_0).u17 = function (_this__u8e3s4, playerIndex, reverse) {
|
|
264
264
|
var tmp;
|
|
265
265
|
if (reverse) {
|
|
266
266
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -330,56 +330,56 @@
|
|
|
330
330
|
return CardName_HIDDEN_instance;
|
|
331
331
|
}
|
|
332
332
|
function GameCard(index) {
|
|
333
|
-
this.
|
|
333
|
+
this.m17_1 = index;
|
|
334
334
|
}
|
|
335
|
-
protoOf(GameCard).
|
|
335
|
+
protoOf(GameCard).w17 = function () {
|
|
336
336
|
var tmp;
|
|
337
|
-
var containsArg = this.
|
|
337
|
+
var containsArg = this.m17_1;
|
|
338
338
|
if (0 <= containsArg ? containsArg <= 13 : false) {
|
|
339
339
|
tmp = Suit_DIAMOND_getInstance();
|
|
340
340
|
} else {
|
|
341
|
-
if (this.
|
|
341
|
+
if (this.m17_1 <= 26) {
|
|
342
342
|
tmp = Suit_SPADE_getInstance();
|
|
343
343
|
} else {
|
|
344
|
-
if (this.
|
|
344
|
+
if (this.m17_1 <= 39) {
|
|
345
345
|
tmp = Suit_HEART_getInstance();
|
|
346
346
|
} else {
|
|
347
|
-
if (this.
|
|
347
|
+
if (this.m17_1 <= 52) {
|
|
348
348
|
tmp = Suit_CLUB_getInstance();
|
|
349
349
|
} else {
|
|
350
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
350
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.m17_1);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
return tmp;
|
|
356
356
|
};
|
|
357
|
-
protoOf(GameCard).
|
|
357
|
+
protoOf(GameCard).x17 = function () {
|
|
358
358
|
var tmp;
|
|
359
|
-
if (this.
|
|
359
|
+
if (this.o17()) {
|
|
360
360
|
tmp = -1;
|
|
361
361
|
} else {
|
|
362
|
-
tmp = this.
|
|
362
|
+
tmp = this.m17_1 - imul(13, getIndex(this.w17())) | 0;
|
|
363
363
|
}
|
|
364
364
|
return tmp;
|
|
365
365
|
};
|
|
366
|
-
protoOf(GameCard).
|
|
367
|
-
return this.
|
|
366
|
+
protoOf(GameCard).i2 = function () {
|
|
367
|
+
return this.o17() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.x17());
|
|
368
368
|
};
|
|
369
|
-
protoOf(GameCard).
|
|
370
|
-
return this.
|
|
369
|
+
protoOf(GameCard).o17 = function () {
|
|
370
|
+
return this.m17_1 >= 53 && this.m17_1 <= 105;
|
|
371
371
|
};
|
|
372
372
|
protoOf(GameCard).toString = function () {
|
|
373
373
|
if (_get_isShirt__vd98rp(this)) {
|
|
374
|
-
return 'GameCard(SHIRT, ' + this.
|
|
374
|
+
return 'GameCard(SHIRT, ' + this.m17_1 + ')';
|
|
375
375
|
}
|
|
376
|
-
if (this.
|
|
377
|
-
return 'GameCard(HIDDEN, ' + this.
|
|
376
|
+
if (this.o17()) {
|
|
377
|
+
return 'GameCard(HIDDEN, ' + this.m17_1 + ')';
|
|
378
378
|
}
|
|
379
|
-
return 'GameCard(' + this.
|
|
379
|
+
return 'GameCard(' + this.w17().toString() + this.i2().toString() + ', ' + this.m17_1 + ')';
|
|
380
380
|
};
|
|
381
381
|
protoOf(GameCard).hashCode = function () {
|
|
382
|
-
return this.
|
|
382
|
+
return this.m17_1;
|
|
383
383
|
};
|
|
384
384
|
protoOf(GameCard).equals = function (other) {
|
|
385
385
|
if (this === other)
|
|
@@ -387,12 +387,12 @@
|
|
|
387
387
|
if (!(other instanceof GameCard))
|
|
388
388
|
return false;
|
|
389
389
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
390
|
-
if (!(this.
|
|
390
|
+
if (!(this.m17_1 === tmp0_other_with_cast.m17_1))
|
|
391
391
|
return false;
|
|
392
392
|
return true;
|
|
393
393
|
};
|
|
394
394
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
395
|
-
return $this.
|
|
395
|
+
return $this.y17_1.v1();
|
|
396
396
|
}
|
|
397
397
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
398
398
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
var Suit_CLUB_instance;
|
|
404
404
|
function getSuitEmoji($this) {
|
|
405
405
|
var tmp;
|
|
406
|
-
switch ($this.
|
|
406
|
+
switch ($this.h2_1) {
|
|
407
407
|
case 0:
|
|
408
408
|
tmp = '\u2666\uFE0F';
|
|
409
409
|
break;
|
|
@@ -429,13 +429,13 @@
|
|
|
429
429
|
Companion_instance_1 = this;
|
|
430
430
|
var tmp = this;
|
|
431
431
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
432
|
-
tmp.
|
|
432
|
+
tmp.y17_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
|
|
433
433
|
}
|
|
434
|
-
protoOf(Companion_1).
|
|
434
|
+
protoOf(Companion_1).z17 = function () {
|
|
435
435
|
return _get_$cachedSerializer__te6jhj(this);
|
|
436
436
|
};
|
|
437
|
-
protoOf(Companion_1).
|
|
438
|
-
return this.
|
|
437
|
+
protoOf(Companion_1).cw = function (typeParamsSerializers) {
|
|
438
|
+
return this.z17();
|
|
439
439
|
};
|
|
440
440
|
var Companion_instance_1;
|
|
441
441
|
function Companion_getInstance_1() {
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
}
|
|
480
480
|
function getIndex(_this__u8e3s4) {
|
|
481
481
|
var tmp;
|
|
482
|
-
switch (_this__u8e3s4.
|
|
482
|
+
switch (_this__u8e3s4.h2_1) {
|
|
483
483
|
case 0:
|
|
484
484
|
tmp = 0;
|
|
485
485
|
break;
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
var $io$raspberryapps = $io.raspberryapps || ($io.raspberryapps = {});
|
|
511
511
|
var $io$raspberryapps$cardgame = $io$raspberryapps.cardgame || ($io$raspberryapps.cardgame = {});
|
|
512
512
|
var $io$raspberryapps$cardgame$core = $io$raspberryapps$cardgame.core || ($io$raspberryapps$cardgame.core = {});
|
|
513
|
-
defineProp($io$raspberryapps$cardgame$core, 'CoreConfig', CoreConfig_getInstance);
|
|
513
|
+
defineProp($io$raspberryapps$cardgame$core, 'CoreConfig', CoreConfig_getInstance, VOID, true);
|
|
514
514
|
}
|
|
515
515
|
$jsExportAll$(_);
|
|
516
516
|
_.$jsExportAll$ = $jsExportAll$;
|