Skip to content

Commit fb039d6

Browse files
committed
1 parent 1ddbfc3 commit fb039d6

File tree

5 files changed

+51
-46
lines changed

5 files changed

+51
-46
lines changed

game/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"@lefun/game": "^2.3.0-alpha.0"
2525
},
2626
"devDependencies": {
27-
"@lefun/core": "2.3.0-alpha.0",
28-
"@lefun/game": "2.3.0-alpha.0",
27+
"@lefun/core": "2.4.0-alpha.0",
28+
"@lefun/game": "2.4.0-alpha.0",
2929
"@rollup/plugin-commonjs": "^21.0.1",
3030
"@rollup/plugin-node-resolve": "^13.0.6",
3131
"@typescript-eslint/eslint-plugin": "^7.11.0",

game/src/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ const gameSettings: GameSettings = [
370370
key: "sameSpace",
371371
label: "Egg overlap",
372372
options: [
373-
{ value: "share", label: "Allow", default: true },
373+
{ value: "share", label: "Allow", isDefault: true },
374374
{ value: "jump", label: "Jump over", shortLabel: "Jump" },
375375
{ value: "nostop", label: "Must roll" },
376376
],
@@ -380,7 +380,7 @@ const gameSettings: GameSettings = [
380380
key: "mountainShape",
381381
label: "Column height",
382382
options: [
383-
{ value: "tall", label: "Modern", default: true },
383+
{ value: "tall", label: "Modern", isDefault: true },
384384
{ value: "classic", label: "Classic" },
385385
],
386386
help: "Height of the columns. Modern is taller and better calibrated than Classic.",
@@ -393,7 +393,7 @@ const gameSettings: GameSettings = [
393393
{
394394
value: "after",
395395
label: "End of the turn",
396-
default: true,
396+
isDefault: true,
397397
},
398398
{ value: "never", label: "Never", shortLabel: "Probs: Never" },
399399
],
@@ -926,8 +926,9 @@ export const autoMove: AutoMove<ChickenrollGameState, ChickenrollGame> = ({
926926
}
927927
};
928928

929-
const gamePlayerSettings: GamePlayerSettings = {
930-
color: {
929+
const gamePlayerSettings: GamePlayerSettings = [
930+
{
931+
key: "color",
931932
label: "Color",
932933
options: [
933934
// NOTE those colors are duplicated in the game definition
@@ -942,7 +943,7 @@ const gamePlayerSettings: GamePlayerSettings = {
942943
type: "color",
943944
exclusive: true,
944945
},
945-
};
946+
];
946947

947948
const playerStats: GameStats = [
948949
{

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"private": true,
44
"devDependencies": {
55
"prettier": "^3.2.4"
6+
},
7+
"pnpm": {
8+
"overrides": {
9+
}
610
}
711
}

pnpm-lock.yaml

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"author": "Simon Lemieux",
2121
"license": "ISC",
2222
"devDependencies": {
23-
"@lefun/core": "2.3.0-alpha.0",
24-
"@lefun/game": "2.3.0-alpha.0",
25-
"@lefun/ui": "2.3.0-alpha.0",
26-
"@lefun/ui-testing": "2.3.0-alpha.0",
23+
"@lefun/core": "2.4.0-alpha.0",
24+
"@lefun/game": "2.4.0-alpha.0",
25+
"@lefun/ui": "2.4.0-alpha.0",
26+
"@lefun/ui-testing": "2.4.0-alpha.0",
2727
"@rollup/plugin-commonjs": "^21.0.1",
2828
"@rollup/plugin-node-resolve": "^13.0.6",
2929
"@rollup/plugin-typescript": "^11.1.5",

0 commit comments

Comments
 (0)