Skip to content
@devops-games

DevOps Games

DevOps Games

Overview

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.

Evaluation Criteria

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

🎯 Perfect Fit Games

1. Chess/Chess Tournaments

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

2. Stock Market Trading Game

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

3. Diplomacy

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

4. Dungeons & Dragons Campaign Manager

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: 18

Features:

  • Automated dice rolling
  • Character progression tracking
  • Loot distribution via PRs
  • Campaign wikis
  • Battle map states

5. Civilization/4X Strategy

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}
  ]
}

🎮 Good Fit Games

6. Poker Tournaments

Features:

  • Blind commitments via encrypted commits
  • Pot management via smart contracts
  • Tournament brackets
  • Chip tracking
  • Hand history analysis

7. Fantasy Stock Trading

Features:

  • Like fantasy football but for stocks
  • Weekly "earnings gameweeks"
  • Market predictions
  • Sector leagues
  • Educational for investing

8. Code Golf Competitions

Features:

  • Solutions as PRs
  • Automated scoring via Actions
  • Language specific leagues
  • Problem sets as issues
  • Leaderboards in README

9. Werewolf/Mafia

Features:

  • Day/night phases as PR windows
  • Secret roles via encrypted files
  • Voting via PR approvals
  • Game logs in markdown
  • Bot as moderator

10. Risk/Territory Control

Features:

  • Army movements as PRs
  • Battle resolution via Actions
  • Map state in SVG/JSON
  • Alliance management
  • Campaign modes

🏗️ Interesting Experiments

11. Collaborative Story Writing

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

12. City Builder/SimCity

Format:

  • City state as JSON grid
  • Building placement via PRs
  • Resource calculations via Actions
  • Budget management
  • Disaster events via scheduled workflows

13. Trading Card Games (TCG)

Format:

  • Deck lists as YAML
  • Match resolution via Actions
  • Card collection tracking
  • Trading via PR transfers
  • Tournament Swiss rounds

14. Battle Royale (Turn-Based)

Format:

  • Grid-based map
  • Movement/action PRs
  • Shrinking zone via scheduled Actions
  • Loot distribution
  • Last player standing

15. Auction House

Format:

  • Sealed bid auctions via encrypted commits
  • Item listings as issues
  • Bid history tracking
  • Reputation system
  • Category specializations

🚀 Platform Ideas

Git Based Game Engine

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"

DevOps Arena

Concept: Platform hosting multiple git-based games

  • Unified player profiles
  • Cross-game achievements
  • Seasonal tournaments
  • Educational paths
  • Corporate team-building packages

Infrastructure Battles

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

📊 Evaluation Matrix

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

🎯 Best Practices for Git-Based Games

1. State Management

  • Use human readable formats (JSON/YAML)
  • Version state schemas
  • Include validation schemas
  • Implement state migrations

2. Turn Management

  • Clear deadline enforcement
  • Time zones handling
  • Grace periods for technical issues
  • Async-friendly design

3. Validation

  • Comprehensive rule checking
  • Clear error messages
  • Local validation tools
  • Dry-run capabilities

4. Player Experience

  • CLI tools for common actions
  • Web dashboards for visualization
  • Mobile friendly where possible
  • Good documentation

5. Community Features

  • PR comments for discussion
  • Issues for disputes
  • Wikis for strategies
  • Discord integration

🔮 Future Possibilities

Blockchain Integration

  • Commits as blockchain transactions
  • Smart contracts for rule enforcement
  • NFT achievements
  • Decentralized tournaments

AI Integration

  • GitHub Copilot for strategy suggestions
  • AI opponents via Actions
  • Machine learning for balancing
  • Automated tournament commentary

Educational Paths

  • "Learn Git Through Chess"
  • "DevOps Via Civilization"
  • "Finance Through Trading Games"
  • Certification programs
  • School curricula

Enterprise Applications

  • Team building exercises
  • Interview assessments
  • Training simulations
  • Process gamification

🏆 Success Metrics

  • Git skills improvement
  • CI/CD understanding
  • Code review practice
  • Collaboration experience

Pinned Loading

  1. gfl gfl Public

    Git Football League - a revolutionary approach to Fantasy Football using git workflows, pull requests, to manage teams and CI/CD pipelines to enforce the rules.

    TypeScript 2 1

Repositories

Showing 3 of 3 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…