@gagandeep023/spore-field
v0.1.0
Published
A turn-based territory control browser game - grow spores, spread across the field, outcompete the AI
Downloads
22
Maintainers
Readme
@gagandeep023/spore-field
Grow. Spread. Outcompete.
A turn-based territory control browser game on a hex-like grid. Place spores, spread across the field, sacrifice outliers to power up your next move, and outcompete the AI opponent.
Install
npm install @gagandeep023/spore-fieldUsage
import { SporeField } from '@gagandeep023/spore-field/frontend';
import '@gagandeep023/spore-field/frontend/styles.css';
function App() {
return (
<SporeField
onGameOver={({ winner, playerPercent, aiPercent, turns }) => {
console.log(`${winner} won with ${playerPercent}% in ${turns} turns`);
}}
/>
);
}How to Play
- Tap an empty cell to place a spore.
- After both you and the AI place, all spores spread to adjacent empty cells.
- Higher-nutrient spores spread first and win conflicts.
- Sacrifice your own cells to boost your next placement's nutrient level.
- If the AI controls 70% of the field, you lose instantly.
- When the field fills up, whoever controls more territory wins.
License
MIT
