Skip to content

Commit e575bcb

Browse files
committed
Merge branch 'develop'
2 parents c2ec6aa + f7f061f commit e575bcb

2 files changed

Lines changed: 24 additions & 3 deletions

File tree

locales/en/apgames.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,10 @@
17011701
"cartwheel": {
17021702
"name": "Cartwheel",
17031703
"description": "Allows 2x4 switches but forbids rare 4x4 pinwheels and cartwheels (by Luis Bolaños Mures)"
1704+
},
1705+
"pinwheel": {
1706+
"name": "Pinwheel",
1707+
"description": "Allows 2x4 switches but forbids rare 4x4 pinwheels (by Luis Bolaños Mures)"
17041708
}
17051709
},
17061710
"mixtour": {

src/games/minefield.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class MinefieldGame extends GameBase {
6262
{ uid: "#board", },
6363
{ uid: "size-13", group: "board" },
6464
{ uid: "size-15", group: "board" },
65-
{ uid: "cartwheel" },
65+
{ uid: "pinwheel" },
6666
],
6767
categories: ["goal>connect", "mechanic>place", "board>shape>rect", "board>connect>rect", "components>simple>1per"],
6868
flags: ["pie", "automove"]
@@ -200,7 +200,7 @@ export class MinefieldGame extends GameBase {
200200
]
201201
});
202202
// dist 3
203-
if (!this.variants.includes("cartwheel")) {
203+
if (!this.variants.includes("cartwheel") && !this.variants.includes("pinwheel")) {
204204
lst.push({
205205
name: "switch3",
206206
deltas: [
@@ -249,8 +249,25 @@ export class MinefieldGame extends GameBase {
249249
{dx: 0, dy: 2, payload: null},
250250
]
251251
});
252+
} else if (this.variants.includes("pinwheel")) {
253+
// pinwheel
254+
lst.push({
255+
name: "pinwheel",
256+
deltas:[
257+
{dx: 1, dy: 0, payload: "e"},
258+
{dx: 2, dy: 1, payload: "f"},
259+
{dx: 2, dy: 2, payload: "e"},
260+
{dx: 1, dy: 3, payload: "f"},
261+
{dx: 0, dy: 3, payload: "e"},
262+
{dx: -1, dy: 2, payload: "f"},
263+
{dx: -1, dy: 1, payload: "e"},
264+
{dx: 0, dy: 1, payload: null},
265+
{dx: 1, dy: 1, payload: null},
266+
{dx: 1, dy: 2, payload: null},
267+
{dx: 0, dy: 2, payload: null},
268+
]
269+
});
252270
}
253-
254271
return lst;
255272
}
256273

0 commit comments

Comments
 (0)