Skip to content

Commit

Permalink
update: Wed 27 Nov 2024 12:09:09 PM CET
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Nov 27, 2024
1 parent c1eee43 commit 17a1eb8
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/allGames.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import SeaSaltPaper from './games/sea-salt-paper/main';
import SpiritsOfTheWild from './games/spirits-of-the-wild/main';
import Faraway from './games/faraway/main';
import SavannahPark from './games/savannah-park/main';
import TheWhiteCastle from './games/the-white-castle/main';

export function getAllGames() {
return [
Expand All @@ -33,6 +34,7 @@ export function getAllGames() {
SpiritsOfTheWild,
Faraway,
SavannahPark,
TheWhiteCastle,
];
}

Expand Down
6 changes: 6 additions & 0 deletions src/games/the-white-castle/View.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import GameView from '../../components/GameView';
import getDefinition from './definition';

export default function TheWhiteCastleView() {
return <GameView definition={getDefinition()} />;
}
Binary file added src/games/the-white-castle/assets/clan-points.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/the-white-castle/assets/coins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/the-white-castle/assets/courtier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/the-white-castle/assets/gardener.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/the-white-castle/assets/resources.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/games/the-white-castle/assets/warrior.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions src/games/the-white-castle/definition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { GameDef } from '../../api/types/GameDef';
import { WinMode } from '../../api/types/WinMode';
import FontUtils from '../../api/utils/FontUtils';
import clanPoints from './assets/clan-points.png';
import coins from './assets/coins.png';
import courtier from './assets/courtier.png';
import gardener from './assets/gardener.png';
import passageOfTime from './assets/passage-of-time.png';
import resources from './assets/resources.png';
import warrior from './assets/warrior.png';

export default function getDefinition(): GameDef {
return {
title: 'The White Castle',
url: 'https://boardgamegeek.com/boardgame/371942/the-white-castle',
rulesUrl:
'https://www.thamesandkosmos.co.uk/wp-content/uploads/2023/07/WHITE_CASTLE_ENG.pdf',
bgColor: '#e7daca',
fontColor: '#342d38',
primaryColor: '#3d3544',
secondaryColor: '#fad668',
fontFamily: FontUtils.CLASSIC,
stripeColor: '#cfb5a6',
playerSizes: [1, 2, 3, 4],
winMode: WinMode.MOST,
rows: [
{
name: 'Clan Points',
icon: clanPoints,
description: 'Clan points that you earned during the game.',
},
{
name: 'Passage of Time',
icon: passageOfTime,
description: 'Get points for your passage of time track.',
},
{
name: 'Gardener',
icon: gardener,
description: 'Score the points for your gardeners on the board.',
},
{
name: 'Warrior',
icon: warrior,
description: 'Score the points for your warriors on the board.',
},
{
name: 'Courtier',
icon: courtier,
description: 'Score the points for your courtiers on the board.',
},
{
name: 'Resources',
icon: resources,
description: 'Get points for resources you have left.',
},
{
name: 'Coins',
icon: coins,
description: 'Get 1 point for every 5 coins you have.',
},
],
};
}
8 changes: 8 additions & 0 deletions src/games/the-white-castle/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import getDefinition from './definition';
import TheWhiteCastleView from './View';

const TheWhiteCastle = {
view: TheWhiteCastleView,
definition: getDefinition(),
};
export default TheWhiteCastle;

0 comments on commit 17a1eb8

Please sign in to comment.