Skip to content

realm-of-ra/hegemony

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hegemony

Basic visual of a game - this is not a representation of the final game. hegemony

Strategic Hex game of world domination.

V0.1.0 Features

  • Players can spawn on a grid. They are added to the game in a concentric circle 10 hexes from each other
  • Players start with 6 squads of 2 around their home base
  • Players move their squads around to try and capture Outposts
  • Players spawn 4 units every cycle from their home base
  • The hex map is a noise grid
  • If a players home base has been held for more than 2 turns, the player is destroyed - their troops remain until they are destroyed.
  • Combat resolution is based on most units

Game Loop

The game revolves around three stages per turn.

Commit stage = 8hrs Reveal stage = 8hrs Resolve stage = 8hrs

Commit stage: Players have to commit their moves to the board via hashing their squads movements.

Reveal stage: Players reveal their hashed moves. If they do not reveal their moves, then the squads unrevealed can be killed by anyone in the resolve stage...

Resolve stage: Combat can be resolved by anyone in this stage. Combat follows a basic rule of total domination for now.

Quick start:

Download Dojo

curl -L https://install.dojoengine.org | bash

Run Katana:

Terminal 1

katana --disable-fee

Terminal 2

Build + Migrate world:

cd contracts
sozo build
sozo migrate

Terminal 3

Start Torii to index changes to the world for the client to consume

torii --world [contract-address]

Terminal 4

cd react-app

pnpm i

pnpm run dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 58.3%
  • Cairo 36.4%
  • Shell 1.9%
  • JavaScript 1.7%
  • CSS 1.3%
  • HTML 0.4%