Skip to content

Repository files navigation

Kotlin JDK Gradle CI License: GPL-3.0

Guilds of Bash

Deterministic guild-management simulation prototype with a Command → step(state, rng) → Events boundary.

Evidence

Core model

  • Single authoritative state; changes only via commands.
  • Pure core (no IO, clocks, platform randomness, side effects).
  • Explicit RNG input; draw count is tracked.
  • Events are the only observation channel for adapters.
  • Invariants are checked after each step; violations are emitted as events.
  • Determinism is test-enforced via canonical serialization + hashing (golden replays).

Modules

  • core/ — state, commands/events, reducer, invariants, serialization, RNG
  • core-test/ — deterministic unit/integration, golden replays, invariant checks
  • adapter-console/ — console adapter (IO/parsing/rendering)

Run

./gradlew :adapter-console:run
./gradlew test
./gradlew koverHtmlReport
# -> build/reports/kover/html/index.html
Implemented features
  • Console loop: create/post contracts, day ticks, resolve outcomes, close returns.
  • Autonomous hero pickup/refusal and contract execution.
  • Economy: trophies, fee escrow, sales; rank progression; stability/threat scaling; weekly tax cycle.
  • Fraud pipeline (warn/ban + rumor/reputation scheduling) as deterministic segment.
Prebuilt jar

Latest release artifacts: https://github.com/asketmc/guilds-of-bash/releases/latest

java -jar adapter-console-all.jar
Quality automation

Workflows: .github/workflows/

License

GPL-3.0-only

About

Guild management prototype

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages