@logic-pad/core 0.1.3 → 0.1.4
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.
|
@@ -27,15 +27,14 @@ export default class MyopiaBTModule extends BTModule {
|
|
|
27
27
|
while (grid.isInBound(pos.x, pos.y)) {
|
|
28
28
|
const curTile = grid.getTile(pos.x, pos.y);
|
|
29
29
|
if (connected) {
|
|
30
|
-
if (tile === curTile) {
|
|
30
|
+
if (tile === curTile || curTile === BTTile.NonExist) {
|
|
31
31
|
min += 1;
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
34
|
connected = false;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
if (getOppositeColor(tile) === curTile
|
|
38
|
-
curTile === BTTile.NonExist) {
|
|
37
|
+
if (getOppositeColor(tile) === curTile) {
|
|
39
38
|
stopped = true;
|
|
40
39
|
break;
|
|
41
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logic-pad/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "rimraf dist/ && bun run codegen && bunx --bun tsc && bun run typegen",
|
|
45
|
-
"lint": "eslint
|
|
45
|
+
"lint": "cd ../../ && eslint ./packages/logic-core --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
46
46
|
"codegen": "bun ./scripts/genEntry.ts && bun ./scripts/genImports.ts",
|
|
47
47
|
"typegen": "bun ./scripts/genTypes.ts",
|
|
48
48
|
"prepublishOnly": "bun run build"
|