Skip to content

Commit

Permalink
added spirits pf the wild
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Oct 19, 2024
1 parent 0b59442 commit 48b1320
Show file tree
Hide file tree
Showing 9 changed files with 59 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 @@ -11,6 +11,7 @@ import Wingspan from './games/wingspan/main';
import ForestShuffle from './games/forest-shuffle/main';
import WorldWonders from './games/world-wonders/main';
import SeaSaltPaper from './games/sea-salt-paper/main';
import SpiritsOfTheWild from './games/spirits-of-the-wild/main';

export function getAllGames() {
return [
Expand All @@ -27,6 +28,7 @@ export function getAllGames() {
WorldWonders,
ForestShuffle,
SeaSaltPaper,
SpiritsOfTheWild,
];
}

Expand Down
6 changes: 6 additions & 0 deletions src/games/spirits-of-the-wild/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 SpiritsOfTheWildView() {
return <GameView definition={getDefinition()} />;
}
Binary file added src/games/spirits-of-the-wild/assets/beaver.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/spirits-of-the-wild/assets/owl.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/spirits-of-the-wild/assets/rabbit.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/spirits-of-the-wild/assets/salmon.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/spirits-of-the-wild/assets/turtle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions src/games/spirits-of-the-wild/definition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { GameDef } from '../../api/types/GameDef';
import { WinMode } from '../../api/types/WinMode';
import owl from './assets/owl.png';
import rabbit from './assets/rabbit.png';
import beaver from './assets/beaver.png';
import turtle from './assets/turtle.png';
import salmon from './assets/salmon.png';
export default function getDefinition(): GameDef {
return {
title: 'Spirits of the Wild',
url: 'https://boardgamegeek.com/boardgame/256606/spirits-of-the-wild',
rulesUrl:
'https://s3.amazonaws.com/geekdo-files.com/bgg222578?response-content-disposition=inline%3B%20filename%3D%22SpiritsOfTheWild-Rules-DOM-03-Digital.pdf%22&response-content-type=application%2Fpdf&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJYFNCT7FKCE4O6TA%2F20241019%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241019T181306Z&X-Amz-SignedHeaders=host&X-Amz-Expires=120&X-Amz-Signature=93a304c53762c1f6cd4d9eedfbccf51a7cd9487d4b5d0697fedd401a37473efc',
bgColor: '#0b0738',
fontColor: '#fff',
primaryColor: '#00d1f7',
secondaryColor: '#fff',
playerSizes: [2],
winMode: WinMode.MOST,
rows: [
{
name: 'Owl',
icon: owl,
},
{
name: 'Rabbit',
icon: rabbit,
},
{
name: 'Beaver',
icon: beaver,
},
{
name: 'Salmon',
icon: salmon,
},
{
name: 'Turtle',
icon: turtle,
},
],
};
}
8 changes: 8 additions & 0 deletions src/games/spirits-of-the-wild/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import getDefinition from './definition';
import SpiritsOfTheWildView from './View';

const SpiritsOfTheWild = {
view: SpiritsOfTheWildView,
definition: getDefinition(),
};
export default SpiritsOfTheWild;

0 comments on commit 48b1320

Please sign in to comment.