Skip to content

Commit 63ac721

Browse files
committed
Chameleon: Lock rotation to 180 degrees
1 parent d2f34e5 commit 63ac721

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/games/chameleon.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class ChameleonGame extends GameBase {
5252
},
5353
],
5454
categories: ["goal>annihilate", "goal>breakthrough", "mechanic>asymmetry", "mechanic>capture", "mechanic>move", "board>shape>rect", "board>connect>rect", "components>simple>1per"],
55-
flags: ["perspective", "automove"],
55+
flags: ["perspective", "automove", "custom-rotation"],
5656
};
5757
public static coords2algebraic(x: number, y: number): string {
5858
return GameBase.coords2algebraic(x, y, 5);
@@ -531,6 +531,10 @@ export class ChameleonGame extends GameBase {
531531
return resolved;
532532
}
533533

534+
public getCustomRotation(): number | undefined {
535+
return 180;
536+
}
537+
534538
public clone(): ChameleonGame {
535539
return new ChameleonGame(this.serialize());
536540
}

0 commit comments

Comments
 (0)