Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/games/acity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ export class ACityGame extends GameBase {
{
num: 5,
default: "#fff",
explanation: "Colour of the first player"
explanation: "Colour of the first player",
player: 1
},
{
num: 6,
default: "#000",
explanation: "Colour of the second player"
explanation: "Colour of the second player",
player: 2
},
],
categories: ["goal>score>eog", "mechanic>network", "mechanic>place", "mechanic>random>setup", "board>shape>rect", "board>connect>rect", "components>pyramids", "components>piecepack"],
Expand Down
6 changes: 4 additions & 2 deletions src/games/almatafl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ export class AlmataflGame extends GameBase {
{
num: 2,
default: "#666",
explanation: "Colour of player 1 (the invaders)"
explanation: "Colour of player 1 (the invaders)",
player: 1
},
{
num: 3,
default: "#fff",
explanation: "Colour of player 2 (the defenders)"
explanation: "Colour of player 2 (the defenders)",
player: 2
},
],
categories: ["goal>royal-capture", "goal>royal-escape", "mechanic>asymmetry", "mechanic>move", "mechanic>stack", "mechanic>differentiate", "board>shape>hex", "board>connect>hex", "components>simple>1per"],
Expand Down
6 changes: 4 additions & 2 deletions src/games/bloqueo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ export class BloqueoGame extends GameBase {
{
num: 4,
default: "#fff",
explanation: "Colour of player 1"
explanation: "Colour of player 1",
player: 1
},
{
num: 5,
default: 9,
explanation: "Colour of player 2"
explanation: "Colour of player 2",
player: 2
},
],
categories: ["goal>score>eog", "mechanic>share", "mechanic>move", "mechanic>place", "mechanic>displace", "board>shape>rect", "board>connect>rect", "components>simple>5c"],
Expand Down
6 changes: 4 additions & 2 deletions src/games/bluestone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export class BluestoneGame extends GameBase {
{
num: 1,
default: 1,
explanation: "Colour of the first player"
explanation: "Colour of the first player",
player: 1
},
{
num: 2,
Expand All @@ -74,7 +75,8 @@ export class BluestoneGame extends GameBase {
{
num: 3,
default: 3,
explanation: "Colour of the second player"
explanation: "Colour of the second player",
player: 2
},
],
};
Expand Down
12 changes: 8 additions & 4 deletions src/games/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ export class LoggerGame extends GameBase {
{
num: 1,
default: 1,
explanation: "Colour of player 1"
explanation: "Colour of player 1",
player: 1
},
{
num: 2,
default: 2,
explanation: "Colour of player 2"
explanation: "Colour of player 2",
player: 2
},
{
num: 3,
Expand All @@ -74,12 +76,14 @@ export class LoggerGame extends GameBase {
{
num: 4,
default: 4,
explanation: "Colour of player 3"
explanation: "Colour of player 3",
player: 3
},
{
num: 5,
default: 5,
explanation: "Colour of player 4"
explanation: "Colour of player 4",
player: 4
},
{
num: 6,
Expand Down
6 changes: 4 additions & 2 deletions src/games/prudh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ export class PrudhGame extends GameBase {
{
num: 2,
default: "#fff",
explanation: "Colour of player 1"
explanation: "Colour of player 1",
player: 1
},
{
num: 3,
default: "#000",
explanation: "Colour of player 2"
explanation: "Colour of player 2",
player: 2
},
],
categories: ["goal>score>eog", "mechanic>move", "mechanic>move>sow", "mechanic>share", "board>shape>rect", "board>connect>rect", "components>simple>1c"],
Expand Down
12 changes: 8 additions & 4 deletions src/games/subdivision.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ export class SubdivisionGame extends GameBase {
{
num: 1,
default: 1,
explanation: "Colour of player 1"
explanation: "Colour of player 1",
player: 1
},
{
num: 2,
default: 2,
explanation: "Colour of player 2"
explanation: "Colour of player 2",
player: 2
},
{
num: 3,
Expand All @@ -89,12 +91,14 @@ export class SubdivisionGame extends GameBase {
{
num: 4,
default: 4,
explanation: "Colour of player 3"
explanation: "Colour of player 3",
player: 3
},
{
num: 5,
default: 5,
explanation: "Colour of player 4"
explanation: "Colour of player 4",
player: 4
},
],
categories: ["goal>score>eog", "mechanic>place", "mechanic>random>setup", "board>shape>rect", "board>connect>rect", "components>pyramids", "other>2+players"],
Expand Down
4 changes: 4 additions & 0 deletions src/schemas/gameinfo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ export interface CustomizationPalette {
* A free text description of what this colour is used for and perhaps tips on customizing it (if it's complicated).
*/
explanation: string;
/**
* The player number, if this is a player color.
*/
player?: number;
}
export interface CustomizationContext {
/**
Expand Down
6 changes: 5 additions & 1 deletion src/schemas/gameinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
"explanation": {
"description": "A free text description of what this colour is used for and perhaps tips on customizing it (if it's complicated).",
"type": "string"
},
"player": {
"description": "The player number, if this is a player color.",
"type": "integer"
}
},
"required": ["default", "num", "explanation"],
Expand Down Expand Up @@ -226,4 +230,4 @@
}
},
"required": ["name", "uid", "version", "playercounts", "categories", "dateAdded"]
}
}
Loading