mirror of
https://github.com/imjasonh/chessh
synced 2026-07-07 00:33:53 +00:00
No description
|
|
||
|---|---|---|
| iac | ||
| .gitignore | ||
| chess.go | ||
| CLAUDE.md | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| multiplayer.go | ||
| README.md | ||
CheSSH
A multiplayer chess game playable via SSH.
Play the game
ssh chessh.imjasonh.dev
You may need to wait for another player to play against, or join from another terminal to play against yourself.
Usage
# Run SSH server locally
go run ./ -port 2222
# Connect to server
ssh localhost -p 2222
# (In another terminal) Connect another player session
ssh localhost -p 2222
Players are automatically matched when they connect to the SSH server.
When an opponent disconnects, you win!
Deploying
cd iac/
terraform init
terraform apply
This will create a GKE Autopilot cluster, Cloud Run service, host key secret, GCLB, routing rules, etc., to be able to host the server on the internet.