sshnake

command module
v0.0.0-...-8d69df8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 15 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址