Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src-ui/js/ui/MenuConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
case "fillomino":
idname = "fillomino_tri";
break;
case "trizone":
idname = "trizone_ghost";
break;
case "slither":
case "tslither":
case "swslither":
Expand Down
6 changes: 6 additions & 0 deletions src-ui/p.html
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,12 @@ <h2 id="title2">読み込み中です...</h2>
<span>__fillomino_tri__</span>
</label>
</div>
<div class="config" data-config="trizone_ghost">
<label>
<input type="checkbox">
<span>__trizone_ghost__</span>
</label>
</div>
<div class="config" data-config="slither_full">
<label>
<input type="checkbox">
Expand Down
1 change: 1 addition & 0 deletions src-ui/res/p.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"heyapin_overlap": "Pins must overlap 2 or more regions",
"aqre_borders": "Borders must touch exactly one shaded cell",
"fillomino_tri": "Maximum block size is 3",
"trizone_ghost": "Regions can have no clues",
"slither_full": "All points must be visited",
"loop_full": "All cells must be visited",
"variant": "This puzzle uses variant rules",
Expand Down
7 changes: 7 additions & 0 deletions src/puzzle/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@
variant: true,
volatile: true
}); /* Maximum number is 3 */
this.add("trizone_ghost", false, {
variant: true,
volatile: true
}); /* Groups may have no number */
this.add("slither_full", false, {
variant: true,
volatile: true
Expand Down Expand Up @@ -534,6 +538,9 @@
"lineofsight"
].indexOf(pid) >= 0;
break;
case "trizone_ghost":
exec = pid === "trizone";
break;
case "loop_full":
exec =
[
Expand Down
8 changes: 8 additions & 0 deletions src/variety/lapaz.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,20 +265,24 @@
decodePzpr: function(type) {
this.decodeNumber16();
this.decodeEmpty();
this.puzzle.setConfig("trizone_ghost", this.checkpflag("g"));
},
encodePzpr: function(type) {
this.outpflag = this.puzzle.getConfig("trizone_ghost") ? "g" : null;
this.encodeNumber16();
this.encodeEmpty();
}
},
//---------------------------------------------------------
FileIO: {
decodeData: function() {
this.decodeConfigFlag("g", "trizone_ghost");
this.decodeCellQnum();
this.decodeBorderAns(1);
this.decodeCellAns();
},
encodeData: function() {
this.encodeConfigFlag("g", "trizone_ghost");
this.encodeCellQnum();
this.encodeBorderAns(1);
this.encodeCellAns();
Expand Down Expand Up @@ -398,6 +402,10 @@
},
"AnsCheck@trizone": {
checkNoNumber: function() {
if (this.puzzle.getConfig("trizone_ghost")) {
return;
}

var rooms = this.board.roommgr.components;
for (var r = 0; r < rooms.length; r++) {
var room = rooms[r],
Expand Down
Loading