SSHnake is a classic single player Snake game built with Bubbletea served over SSH using Wish!
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| snake | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
SSHnake
A simple single player snake game written in Go using bubbletea & Served over SSH using Wish.
https://github.com/Gaurav-Gosain/sshnake/assets/55647468/799abd52-3c10-45c0-8ca6-716f3de28571
Note
Also supports vim-like movement keys (
hjkl) andctrl+cto quit the game.
Running the game
Start the server
go run main.go
Connect to the server
ssh -p 23234 localhost
Note
The server will listen on
localhost:23234.
Gameplay
The goal of the game is to guide your snake through the grid and eat the food pellets without running into the walls or itself. Each time you eat a pellet, your snake will grow in length.
You can use the following commands to control the snake:
w(or up arrow): Move the snake upa(or left arrow): Move the snake lefts(or down arrow): Move the snake downd(or right arrow): Move the snake rightq: Quit the game