@renju-note/quintet 0.8.1 → 0.9.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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "yubessy <yubessy0@gmail.com>"
5
5
  ],
6
6
  "description": "Renju mate solver compilable to WebAssemby",
7
- "version": "0.8.1",
7
+ "version": "0.9.0",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",
package/quintet.d.ts CHANGED
@@ -4,18 +4,18 @@
4
4
  * @param {Uint8Array} blacks
5
5
  * @param {Uint8Array} whites
6
6
  * @param {boolean} black
7
- * @param {number} depth
7
+ * @param {number} max_depth
8
8
  * @returns {Uint8Array | undefined}
9
9
  */
10
- export function solve_vcf(blacks: Uint8Array, whites: Uint8Array, black: boolean, depth: number): Uint8Array | undefined;
10
+ export function solve_vcf(blacks: Uint8Array, whites: Uint8Array, black: boolean, max_depth: number): Uint8Array | undefined;
11
11
  /**
12
12
  * @param {Uint8Array} blacks
13
13
  * @param {Uint8Array} whites
14
14
  * @param {boolean} black
15
- * @param {number} depth
15
+ * @param {number} max_depth
16
16
  * @returns {Uint8Array | undefined}
17
17
  */
18
- export function solve_vct(blacks: Uint8Array, whites: Uint8Array, black: boolean, depth: number): Uint8Array | undefined;
18
+ export function solve_vct(blacks: Uint8Array, whites: Uint8Array, black: boolean, max_depth: number): Uint8Array | undefined;
19
19
  /**
20
20
  * @param {number} x
21
21
  * @param {number} y
package/quintet_bg.js CHANGED
@@ -32,17 +32,17 @@ function getArrayU8FromWasm0(ptr, len) {
32
32
  * @param {Uint8Array} blacks
33
33
  * @param {Uint8Array} whites
34
34
  * @param {boolean} black
35
- * @param {number} depth
35
+ * @param {number} max_depth
36
36
  * @returns {Uint8Array | undefined}
37
37
  */
38
- export function solve_vcf(blacks, whites, black, depth) {
38
+ export function solve_vcf(blacks, whites, black, max_depth) {
39
39
  try {
40
40
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
41
41
  var ptr0 = passArray8ToWasm0(blacks, wasm.__wbindgen_malloc);
42
42
  var len0 = WASM_VECTOR_LEN;
43
43
  var ptr1 = passArray8ToWasm0(whites, wasm.__wbindgen_malloc);
44
44
  var len1 = WASM_VECTOR_LEN;
45
- wasm.solve_vcf(retptr, ptr0, len0, ptr1, len1, black, depth);
45
+ wasm.solve_vcf(retptr, ptr0, len0, ptr1, len1, black, max_depth);
46
46
  var r0 = getInt32Memory0()[retptr / 4 + 0];
47
47
  var r1 = getInt32Memory0()[retptr / 4 + 1];
48
48
  let v2;
@@ -60,17 +60,17 @@ export function solve_vcf(blacks, whites, black, depth) {
60
60
  * @param {Uint8Array} blacks
61
61
  * @param {Uint8Array} whites
62
62
  * @param {boolean} black
63
- * @param {number} depth
63
+ * @param {number} max_depth
64
64
  * @returns {Uint8Array | undefined}
65
65
  */
66
- export function solve_vct(blacks, whites, black, depth) {
66
+ export function solve_vct(blacks, whites, black, max_depth) {
67
67
  try {
68
68
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
69
69
  var ptr0 = passArray8ToWasm0(blacks, wasm.__wbindgen_malloc);
70
70
  var len0 = WASM_VECTOR_LEN;
71
71
  var ptr1 = passArray8ToWasm0(whites, wasm.__wbindgen_malloc);
72
72
  var len1 = WASM_VECTOR_LEN;
73
- wasm.solve_vct(retptr, ptr0, len0, ptr1, len1, black, depth);
73
+ wasm.solve_vct(retptr, ptr0, len0, ptr1, len1, black, max_depth);
74
74
  var r0 = getInt32Memory0()[retptr / 4 + 0];
75
75
  var r1 = getInt32Memory0()[retptr / 4 + 1];
76
76
  let v2;
package/quintet_bg.wasm CHANGED
Binary file