Skip to content

Commit 4689b51

Browse files
committed
Add sowing-round
1 parent dbefd0b commit 4689b51

3 files changed

Lines changed: 38 additions & 15 deletions

File tree

package-lock.json

Lines changed: 24 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"vite": "^4.4.5"
3232
},
3333
"dependencies": {
34-
"@abstractplay/renderer": "^1.0.0-ci-16977088517.0",
34+
"@abstractplay/renderer": "^1.0.0-ci-21051058249.0",
3535
"@types/html2canvas": "^0.5.35",
3636
"@zerodevx/svelte-toast": "^0.9.6",
3737
"gif.js.optimized": "^1.0.1",

src/components/Board.svelte

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@
113113
"pyramid-hex",
114114
"The bottom half of a hexhex board stretched so the left half of the top row overlaps with the right half",
115115
],
116+
[
117+
"sowing-round",
118+
"A circular board intended for certain sowing games."
119+
],
116120
]);
117121
type ValidOption =
118122
| "hide-labels"
@@ -191,7 +195,8 @@
191195
whichWidth = "abs";
192196
} else if (
193197
$state.board.style.startsWith("circular-") ||
194-
$state.board.style.startsWith("conical-hex")
198+
$state.board.style.startsWith("conical-hex") ||
199+
$state.board.style === "sowing-round"
195200
) {
196201
whichWidth = "abs";
197202
} else if (
@@ -290,6 +295,13 @@
290295
height: 4,
291296
};
292297
symmetryLocked = false;
298+
} else if ($state.board.style === "sowing-round") {
299+
$state.board = {
300+
style: $state.board.style,
301+
width: 8,
302+
height: 1,
303+
};
304+
symmetryLocked = false;
293305
} else if ($state.board.style.startsWith("hex-of")) {
294306
$state.board = {
295307
style: $state.board.style,

0 commit comments

Comments
 (0)