Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manuartero/storming
Storming BoardGame - An original board game in React
https://github.com/manuartero/storming
board-game react
Last synced: 9 days ago
JSON representation
Storming BoardGame - An original board game in React
- Host: GitHub
- URL: https://github.com/manuartero/storming
- Owner: manuartero
- License: gpl-3.0
- Created: 2023-10-26T14:30:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-22T15:28:54.000Z (about 1 year ago)
- Last Synced: 2024-11-26T07:16:01.134Z (2 months ago)
- Topics: board-game, react
- Language: TypeScript
- Homepage: https://storming-coral.vercel.app
- Size: 11.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Storming
## `useGameContext()`
```js
gameContext {
phase: 'action',
board: {
"-2,-3": {
terrain: 'field',
piece: { type: 'soldier', owner: 'player' }
building: { type: 'town', owner: 'player' }
},
"-1,-3": { ... },
"0,-3": { ... },
...
},
timeline {
current: {
cardType: 'actionCard',
action: 'move',
owner: 'enemy1',
cardId: 'enemy1_move_A'
},
next: [
{ ... }
],
future: [
{ ... }
]
},
players: [
{
player: 'enemy1',
points: 3,
gretestEmpirePoint: false,
},
{ ... }
],
activePlayer: 'enemy1',
activeCard: { // timeline.current
cardType: 'actionCard',
action: 'move',
owner: 'enemy1',
cardId: 'enemy1_move_A'
},build(buildAction){ },
move(moveAction) { },
recruit(recruitAction) { },
plan(planAction) { },
firstPlayer(player) { },
skip() { },
loadSavegame(gameContext) { },
}```