Skip to content

Commit e6ef86f

Browse files
committed
Create 'unrated' property for variants
1 parent 45488a2 commit e6ef86f

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/games/arimaa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class ArimaaGame extends GameBase {
7474
],
7575
variants: [
7676
{ uid: "eee", name: "Endless Endgame", group: "setup" },
77-
{ uid: "free", name: "Arbitrary Setup", group: "setup" },
77+
{ uid: "free", name: "Arbitrary Setup", group: "setup", unrated: true },
7878
],
7979
categories: ["goal>breakthrough", "mechanic>capture", "mechanic>move", "mechanic>coopt", "board>shape>rect", "board>connect>rect", "components>special"],
8080
flags: ["experimental", "perspective", "no-moves", "custom-buttons", "random-start"]

src/schemas/gameinfo.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ export interface Variant {
132132
* If present and `true`, this variant will appear as the preselected default when issuing new challenges, requesting tournaments, etc. See the `uid` field description for how to describe the "no variant" state.
133133
*/
134134
default?: boolean;
135+
/**
136+
* If present and `true`, this variant will force the game to be unrated.
137+
*/
138+
unrated?: boolean;
135139
/**
136140
* If present and `true`, the variant will not appear in the production environment.
137141
*/

src/schemas/gameinfo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
"type": "boolean",
6363
"default": false
6464
},
65+
"unrated": {
66+
"description": "If present and `true`, this variant will force the game to be unrated.",
67+
"type": "boolean",
68+
"default": false
69+
},
6570
"experimental": {
6671
"description": "If present and `true`, the variant will not appear in the production environment.",
6772
"type": "boolean",

0 commit comments

Comments
 (0)