Skip to content

Commit ba6a766

Browse files
committed
Merge branch 'main' into edamame
2 parents 580d959 + 60e22b0 commit ba6a766

17 files changed

Lines changed: 1256 additions & 236 deletions

package-lock.json

Lines changed: 790 additions & 213 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
@@ -38,8 +38,8 @@
3838
"grunt-contrib-concat": "^1.0.1",
3939
"grunt-contrib-copy": "^1.0.0",
4040
"grunt-contrib-uglify": "^5.2.1",
41-
"mocha": "^10.0.0",
42-
"nyc": "^15.1.0",
41+
"mocha": "^11.7.5",
42+
"nyc": "^18.0.0",
4343
"prettier": "^1.19.1"
4444
},
4545
"dependencies": {

src-ui/changes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
<div style="margin-bottom: 5px;"><b>Latest types</b> (<em><a href="/list.html" target="_parent">all types</a></em>)</div>
3535
<ul>
3636
<li><a href="/p?edamame" target="_parent">Edamame</a></li>
37+
<li><a href="/p?heavydots" target="_parent">Heavy Dots</a></li>
3738
<li><a href="/p?bhaibahan" target="_parent">Bhai Bahan</a></li>
3839
<li><a href="/p?oasis" target="_parent">Oasis</a></li>
3940
<li><a href="/p?circuitwalk" target="_parent">Circuit Walk</a></li>
4041
<li><a href="/p?cornerch" target="_parent">Corner Chain 隅角チェーン</a></li>
4142
<li><a href="/p?sendai" target="_parent">Sendai-Miyagi 宮城県仙台市</a></li>
42-
<li><a href="/p?keywest" target="_parent">Key West キーウエスト</a></li>
4343
</ul>
4444
</main>
4545
</body>

src-ui/js/ui/KeyPopup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ ui.keypopup = {
246246
keywest: [4, 4],
247247
oasis: [10, 0],
248248
bhaibahan: [10, 0],
249-
edamame: [4, 0]
249+
edamame: [4, 0],
250+
heavydots: [10, 0]
250251
},
251252

252253
//---------------------------------------------------------------------------

src-ui/list.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ <h2 id="title"><span lang="ja">パズルの種類のリスト</span><span lang="
302302
<li data-pid="balloon"></li>
303303
<li data-pid="narrow"></li>
304304
<li data-pid="sendai"></li>
305+
<li data-pid="heavydots"></li>
305306
</ul>
306307
</div>
307308
<div class="lists divides">

src-ui/res/history.en.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,4 @@ circuitwalk: This genre was invented by Parachor.
230230
cornerch: This genre first appeared in Puzzle Communication Nikoli vol. 191.
231231
marutaring: This genre first appeared in Puzzle Communication Nikoli vol. 181.
232232
bhaibahan: This genre was invented by Prasanna Seshadri.
233+
heavydots: This genre was invented by Prasanna Seshadri.

src-ui/res/history.ja.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,3 +230,4 @@ circuitwalk: Parachor氏発案
230230
cornerch: パズル通信ニコリ vol.191より
231231
marutaring: パズル通信ニコリ vol.181より
232232
bhaibahan: Prasanna Seshadri氏発案
233+
heavydots: Prasanna Seshadri氏発案

src-ui/res/rules.en.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,10 @@ bhaibahan: |-
395395
1. The loop cannot branch off or cross itself.
396396
2. When two circles are orthogonally adjacent, the loop goes straight in one and turns in the other.
397397
3. The loop is split into segments, alternating between a segment where the loop turns in every cell and a segment where the loop goes straight in every cell. A number indicates the size of the segment that the number is on.
398+
heavydots: |-
399+
Draw lines over the dotted lines to divide the board into several blocks.
400+
1. A number indicates the size of the block in cells.
401+
2. A block can contain no more than one number.
402+
3. A black dot touches exactly 3 lines, and a white dot touches exactly 4 lines.
403+
4. A regular grid point that's located next to a white/black dot cannot have more than 2 lines touching it.
404+
5. A block cannot contain a 2x2 square of cells.

src/pzpr/variety.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
"",
195195
{ pzprurl: "hashi", kanpen: "hashi", alias: "bridges" }
196196
],
197+
heavydots: [0, 0, "Heavy Dots", "Heavy Dots"],
197198
hebi: [1, 0, "へびいちご", "Hebi-Ichigo", "", { old: "snakes" }],
198199
herugolf: [0, 0, "ヘルゴルフ", "Herugolf"],
199200
heteromino: [0, 0, "ヘテロミノ", "Heteromino", "nawabari"],

src/res/failcode.en.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
"bdCross": "There is a crossing border line.",
6363
"bdCrossBP.kramma": "There is a crossing line on the point.",
6464
"bdCrossExBP.bdblock": "Lines are crossed out of the point.",
65+
"bdCrossExBP.heavydots": "A black dot has more than 3 lines.",
66+
"bdCrossNearBP.heavydots": "A vertex adjacent to a dot has more than 2 lines.",
67+
"bdCrossUnder.heavydots": "A black dot has less than 3 lines.",
68+
"bdCrossUnderWhite.heavydots": "A white dot has less than 4 lines.",
6569
"bdCurveExBP.kramma": "A line curves out of the points.",
6670
"bdDeadEnd": "There is a dead-end line.",
6771
"bdDoorsGt.oneroom": "Two rooms have more than one door between them.",
@@ -89,6 +93,7 @@
8993
"bdwMismatch.bdwalk": "The line goes through different numbers without switching floors.",
9094
"bdwSkipElevator.bdwalk": "The line doesn't change floors at an elevator.",
9195
"bdwTopFloor.bdwalk": "The line goes above the top floor.",
96+
"bk2x2": "There is a 2x2 block of cells belonging to the same region.",
9297
"bkArafEqual.araf": "An area is equal to a number.",
9398
"bkArafTooBig.araf": "An area is larger than both numbers.",
9499
"bkArafTooSmall.araf": "An area is smaller than both numbers.",

0 commit comments

Comments
 (0)