SSHnake is a classic single player Snake game built with Bubbletea served over SSH using Wish!
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-06-14 17:48:29 +04:00
snake chore: cleanup 2024-06-13 14:22:30 +04:00
.gitignore fix: markdown lint warnings 2024-06-13 11:43:28 +04:00
go.mod init 2024-06-13 11:25:42 +04:00
go.sum init 2024-06-13 11:25:42 +04:00
LICENSE chore: adds license 2024-06-14 17:48:29 +04:00
main.go chore: cleanup 2024-06-13 11:50:18 +04:00
README.md Update README.md 2024-06-14 17:23:49 +04:00

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) and ctrl+c to 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 up
  • a (or left arrow): Move the snake left
  • s (or down arrow): Move the snake down
  • d (or right arrow): Move the snake right
  • q: Quit the game