@fortemate/dicechess-engine-wasm 0.4.0

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/main.js ADDED
@@ -0,0 +1,443 @@
1
+ import { load as __load } from "./__loader.js";
2
+ let exportedshouldBotAcceptDouble;
3
+ export { exportedshouldBotAcceptDouble as shouldBotAcceptDouble };
4
+ let exportedDiceChess;
5
+ export { exportedDiceChess as DiceChess };
6
+ let exportedendTurn;
7
+ export { exportedendTurn as endTurn };
8
+ let exportedestimateEquity;
9
+ export { exportedestimateEquity as estimateEquity };
10
+ let exportedgetAvailableTimePolicies;
11
+ export { exportedgetAvailableTimePolicies as getAvailableTimePolicies };
12
+ let exportedshouldBotAcceptDraw;
13
+ export { exportedshouldBotAcceptDraw as shouldBotAcceptDraw };
14
+ let exportedapplyMove;
15
+ export { exportedapplyMove as applyMove };
16
+ let exportedshouldBotOfferDraw;
17
+ export { exportedshouldBotOfferDraw as shouldBotOfferDraw };
18
+ let exportedgetAvailableBots;
19
+ export { exportedgetAvailableBots as getAvailableBots };
20
+ let exportedregisterOpeningBookBot;
21
+ export { exportedregisterOpeningBookBot as registerOpeningBookBot };
22
+ let exportedgetLegalUciMoves;
23
+ export { exportedgetLegalUciMoves as getLegalUciMoves };
24
+ let exportedgetBestMove;
25
+ export { exportedgetBestMove as getBestMove };
26
+ let exportedgetPieceFromDice;
27
+ export { exportedgetPieceFromDice as getPieceFromDice };
28
+ let exportedshouldBotOfferDouble;
29
+ export { exportedshouldBotOfferDouble as shouldBotOfferDouble };
30
+ let exportedcanonicalKey;
31
+ export { exportedcanonicalKey as canonicalKey };
32
+ let exportedapplyMoveFacade;
33
+ export { exportedapplyMoveFacade as applyMoveFacade };
34
+ let exportedgetPieceTypeAt;
35
+ export { exportedgetPieceTypeAt as getPieceTypeAt };
36
+ let exportedendTurnFacade;
37
+ export { exportedendTurnFacade as endTurnFacade };
38
+ let exportedEngineFacade;
39
+ export { exportedEngineFacade as EngineFacade };
40
+ let exportedgetBotMove;
41
+ export { exportedgetBotMove as getBotMove };
42
+ (await __load("./main.wasm", ({
43
+ "shouldBotAcceptDouble": ((x) => {
44
+ exportedshouldBotAcceptDouble = x;
45
+ }),
46
+ "DiceChess": ((x) => {
47
+ exportedDiceChess = x;
48
+ }),
49
+ "endTurn": ((x) => {
50
+ exportedendTurn = x;
51
+ }),
52
+ "estimateEquity": ((x) => {
53
+ exportedestimateEquity = x;
54
+ }),
55
+ "getAvailableTimePolicies": ((x) => {
56
+ exportedgetAvailableTimePolicies = x;
57
+ }),
58
+ "shouldBotAcceptDraw": ((x) => {
59
+ exportedshouldBotAcceptDraw = x;
60
+ }),
61
+ "applyMove": ((x) => {
62
+ exportedapplyMove = x;
63
+ }),
64
+ "shouldBotOfferDraw": ((x) => {
65
+ exportedshouldBotOfferDraw = x;
66
+ }),
67
+ "getAvailableBots": ((x) => {
68
+ exportedgetAvailableBots = x;
69
+ }),
70
+ "registerOpeningBookBot": ((x) => {
71
+ exportedregisterOpeningBookBot = x;
72
+ }),
73
+ "getLegalUciMoves": ((x) => {
74
+ exportedgetLegalUciMoves = x;
75
+ }),
76
+ "getBestMove": ((x) => {
77
+ exportedgetBestMove = x;
78
+ }),
79
+ "getPieceFromDice": ((x) => {
80
+ exportedgetPieceFromDice = x;
81
+ }),
82
+ "shouldBotOfferDouble": ((x) => {
83
+ exportedshouldBotOfferDouble = x;
84
+ }),
85
+ "canonicalKey": ((x) => {
86
+ exportedcanonicalKey = x;
87
+ }),
88
+ "applyMoveFacade": ((x) => {
89
+ exportedapplyMoveFacade = x;
90
+ }),
91
+ "getPieceTypeAt": ((x) => {
92
+ exportedgetPieceTypeAt = x;
93
+ }),
94
+ "endTurnFacade": ((x) => {
95
+ exportedendTurnFacade = x;
96
+ }),
97
+ "EngineFacade": ((x) => {
98
+ exportedEngineFacade = x;
99
+ }),
100
+ "getBotMove": ((x) => {
101
+ exportedgetBotMove = x;
102
+ })
103
+ }), ({}), ({}), ({
104
+ "0": ((x) => x.toString(16)),
105
+ "1": ((x, x1) => x.call(x1, "promotion")),
106
+ "2": ((x) => x.promotion),
107
+ "3": ((x, x1) => {
108
+ x.promotion = x1;
109
+ }),
110
+ "4": (() => Date.now()),
111
+ "5": ((x) => x.now()),
112
+ "6": (() => Date.now()),
113
+ "7": (() => Date.now()),
114
+ "8": ((x, x1) => x[x1]),
115
+ "9": ((x) => (typeof x)),
116
+ "10": ((x, x1) => x[x1]),
117
+ "11": ((x) => (typeof x)),
118
+ "12": ((x, x1) => x[x1]),
119
+ "13": ((x) => (typeof x)),
120
+ "14": ((x) => x.clock),
121
+ "15": ((x) => (typeof x)),
122
+ "16": ((x) => x.algorithm),
123
+ "17": ((x) => (typeof x)),
124
+ "18": ((x) => x.toUpperCase()),
125
+ "19": ((x) => x.toLowerCase()),
126
+ "20": ((x) => x.toLowerCase()),
127
+ "21": ((x) => x.toLowerCase()),
128
+ "22": ((x) => x.now()),
129
+ "23": ((x) => x.toUpperCase()),
130
+ "24": ((x) => Math.exp(x)),
131
+ "25": (() => (typeof performance)),
132
+ "26": (() => performance.now),
133
+ "27": (() => performance),
134
+ "28": (() => Date),
135
+ "29": ((x) => {
136
+ x["java.version"] = "1.8";
137
+ }),
138
+ "30": ((x) => {
139
+ x["java.vm.specification.version"] = "1.8";
140
+ }),
141
+ "31": ((x) => {
142
+ x["java.vm.specification.vendor"] = "Oracle Corporation";
143
+ }),
144
+ "32": ((x) => {
145
+ x["java.vm.specification.name"] = "Java Virtual Machine Specification";
146
+ }),
147
+ "33": ((x) => {
148
+ x["java.vm.name"] = "Scala.js";
149
+ }),
150
+ "34": ((x) => {
151
+ x["java.vm.version"] = "1.22.0";
152
+ }),
153
+ "35": ((x) => {
154
+ x["java.specification.version"] = "1.8";
155
+ }),
156
+ "36": ((x) => {
157
+ x["java.specification.vendor"] = "Oracle Corporation";
158
+ }),
159
+ "37": ((x) => {
160
+ x["java.specification.name"] = "Java Platform API Specification";
161
+ }),
162
+ "38": ((x) => {
163
+ x["file.separator"] = "/";
164
+ }),
165
+ "39": ((x) => {
166
+ x["path.separator"] = ":";
167
+ }),
168
+ "40": ((x) => {
169
+ x["line.separator"] = "\n";
170
+ }),
171
+ "41": ((x, x1, x2) => x.call(x1, x2)),
172
+ "42": ((x, x1) => x[x1]),
173
+ "43": (() => Object.prototype),
174
+ "44": ((x) => x.hasOwnProperty),
175
+ "45": ((x, x1, x2) => x.substring(x1, x2)),
176
+ "46": ((x) => x.length),
177
+ "47": ((x, x1) => x.exec(x1)),
178
+ "48": ((x) => x[1]),
179
+ "49": ((x) => x[2]),
180
+ "50": ((x) => x[0]),
181
+ "51": ((x, x1, x2) => x.substring(x1, x2)),
182
+ "52": ((x) => x.length),
183
+ "53": ((x, x1) => x[x1]),
184
+ "54": ((x, x1, x2) => {
185
+ x[x1] = x2;
186
+ }),
187
+ "55": ((x) => parseInt(x, 10)),
188
+ "56": ((f, d) => ((arg1$2, arg2$2, arg3$2) => f(d, arg1$2, arg2$2, arg3$2))),
189
+ "57": ((x, x1, x2) => x.replace(x1, x2)),
190
+ "58": ((x, x1) => x.indexOf("\\E", x1)),
191
+ "59": ((x, x1) => x.substring(x1)),
192
+ "60": ((x, x1, x2) => x.substring(x1, x2)),
193
+ "61": ((x, x1, x2) => x.call(x1, x2)),
194
+ "62": ((x, x1) => x[x1]),
195
+ "63": ((x, x1) => x[x1]),
196
+ "64": ((x, x1, x2) => x.substring(x1, x2)),
197
+ "65": ((x) => parseInt(x, 10)),
198
+ "66": ((x) => x.length),
199
+ "67": ((x, x1, x2) => x.substring(x1, x2)),
200
+ "68": ((x) => parseInt(x, 10)),
201
+ "69": ((x) => x.length),
202
+ "70": ((x, x1) => x[x1]),
203
+ "71": ((x, x1, x2) => x.substring(x1, x2)),
204
+ "72": ((x, x1) => x.indexOf("}", x1)),
205
+ "73": ((x, x1, x2) => x.substring(x1, x2)),
206
+ "74": ((x, x1, x2) => x.substring(x1, x2)),
207
+ "75": ((x) => parseInt(x, 16)),
208
+ "76": ((x, x1) => x.indexOf("}", x1)),
209
+ "77": ((x, x1, x2) => x.substring(x1, x2)),
210
+ "78": ((x, x1, x2) => x.substring(x1, x2)),
211
+ "79": ((x, x1, x2) => x.call(x1, x2)),
212
+ "80": ((x, x1) => x[x1]),
213
+ "81": ((x, x1) => x.get(x1)),
214
+ "82": ((x, x1) => x.has(x1)),
215
+ "83": ((x) => x.startsWith("Is")),
216
+ "84": ((x) => x.startsWith("sc=")),
217
+ "85": ((x) => x.startsWith("script=")),
218
+ "86": ((x) => x.startsWith("In")),
219
+ "87": ((x) => x.startsWith("blk=")),
220
+ "88": ((x) => x.startsWith("block=")),
221
+ "89": ((x, x1) => x.substring(x1)),
222
+ "90": ((x) => x.toLowerCase()),
223
+ "91": ((x, x1) => x.get(x1)),
224
+ "92": ((x, x1) => x.has(x1)),
225
+ "93": ((x) => x.toUpperCase()),
226
+ "94": ((f, d) => ((arg1$2) => f(d, arg1$2))),
227
+ "95": ((x, x1, x2) => x.replace(x1, x2)),
228
+ "96": ((x) => new RegExp(x, "u")),
229
+ "97": ((x, x1, x2) => x.set(x1, x2)),
230
+ "98": ((x, x1) => x.indexOf("\\E", x1)),
231
+ "99": ((x, x1) => x.push(x1)),
232
+ "100": ((x, x1, x2) => x.substring(x1, x2)),
233
+ "101": ((x, x1, x2) => x.call(x1, x2)),
234
+ "102": ((x, x1) => x.push(x1)),
235
+ "103": ((x) => x.length),
236
+ "104": ((x, x1, x2) => {
237
+ x[x1] = x2;
238
+ }),
239
+ "105": ((x, x1, x2) => x.substring(x1, x2)),
240
+ "106": ((x, x1, x2) => x.substring(x1, x2)),
241
+ "107": (() => [0]),
242
+ "108": ((x) => String.fromCodePoint(x)),
243
+ "109": (() => new Map()),
244
+ "110": (() => ["Lu", "Ll", "Lt", "LC", "Lm", "Lo", "L", "Mn", "Mc", "Me", "M", "Nd", "Nl", "No", "N", "Pc", "Pd", "Ps", "Pe", "Pi", "Pf", "Po", "P", "Sm", "Sc", "Sk", "So", "S", "Zs", "Zl", "Zp", "Z", "Cc", "Cf", "Cs", "Co", "Cn", "C"]),
245
+ "111": ((x) => x.length),
246
+ "112": ((x, x1) => x[x1]),
247
+ "113": ((x, x1, x2) => x.set(x1, x2)),
248
+ "114": ((x, x1, x2) => x.set(x1, x2)),
249
+ "115": ((x, x1, x2) => x.set(x1, x2)),
250
+ "116": ((x, x1, x2) => x.set(x1, x2)),
251
+ "117": ((x, x1) => x.set("IsAlphabetic", x1)),
252
+ "118": ((x, x1) => x.set("IsIdeographic", x1)),
253
+ "119": ((x, x1) => x.set("IsLetter", x1)),
254
+ "120": ((x, x1) => x.set("IsLowercase", x1)),
255
+ "121": ((x, x1) => x.set("IsUppercase", x1)),
256
+ "122": ((x, x1) => x.set("IsTitlecase", x1)),
257
+ "123": ((x, x1) => x.set("IsPunctuation", x1)),
258
+ "124": ((x, x1) => x.set("IsControl", x1)),
259
+ "125": ((x, x1) => x.set("IsWhite_Space", x1)),
260
+ "126": ((x, x1) => x.set("IsDigit", x1)),
261
+ "127": ((x, x1) => x.set("IsHex_Digit", x1)),
262
+ "128": ((x, x1) => x.set("IsJoin_Control", x1)),
263
+ "129": ((x, x1) => x.set("IsNoncharacter_Code_Point", x1)),
264
+ "130": ((x, x1) => x.set("IsAssigned", x1)),
265
+ "131": ((x, x1) => x.set("javaAlphabetic", x1)),
266
+ "132": ((x, x1) => x.set("javaDefined", x1)),
267
+ "133": ((x, x1) => x.set("javaDigit", x1)),
268
+ "134": ((x, x1) => x.set("javaIdentifierIgnorable", x1)),
269
+ "135": ((x, x1) => x.set("javaIdeographic", x1)),
270
+ "136": ((x, x1) => x.set("javaISOControl", x1)),
271
+ "137": ((x, x1) => x.set("javaJavaIdentifierPart", x1)),
272
+ "138": ((x, x1) => x.set("javaJavaIdentifierStart", x1)),
273
+ "139": ((x, x1) => x.set("javaLetterOrDigit", x1)),
274
+ "140": ((x, x1) => x.set("javaLowerCase", x1)),
275
+ "141": ((x, x1) => x.set("javaMirrored", x1)),
276
+ "142": ((x, x1) => x.set("javaSpaceChar", x1)),
277
+ "143": ((x, x1) => x.set("javaTitleCase", x1)),
278
+ "144": ((x, x1) => x.set("javaUnicodeIdentifierPart", x1)),
279
+ "145": ((x, x1) => x.set("javaUnicodeIdentifierStart", x1)),
280
+ "146": ((x, x1) => x.set("javaUpperCase", x1)),
281
+ "147": ((x, x1) => x.set("javaWhitespace", x1)),
282
+ "148": ((x, x1) => x.set("Lower", x1)),
283
+ "149": ((x, x1) => x.set("Upper", x1)),
284
+ "150": ((x, x1) => x.set("ASCII", x1)),
285
+ "151": ((x, x1) => x.set("Alpha", x1)),
286
+ "152": ((x, x1) => x.set("Digit", x1)),
287
+ "153": ((x, x1) => x.set("Alnum", x1)),
288
+ "154": ((x, x1) => x.set("Punct", x1)),
289
+ "155": ((x, x1) => x.set("Graph", x1)),
290
+ "156": ((x, x1) => x.set("Print", x1)),
291
+ "157": ((x, x1) => x.set("Blank", x1)),
292
+ "158": ((x, x1) => x.set("Cntrl", x1)),
293
+ "159": ((x, x1) => x.set("XDigit", x1)),
294
+ "160": ((x, x1) => x.set("Space", x1)),
295
+ "161": (() => new Map()),
296
+ "162": ((x) => x.set("signwriting", "SignWriting")),
297
+ "163": (() => new RegExp("^\\(\\?([idmsuxU]*)(?:-([idmsuxU]*))?\\)")),
298
+ "164": (() => new RegExp("(\\\\+)(\\d+)", "g")),
299
+ "165": ((x, x1) => {
300
+ x.Lower = x1;
301
+ }),
302
+ "166": ((x, x1) => {
303
+ x.Upper = x1;
304
+ }),
305
+ "167": ((x, x1) => {
306
+ x.ASCII = x1;
307
+ }),
308
+ "168": ((x, x1) => {
309
+ x.Alpha = x1;
310
+ }),
311
+ "169": ((x, x1) => {
312
+ x.Digit = x1;
313
+ }),
314
+ "170": ((x, x1) => {
315
+ x.Alnum = x1;
316
+ }),
317
+ "171": ((x, x1) => {
318
+ x.Punct = x1;
319
+ }),
320
+ "172": ((x, x1) => {
321
+ x.Graph = x1;
322
+ }),
323
+ "173": ((x, x1) => {
324
+ x.Print = x1;
325
+ }),
326
+ "174": ((x, x1) => {
327
+ x.Blank = x1;
328
+ }),
329
+ "175": ((x, x1) => {
330
+ x.Cntrl = x1;
331
+ }),
332
+ "176": ((x, x1) => {
333
+ x.XDigit = x1;
334
+ }),
335
+ "177": ((x, x1) => {
336
+ x.Space = x1;
337
+ }),
338
+ "178": (() => new RegExp("(?:^|_)[a-z]", "g")),
339
+ "179": ((x, x1) => (x === x1)),
340
+ "180": ((x, x1) => x.push(x1)),
341
+ "181": (() => Object.prototype),
342
+ "182": ((x) => x.hasOwnProperty),
343
+ "183": ((x, x1, x2) => {
344
+ x[x1] = x2;
345
+ }),
346
+ "184": ((x) => x.toUpperCase()),
347
+ "185": ((x) => x.toLowerCase()),
348
+ "186": (() => Object.prototype),
349
+ "187": ((x) => x.toString),
350
+ "188": ((x, x1) => x.call(x1)),
351
+ "189": (() => Error.captureStackTrace),
352
+ "190": ((x) => Object.isSealed(x)),
353
+ "191": (() => new Error()),
354
+ "192": ((x) => Error.captureStackTrace(x)),
355
+ "193": (() => Math.random()),
356
+ "194": ((x) => x.lastIndex),
357
+ "195": ((x) => x.index),
358
+ "196": ((x) => x.index),
359
+ "197": ((x) => x[0]),
360
+ "198": ((x, x1) => {
361
+ x.lastIndex = x1;
362
+ }),
363
+ "199": ((x, x1) => x.exec(x1)),
364
+ "200": ((x) => x.length),
365
+ "201": ((x, x1) => x.push(x1)),
366
+ "202": ((x, x1) => x.push(x1)),
367
+ "203": ((x) => x.length),
368
+ "204": ((x, x1) => x[x1]),
369
+ "205": ((x, x1) => x[x1]),
370
+ "206": ((x, x1) => new RegExp(x, x1)),
371
+ "207": ((x, x1) => new RegExp(x, x1)),
372
+ "208": ((x) => x.toString(16)),
373
+ "209": ((x) => x.toString(16)),
374
+ "210": ((x) => x.now()),
375
+ "211": ((x) => x.now()),
376
+ "212": ((x) => x.now()),
377
+ "213": ((x) => Math.round(x)),
378
+ "214": ((x) => Math.round(x)),
379
+ "215": ((x, x1) => x.indexOf(x1)),
380
+ "216": ((x, x1) => x.repeat(x1)),
381
+ "217": ((x) => x.length),
382
+ "218": ((x, x1) => x[x1]),
383
+ "219": ((x) => x.length),
384
+ "220": ((x) => x.length),
385
+ "221": ((x, x1) => x.push(x1)),
386
+ "222": ((x, x1) => x[x1]),
387
+ "223": ((x) => x[0]),
388
+ "224": ((x) => x[0]),
389
+ "225": ((f) => (function(arg, arg$2, arg$3) {
390
+ return f(arg, arg$2, arg$3);
391
+ })),
392
+ "226": ((f) => (function(arg) {
393
+ return f(arg);
394
+ })),
395
+ "227": ((f) => (function(arg, arg$2) {
396
+ return f(arg, arg$2);
397
+ })),
398
+ "228": ((f) => (function() {
399
+ return f();
400
+ })),
401
+ "229": ((f) => (function(arg, arg$2) {
402
+ return f(arg, arg$2);
403
+ })),
404
+ "230": ((f) => (function(arg, arg$2, arg$3, arg$4) {
405
+ return f(arg, arg$2, arg$3, arg$4);
406
+ })),
407
+ "231": ((f) => (function(arg, arg$2) {
408
+ return f(arg, arg$2);
409
+ })),
410
+ "232": ((f) => (function() {
411
+ return f();
412
+ })),
413
+ "233": ((f) => (function(arg, arg$2, arg$3, arg$4) {
414
+ return f(arg, arg$2, arg$3, arg$4);
415
+ })),
416
+ "234": ((f) => (function(arg) {
417
+ return f(arg);
418
+ })),
419
+ "235": ((f) => (function(arg, arg$2) {
420
+ return f(arg, arg$2);
421
+ })),
422
+ "236": ((f) => (function(arg) {
423
+ return f(arg);
424
+ })),
425
+ "237": ((f) => (function(arg, arg$2, arg$3) {
426
+ return f(arg, arg$2, arg$3);
427
+ })),
428
+ "238": ((f) => (function(arg) {
429
+ return f(arg);
430
+ })),
431
+ "239": ((f) => (function(arg, arg$2, arg$3, arg$4) {
432
+ return f(arg, arg$2, arg$3, arg$4);
433
+ })),
434
+ "240": ((f) => (function(arg, arg$2) {
435
+ return f(arg, arg$2);
436
+ })),
437
+ "241": ((f) => (function(arg) {
438
+ return f(arg);
439
+ })),
440
+ "242": ((f) => (function(arg, ...rest) {
441
+ return f(arg, rest);
442
+ }))
443
+ }), ({})));
package/main.wasm ADDED
Binary file