GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - itworks99/hammerclock: Terminal-based chess clock for turn and phase based tabletop games

BranchesTags
Open more actions menu

Latest commit

 

History

75 Commits
75 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.idea
.idea
 
 
cmd/hammerclock
cmd/hammerclock
 
 
internal/hammerclock
internal/hammerclock
 
 
test
test
 
 
.air.toml
.air.toml
 
 
.gitignore
.gitignore
 
 
ARCHITECTURE.MD
ARCHITECTURE.MD
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.MD
CONTRIBUTING.MD
 
 
LICENSE
LICENSE
 
 
README.MD
README.MD
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
hammerclock.iml
hammerclock.iml
 
 
img.png
img.png
 
 
img_1.png
img_1.png
 
 

Repository files navigation

Hammerclock

A terminal-based UI (TUI) chess clock and phase tracker application for tabletop games. It is designed with Warhammer 40K, Age of Sigmar, and other tabletop war games in mind, but can be used for any game that requires a timer and phase tracking.

Features

  • Support for multiple players with customizable player names
  • Tracks and manages turns, game phases, total elapsed time and individual time for each player
  • Bundled predefined rulesets, customizable game rules and phases
  • Logging for game sessions

Hammerclock Screenshot

Hammerclock Screenshot

Installation

Download the latest release from the GitHub repository.

Running

By default, the application searches for the options file (default.json) in the current directory. You can specify a different configuration file by using the -o flag.

./hammerclock                     # Run with default options
./hammerclock -o /path/to/config.json   # Run with custom options

Configuration

The application uses a JSON configuration file (default: default.json) to define its settings. The file has the following basic structure:

{
  "default": 0,
  "rules": [ {} ],
  "playerCount": 2,
  "playerNames": [
    "Player 1",
    "Player 2"
  ],
  "colorPalette": "warhammer",
  "timeFormat": "AMPM",
  "loggingEnabled": true
}

General Configuration Options

Option Description Values
default Index of the default ruleset to use Integer (index in the rules array)
playerCount The number of players in the game Integer
playerNames The names of the players Array of strings (must match playerCount)
colorPalette The UI color theme to use k9s, dracula, monokai, warhammer, killteam
timeFormat Time display format AMPM or 24h
loggingEnabled Enable or disable session logging true or false

Game Rules

The rules section in the configuration file defines the different game rulesets available in Hammerclock. Each ruleset includes:

{
  "rules": [
    {
      "name": "Warhammer 40K (10th Edition)",
      "phases": [
        "Command Phase",
        "Movement Phase",
        "Shooting Phase",
        "Charge Phase",
        "Fight Phase",
        "End Phase"
      ],
      "oneTurnForAllPlayers": false
    },
    {
      "name": "Chess",
      "phases": [],
      "oneTurnForAllPlayers": true
    }
  ]
}

Rule Configuration Options

Option Description Values
name The name of the game ruleset String
phases List of game phases specific to the ruleset Array of strings
oneTurnForAllPlayers Whether all players take one turn together true or false (useful for games like Chess)

Logs

Game logs are written to logs.csv in the application directory, providing a record of game duration, phases, and player times.

Architecture

For details on the application's Model-View-Update (MVU) architecture, see the ARCHITECTURE.MD file.

Contributing

For details on how to contribute to the project, see the CONTRIBUTING.MD file.

License

Hammerclock is open source software. Please see the project repository for licensing information.

About

Terminal-based chess clock for turn and phase based tabletop games

Topics

age-of-sigmarbloodbowlboard-gamesboardgameschess-clockchessclockkill-team-gamekillteamnecromundatabletoptabletop-gamestabletop-gamingturn-basedturn-based-strategywarcrywarhammer

Resources

Readme
GPL-3.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.