Skip to content

Commit dbefd0b

Browse files
committed
Add pentagonal boards
1 parent e3e2140 commit dbefd0b

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.7.2] - 2025-08-14
9+
10+
### Added
11+
12+
- Added the new `pentagonal` and `pentagonal-bluestone` boards. The generator for these sorts of boards is a little slow at larger sizes. If larger boards ever become heavily used, I'll look at efficiency improvements.
13+
814
## [1.7.1] - 2025-04-06
915

1016
### Fixed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "abstractplay-designer",
33
"private": true,
4-
"version": "1.7.1",
4+
"version": "1.7.2",
55
"type": "module",
66
"scripts": {
77
"dev": "set NODE_ENV=development && vite",
@@ -31,7 +31,7 @@
3131
"vite": "^4.4.5"
3232
},
3333
"dependencies": {
34-
"@abstractplay/renderer": "^1.0.0-ci-14180700580.0",
34+
"@abstractplay/renderer": "^1.0.0-ci-16977088517.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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
"vertex-fanorona",
5151
"A vertex grid with specific connections, originally for the game Fanorona",
5252
],
53+
[
54+
"pentagonal",
55+
"A pentagonal board where the centre cell has only five connections"
56+
],
57+
[
58+
"pentagonal-bluestone",
59+
"A pentagonal board where the outer nodes are modified slightly, developed specifically for the game Bluestone"
60+
],
5361
[
5462
"hex-odd-f",
5563
"A rectangular grid of hexes with flat tops and the odd-numbered columns outdented",
@@ -148,6 +156,7 @@
148156
} else if (
149157
$state.board.style.startsWith("squares") ||
150158
$state.board.style.startsWith("vertex") ||
159+
$state.board.style.startsWith("pentagonal") ||
151160
$state.board.style.startsWith("hex-odd") ||
152161
$state.board.style.startsWith("hex-even") ||
153162
$state.board.style.startsWith("hex-slanted") ||
@@ -159,6 +168,7 @@
159168
if (
160169
$state.board.style.startsWith("squares") ||
161170
$state.board.style.startsWith("vertex") ||
171+
$state.board.style.startsWith("pentagonal") ||
162172
$state.board.style.startsWith("hex-odd") ||
163173
$state.board.style.startsWith("hex-even") ||
164174
$state.board.style.startsWith("hex-slanted") ||
@@ -266,6 +276,13 @@
266276
} else {
267277
$state.board.snubStart = undefined;
268278
}
279+
} else if ($state.board.style.startsWith("pentagonal")) {
280+
$state.board = {
281+
style: $state.board.style,
282+
width: 6,
283+
height: 6,
284+
blocked: canBlock ? $state.board.blocked : undefined,
285+
};
269286
} else if ($state.board.style.startsWith("circular-")) {
270287
$state.board = {
271288
style: $state.board.style,

0 commit comments

Comments
 (0)