Skip to content

Commit

Permalink
meidjuluk: Allow snum on cells with clues
Browse files Browse the repository at this point in the history
  • Loading branch information
x-sheep committed Oct 15, 2024
1 parent ba1f0a0 commit 2efa04b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/variety/snakeegg.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,14 @@
}
},
"Cell@meidjuluk": {
minnum: 1
supportQnumAnum: true,
minnum: 1,
isNum: function() {
return this.isEmpty();
},
noNum: function() {
return this.isValid();
}
},

Board: {
Expand Down
16 changes: 16 additions & 0 deletions test/script/meidjuluk.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,21 @@ ui.debug.addDebugData("meidjuluk", {
null,
"pzprv3/meidjuluk/4/6/3 . . 1 * . /5 * 2 4 * . /1 . . 1 2 . /. 1 2 . . . /0 0 1 0 0 /0 0 0 0 0 /0 0 1 1 0 /1 0 1 1 0 /1 0 1 1 0 0 /0 0 1 0 0 0 /0 1 1 0 0 0 /6/1/2/3/4/5/6/0 0 0 0 0 0 /"
]
],
inputs: [
{
input: ["newboard,2,2", "editmode", "key,3"],
result: "pzprv3/meidjuluk/2/2/3 . /. . /0 /0 /0 0 /i/0 0 0 0 0 0 0 0 0 /"
},
{
input: ["playmode,number", "mouse,leftx2,1.5,1.5"],
result:
"pzprv3/meidjuluk/2/2/3 . /. . /0 /0 /0 0 /i/0 0 0 0 0 0 0 0 0 /[,,,1] . /. . /"
},
{
input: ["key,shift,shift,5"],
result:
"pzprv3/meidjuluk/2/2/3 . /. . /0 /0 /0 0 /i/0 0 0 0 0 0 0 0 0 /[,5,,1] . /. . /"
}
]
});

0 comments on commit 2efa04b

Please sign in to comment.