Skip to content

Commit

Permalink
Rename game
Browse files Browse the repository at this point in the history
  • Loading branch information
x-sheep committed Oct 22, 2024
1 parent 70ff60b commit 4df477c
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion src-ui/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h2 id="title"><span lang="ja">パズルの種類のリスト</span><span lang="
<li data-pid="battleship"></li>
<li data-pid="wittgen"></li>
<li data-pid="zabajaba"></li>
<li data-pid="arrows2"></li>
<li data-pid="yajirushi2"></li>
</ul>
</div>
<div class="lists others">
Expand Down
2 changes: 1 addition & 1 deletion src/pzpr/variety.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
aquarium: [0, 0, "アクアプレース", "Aquarium", "aquarium"],
araf: [0, 0, "相ダ部屋", "Araf", "araf"],
armyants: [0, 0, "ぐんたいあり", "Army Ants", "kaero"],
arrows2: [0, 0, "見つめあう矢印2", "見つめあう矢印2", "toichika"],
arukone: [0, 0, "アルコネ", "Arukone", "numlin"],
ayeheya: [0, 1, "∀人∃HEYA", "Ayeheya", "heyawake"],
balance: [0, 0, "Balance Loop", "Balance Loop"],
Expand Down Expand Up @@ -453,6 +452,7 @@
"yajilin",
{ alias: "yajirin-regions" }
],
yajirushi2: [0, 0, "見つめあう矢印2", "Yajirushi 2", "toichika"],
yajisoko: [0, 0, "やじさん倉庫番", "Yajisan-Sokoban", "yosenabe"],
yajitatami: [0, 0, "ヤジタタミ", "Yajitatami"],
yinyang: [0, 0, "しろまるくろまる", "Yin-Yang"],
Expand Down
2 changes: 1 addition & 1 deletion src/res/failcode.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"anTatamiNe.yajitatami": "The number of tatamis are not correct.",
"anTurn.turnaround": "The number of turns is not correct",
"anUnitNe.kuroclone": "The size of the pointed unit is not correct.",
"arAdjPair.arrows2": "Paired arrows are adjacent.",
"arAdjPair.yajirushi2": "Paired arrows are adjacent.",
"arAdjPair.toichika": "There are paired arrows in adjacent countries.",
"arAdjPair.toichika2": "There are paired numbers in adjacent countries.",
"arAgainstWind.nagare": "The direction of the arrow is against the wind.",
Expand Down
28 changes: 14 additions & 14 deletions src/variety/toichika.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
} else {
pzpr.classmgr.makeCustom(pidlist, classbase);
}
})(["toichika", "toichika2", "news", "arrows2"], {
})(["toichika", "toichika2", "news", "yajirushi2"], {
//---------------------------------------------------------
// マウス入力系
MouseEvent: {
Expand Down Expand Up @@ -130,7 +130,7 @@
cell.draw();
}
},
"MouseEvent@arrows2": {
"MouseEvent@yajirushi2": {
inputModes: {
edit: ["number", "empty", "clear"],
play: ["arrow", "objblank", "numexist", "completion", "clear"]
Expand Down Expand Up @@ -168,7 +168,7 @@
enablemake: true,
enableplay: true
},
"KeyEvent@toichika,arrows2": {
"KeyEvent@toichika,yajirushi2": {
moveTarget: function(ca) {
if (ca.match(/shift/)) {
return false;
Expand Down Expand Up @@ -196,7 +196,7 @@
this.key_inputqnum(ca);
}
},
"KeyEvent@arrows2#1": {
"KeyEvent@yajirushi2#1": {
keyinput: function(ca) {
if (this.puzzle.playmode) {
this.key_arrows(ca);
Expand Down Expand Up @@ -263,7 +263,7 @@
}
}
},
"Cell@arrows2": {
"Cell@yajirushi2": {
minnum: function() {
return this.puzzle.editmode ? 0 : 1;
},
Expand Down Expand Up @@ -355,7 +355,7 @@
this.adjustCellArrow(key, d);
}
},
"BoardExec@arrows2": {
"BoardExec@yajirushi2": {
adjustBoardData: function(key, d) {
if (!(key & this.TURNFLIP)) {
return;
Expand Down Expand Up @@ -427,7 +427,7 @@
this.drawBorders();

this.drawDotCells();
if (this.pid === "arrows2") {
if (this.pid === "yajirushi2") {
this.drawQuesCells();
this.drawQuesNumbers();
this.drawCellArrows();
Expand All @@ -450,7 +450,7 @@
this.drawCursor();
}
},
"Graphic@arrows2": {
"Graphic@yajirushi2": {
autocmp: null,
fgcellcolor_func: "qnum",
fontShadecolor: "white",
Expand Down Expand Up @@ -503,7 +503,7 @@
}
}
},
"Graphic@news,arrows2#1": {
"Graphic@news,yajirushi2#1": {
drawMBs: function() {
var g = this.vinc("cell_mb", "auto", true);
g.lineWidth = 1;
Expand Down Expand Up @@ -535,7 +535,7 @@
return cell.getNum() < 0;
}
},
"AreaNumberGraph@arrows2": {
"AreaNumberGraph@yajirushi2": {
enabled: true,
isnodevalid: function(cell) {
return !cell.isNum();
Expand All @@ -555,7 +555,7 @@
}
},

"Encode@arrows2": {
"Encode@yajirushi2": {
decodePzpr: function(type) {
this.decode4Cell();
},
Expand Down Expand Up @@ -737,7 +737,7 @@
for (var c = 0; c < bd.cell.length; c++) {
var cell = bd.cell[c];
isarrow[c] =
cell.isNum() && (this.pid !== "arrows2" || cell.qnum === -1);
cell.isNum() && (this.pid !== "yajirushi2" || cell.qnum === -1);
}
for (var c = 0; c < bd.cell.length; c++) {
var cell0 = bd.cell[c];
Expand All @@ -753,7 +753,7 @@
if (
cell.isnull ||
cell.qnum === -2 ||
(this.pid === "arrows2" && cell.qnum !== -1)
(this.pid === "yajirushi2" && cell.qnum !== -1)
) {
ainfo.push([cell0]);
break;
Expand Down Expand Up @@ -929,7 +929,7 @@
}
},

"AnsCheck@arrows2": {
"AnsCheck@yajirushi2": {
checklist: [
"checkOverArrows",
"checkConnectEmpty",
Expand Down
36 changes: 0 additions & 36 deletions test/script/arrows2.js

This file was deleted.

36 changes: 36 additions & 0 deletions test/script/yajirushi2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* yajirushi2.js */

ui.debug.addDebugData("yajirushi2", {
url: "4/4/.hbhd.j",
failcheck: [
[
"nmArrowLt",
"pzprv3/yajirushi2/4/4/- . . 1 /. . . . /3 . . - /. . . . /. . . . /. . . . /. . . . /4 . . 3 /"
],
[
"nmArrowGt",
"pzprv3/yajirushi2/4/4/- . . 1 /. . . . /3 . . - /. . . . /. . 2 . /4 . . 3 /. . 1 . /. . . . /"
],
[
"bkDivide",
"pzprv3/yajirushi2/4/4/- . . 1 /. . . . /3 . . - /. . . . /. 2 . . /4 . . 3 /. 1 . . /4 . 3 . /"
],
[
"arAdjPair",
"pzprv3/yajirushi2/4/4/- . . 1 /. . . . /3 . . - /. . . . /. 2 . . /4 . . 3 /. 1 . . /4 3 . . /"
],
[
"arAlone",
"pzprv3/yajirushi2/4/4/- . . 1 /. . . . /3 . . - /. . . . /. . . . /4 . . 3 /. 4 . . /4 . . . /"
],
[
"arAlone",
"pzprv3/yajirushi2/4/4/- . . 1 /. . . . /3 . . - /. . . . /. 2 . . /4 . . 3 /. . . . /4 1 . 3 /"
],
[
null,
"pzprv3/yajirushi2/4/4/- . . 1 /. . . . /3 . . - /. . . . /. 2 . . /4 . . 3 /. 1 . . /4 . . 3 /"
]
],
inputs: []
});

0 comments on commit 4df477c

Please sign in to comment.