1
0
Fork 0
mirror of https://github.com/imjasonh/chessh synced 2026-07-07 00:33:53 +00:00
chessh/README.md
Jason Hall c79040c509 deploy directly to GCE
Signed-off-by: Jason Hall <jason@chainguard.dev>
2025-09-23 16:42:49 -04:00

48 lines
968 B
Markdown

# CheSSH
A multiplayer chess game playable via SSH.
> [!IMPORTANT]
> It's pronounced like _"chess-ess-aych"_, or _"chesh"_ in your best Sean Connery impression.
## Play the game
```
ssh chessh.app.imjasonh.com
```
![Screenshot of CheSSH gameplay](screenshot.png)
You may need to wait for another player to play against, or join from another terminal if you want to play with yourself.
Players are automatically matched when they connect to the SSH server.
When an opponent disconnects, you win!
## Running locally
```bash
go run ./ --local
```
then
```bash
ssh localhost -p 2222
```
## Deploying
```bash
cd iac/
terraform init
terraform apply
```
This will create:
- A container image containing the app's code
- GCE VM instances running the app container
- TCP Load Balancer for direct SSH access on port 22
- Health checks and auto-healing for high availability
- DNS records pointing to the load balancer
- SSH host key management via Secret Manager