Install Go: https://golang.org/doc/install Install Sqlite3: https://www.sqlite.org/download.html
go run cmd/villagequest/main.go
go build
go install
villageQuest
go test ./...
go test -cover ./...
golangci-lint run
The objective of the game is to build a village from scratch and manage resources to grow the village until it becomes a city.
- The game is turn-based.
- Each turn represents a year.
- The player can only choose two actions per turn.
Turns are divided into 3 actions:
- Collect resources.
- Player action. a. Build. b. Upgrade. c. Allocate workers. d. Collect taxes.
- Events.
- Food
- People
- Wood
- Stone
- Gold
- House
- Mill
- Farm
- Lumber Mill
- Quarry
- Mine
A pool of events that can happen each turn. Events can be positive or negative. Events can affect resources, buildings, or population. Events can be affected by the player's actions and game's indicators.
- cmd/: Entry point for the CLI application (main.go).
- internal/domain/: Contains aggregates (Resources, Buildings, Population, Events).
- internal/services/: Business logic for managing resources, buildings, and events.