Skip to content

Commit

Permalink
swslither: Removed duplicate tests/definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
despian committed Oct 6, 2024
1 parent e4aa75a commit 3740e93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.
3 changes: 1 addition & 2 deletions src/variety/slither.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@
},

"Cell@swslither": {
maxnum: 6,
minnum: 0
maxnum: 6
},

Board: {
Expand Down
47 changes: 0 additions & 47 deletions test/script/swslither.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,40 +37,6 @@ ui.debug.addDebugData("swslither", {
]
],
inputs: [
/* 回答入力テスト */
{ input: ["newboard,5,1", "playmode"] },
{
input: ["mouse,left, 0,0, 2,0, 2,2, 4,2"],
result:
"pzprv3.1/swslither/1/5/. . . . . /0 0 0 0 0 /0 1 0 0 0 0 /1 0 0 0 0 /0 1 0 0 0 /"
},
{
input: ["mouse,right, 1,0, 4,2"],
result:
"pzprv3.1/swslither/1/5/. . . . . /0 0 0 0 0 /0 -1 0 0 0 0 /-1 0 0 0 0 /0 -1 0 0 0 /"
},
{
input: ["mouse,left, 0,0, 2,0, 2,2, 4,2"],
result:
"pzprv3.1/swslither/1/5/. . . . . /0 0 0 0 0 /0 1 0 0 0 0 /1 0 0 0 0 /0 1 0 0 0 /"
},
{
input: ["mouse,left, 0,0, 2,0, 2,2, 4,2"],
result:
"pzprv3.1/swslither/1/5/. . . . . /0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 /0 0 0 0 0 /"
},
/* LineGraphでエラーしないか確認 */
{
input: [
"mouse,left, 0,0, 8,0",
"mouse,left, 2,2, 10,2",
"mouse,left, 4,0, 4,2",
"mouse,right, 5,2, 4,1"
],
result:
"pzprv3.1/swslither/1/5/. . . . . /0 0 0 0 0 /0 0 -1 0 0 0 /1 1 1 1 0 /0 1 -1 1 1 /"
},
/* 問題入力テスト */
{ input: ["newboard,5,1", "editmode"] },
{
input: [
Expand All @@ -88,19 +54,6 @@ ui.debug.addDebugData("swslither", {
result:
"pzprv3.1/swslither/1/5/- 0 1 5 6 /0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 /0 0 0 0 0 /"
},
{
input: [
"cursor,1,1",
"key,-",
"key,right",
"key,-",
"key,right",
"key,-",
"key,-"
],
result:
"pzprv3.1/swslither/1/5/. - . 5 6 /0 0 0 0 0 /0 0 0 0 0 0 /0 0 0 0 0 /0 0 0 0 0 /"
},
{ input: ["newboard,7,2", "editmode"] },
{
input: [
Expand Down

0 comments on commit 3740e93

Please sign in to comment.