Skip to content

MunafHajir/got-game

Repository files navigation

Game of Thrones: The Board Game

A browser-based strategy game inspired by Game of Thrones. Conquer territories, recruit armies, forge alliances, and claim the Iron Throne.

Features

  • 7 Playable Houses — Stark, Lannister, Targaryen, Baratheon, Greyjoy, Tyrell, Martell, each with unique special abilities and passive bonuses
  • 21 Territories — Hex-grid map of Westeros with terrain types affecting combat
  • Turn-based Strategy — Resource collection, military actions, diplomacy, and special abilities each turn
  • Combat System — 3-round battle engine with troop type matchups, terrain modifiers, and commander events
  • AI Opponents — Three AI personalities (aggressive, defensive, economic) with realistic thinking delays
  • Diplomacy — Propose alliances with other houses; allied players cannot attack each other
  • Seasons — Summer, autumn, winter, spring cycle affecting gameplay
  • Persistent Save — Game state automatically saved to localStorage

Tech Stack

  • React 18 + TypeScript
  • Vite
  • Tailwind CSS (custom dark GoT theme)
  • Zustand + Immer (state management)
  • Google Fonts: Cinzel Decorative + Crimson Text

Getting Started

npm install
npm run dev

Open http://localhost:5173 in your browser.

Build

npm run build

How to Play

Setup

  1. Choose the number of players (2–7) and assign houses
  2. Set each player as Human or AI

Each Turn

  1. Resources — Automatically collected from owned territories at turn start
  2. Military tab
    • Attack — Select one of your territories as origin, then an adjacent enemy/neutral territory to attack or occupy
    • March — Move troops between two adjacent friendly territories (once per turn)
  3. Economic tab
    • Recruit — Select one of your territories on the map, then recruit troops directly into its garrison
  4. Diplomacy tab — Propose alliances with other houses (costs 20 gold)
  5. Special tab — Activate your house's unique ability (subject to cooldown)
  6. Click End Turn when done

Resources

Resource Source Use
Gold Territory income Recruit troops, alliances
Food Territory income Army upkeep (auto-deducted)
Steel Territory income Recruit troops, fortify

Winning

The game ends when one player controls all territories, or is the last player with any territory remaining.

Houses

House Sigil Special Ability
Stark Wolf Winter Fortification — defense bonus
Lannister Lion Gold Cloaks — hire 150 sellswords
Targaryen Dragon Dracarys — devastate enemy garrison by 70%
Baratheon Stag The Fury — +40% attack bonus
Greyjoy Kraken Iron Fleet Raid — steal 40 gold from enemy
Tyrell Rose Call the Bannermen — recruit 150 infantry free
Martell Sun Viper's Kiss — poison an enemy family member

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages