Following on from the idea of git based Fantasy Football League, this is a space that encourages exploring the possibility of using git workflows, pull requests, and CI/CD as game mechanics.
Games work best with this approach when they have:
- ✅ Turn based or asynchronous gameplay
- ✅ State changes that can be validated
- ✅ Benefits from transparency/audit trails
- ✅ Educational value for developers
- ✅ Can be represented as text/data files
- ✅ Community/multiplayer aspects
Why it works:
- Perfect turn based nature
- Every move is a PR
- Board state as JSON/PGN
- Git history shows entire game
- Branching for analysis/variations
Implementation:
{
"board": "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR",
"move": "e2-e4",
"turn": "black",
"history": ["e2-e4", "e7-e5", "Ng1-f3"]
}Features:
- GitHub Actions validates legal moves
- Branch protection prevents cheating
- Time controls via PR deadlines
- Tournament brackets in markdown
- ELO ratings tracked in git
Why it works:
- Daily/weekly trades as PRs
- Portfolio state in JSON
- Market data updates via Actions
- Complete audit trail
- Educational for fintech
Implementation:
{
"portfolio": {
"cash": 10000,
"holdings": {
"AAPL": { "shares": 10, "buyPrice": 150.00 },
"GOOGL": { "shares": 5, "buyPrice": 2800.00 }
}
},
"trades": [
{"action": "BUY", "symbol": "MSFT", "shares": 20, "price": 300.00}
]
}Features:
- Real market data via APIs
- Risk analysis in CI/CD
- Profit/loss tracking
- Trading competitions
- Options/futures as advanced features
Why it works:
- Simultaneous turn resolution
- Secret orders via encrypted commits
- Treaties as smart contracts
- Perfect for async play
- Negotiation in PR comments
Implementation:
# orders/season-1905-spring.yml
orders:
- unit: "A Paris"
action: "Move to Burgundy"
- unit: "F Brest"
action: "Support A Paris to Burgundy"
treaties:
- with: "Germany"
type: "non-aggression"
expires: "1906-fall"Features:
- Orders encrypted until deadline
- GitHub Actions resolves conflicts
- Map visualization generated
- Alliance tracking
- Historical recreation scenarios
Why it works:
- Character sheets as YAML/JSON
- Adventure logs in markdown
- Dice rolls via Actions
- Campaign history preserved
- Collaborative storytelling
Implementation:
character:
name: "Thorin Ironforge"
class: "Fighter"
level: 5
hp: 48
inventory:
- "Longsword +1"
- "Plate Armor"
abilities:
STR: 18
DEX: 12
session_log:
- action: "Attack goblin"
roll: "1d20+5"
result: 18Features:
- Automated dice rolling
- Character progression tracking
- Loot distribution via PRs
- Campaign wikis
- Battle map states
Why it works:
- Turn based empire building
- Complex state management
- Tech trees as dependencies
- Resource management
- Diplomatic actions
Implementation:
{
"empire": "Rome",
"turn": 45,
"cities": [
{"name": "Rome", "population": 5, "production": "Colosseum"}
],
"technologies": ["Bronze Working", "Writing"],
"units": [
{"type": "Legion", "position": [10, 15], "health": 100}
]
}Features:
- Blind commitments via encrypted commits
- Pot management via smart contracts
- Tournament brackets
- Chip tracking
- Hand history analysis
Features:
- Like fantasy football but for stocks
- Weekly "earnings gameweeks"
- Market predictions
- Sector leagues
- Educational for investing
Features:
- Solutions as PRs
- Automated scoring via Actions
- Language specific leagues
- Problem sets as issues
- Leaderboards in README
Features:
- Day/night phases as PR windows
- Secret roles via encrypted files
- Voting via PR approvals
- Game logs in markdown
- Bot as moderator
Features:
- Army movements as PRs
- Battle resolution via Actions
- Map state in SVG/JSON
- Alliance management
- Campaign modes
Format:
- Each PR adds a chapter/paragraph
- Branching narratives literally use git branches
- Voting on plot directions via PR reviews
- Character development tracking
- Multiple endings via tags
Format:
- City state as JSON grid
- Building placement via PRs
- Resource calculations via Actions
- Budget management
- Disaster events via scheduled workflows
Format:
- Deck lists as YAML
- Match resolution via Actions
- Card collection tracking
- Trading via PR transfers
- Tournament Swiss rounds
Format:
- Grid-based map
- Movement/action PRs
- Shrinking zone via scheduled Actions
- Loot distribution
- Last player standing
Format:
- Sealed bid auctions via encrypted commits
- Item listings as issues
- Bid history tracking
- Reputation system
- Category specializations
Concept: Create a framework for git-based games
# game-config.yml
game:
type: "turn-based-strategy"
players: 2-8
validation:
- rule: "budget_limit"
- rule: "turn_order"
scoring:
engine: "points-based"
state:
format: "json"Concept: Platform hosting multiple git-based games
- Unified player profiles
- Cross-game achievements
- Seasonal tournaments
- Educational paths
- Corporate team-building packages
Concept: DevOps concepts as game mechanics
- Kubernetes Kingdoms: Manage clusters as kingdoms
- Docker Dungeon: Container orchestration puzzle game
- Terraform Tycoon: Infrastructure as real estate
- Jenkins Journey: Pipeline building adventure
- Ansible Armies: Configuration management warfare
| Game Type | Git Fit | Educational | Complexity | Audience |
|---|---|---|---|---|
| Chess | Perfect | High | Low | Broad |
| Stock Trading | Perfect | Very High | Medium | Developers/Finance |
| Diplomacy | Excellent | High | High | Strategy Gamers |
| D&D Manager | Excellent | Medium | High | RPG Fans |
| Poker | Good | Medium | Low | Broad |
| Code Golf | Perfect | Very High | Low | Developers |
| TCG | Good | Low | Medium | Gamers |
| Story Writing | Excellent | High | Low | Creative |
- Use human readable formats (JSON/YAML)
- Version state schemas
- Include validation schemas
- Implement state migrations
- Clear deadline enforcement
- Time zones handling
- Grace periods for technical issues
- Async-friendly design
- Comprehensive rule checking
- Clear error messages
- Local validation tools
- Dry-run capabilities
- CLI tools for common actions
- Web dashboards for visualization
- Mobile friendly where possible
- Good documentation
- PR comments for discussion
- Issues for disputes
- Wikis for strategies
- Discord integration
- Commits as blockchain transactions
- Smart contracts for rule enforcement
- NFT achievements
- Decentralized tournaments
- GitHub Copilot for strategy suggestions
- AI opponents via Actions
- Machine learning for balancing
- Automated tournament commentary
- "Learn Git Through Chess"
- "DevOps Via Civilization"
- "Finance Through Trading Games"
- Certification programs
- School curricula
- Team building exercises
- Interview assessments
- Training simulations
- Process gamification
- Git skills improvement
- CI/CD understanding
- Code review practice
- Collaboration experience