Skip to content

Commit

Permalink
Added Sticky Brown and Sticky Dark Brown Variants to getVariantDescri…
Browse files Browse the repository at this point in the history
…ptions.ts
  • Loading branch information
Fioralor authored Nov 16, 2024
1 parent dfe0b5b commit d09c1fa
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions packages/scripts/src/createVariantsJSON/getVariantDescriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ export function getVariantDescriptions(
...getFunnelsVariants(suitsToCreateVariantsFor, basicVariantSuits),
...getChimneysVariants(suitsToCreateVariantsFor, basicVariantSuits),
...getSudokuVariants(suitsToCreateVariantsFor, basicVariantSuits),
...getStickyBrownVariants(),
...getStickyDarkBrownVariants(),
];

return variantDescriptions.filter((variantDescription) =>
Expand Down Expand Up @@ -1248,6 +1250,40 @@ function getSudokuVariants(
return variantDescriptions;
}

function getStickyBrownVariants(): readonly VariantDescription[] {
return [
{
name: "Sticky Brown (6 Suits)",
suits: ["Brown", "Red N", "Yellow N", "Green N", "Blue N", "Purple N"],
},
{
name: "Sticky Brown (5 Suits)",
suits: ["Brown", "Red N", "Yellow N", "Green N", "Blue N"],
},
{
name: "Sticky Brown (4 Suits)",
suits: ["Brown", "Red N", "Green N", "Blue N"],
},
{
name: "Sticky Brown (3 Suits)",
suits: ["Brown", "Red N", "Blue N"],
},
];
}

function getStickyDarkBrownVariants(): readonly VariantDescription[] {
return [
{
name: "Sticky Dark Brown (6 Suits)",
suits: ["Red", "Orange D2", "Yellow", "White", "Brown"],
},
{
name: "Sticky Dark Brown (5 Suits)",
suits: ["Red", "Orange D2", "Yellow", "White", "Brown", "Cocoa Rainbow"],
},
];
}

function maxRequiredVariantEfficiency(variant: Variant): number {
const requiredEfficiencies = VALID_NUM_PLAYERS.map((numPlayers) => {
const options = {
Expand Down

0 comments on commit d09c1fa

Please sign in to comment.