A terminal Snake game that supports multiple players to play together online.

GoSnake

A Snake game that supports multiple players to play together online. The game is written in go language and does not use other third-party libraries except the standard library.

Run the binary directly

  • Download the corresponding version of the executable file
# on macos
curl https://raw.githubusercontent.com/imstevez/gosnacks/main/build/gosnake_darwin > ./gosnake
# on windows
curl https://raw.githubusercontent.com/imstevez/gosnacks/main/build/gosnake_windows > ./gosnake
# on linux
curl https://raw.githubusercontent.com/imstevez/gosnacks/main/build/gosnake_linux > ./gosnake
  • Grant permission
chmod +x ./gosnake
  • Run as a player
# play on my server
./gosnake

# or play on the server be deployed by yourself or others
./gosnake [-server-addr <game server address>]

When you don't specify the server-addr parameter, the server I deployed will be used. If you want to use your own server, then you need to run a server on the specified address like this:

  • Run a game server
./gosnake -srv [-listen-addr <listen address>]

Compile from source

Need to install go^1.15 and make tools

# build for current os
make build

# or build for all platforms (darwin, windows, linux)
make build_all

The builded files will be in the directory ./build/

Owner
StevE Zhang
Just Code
StevE Zhang
Similar Resources

Play chess in your terminal

Play chess in your terminal

Gambit Chess board in your terminal. Warning gambit does not have many features at the moment. I plan on adding a chess engine, mouse support, timers,

Dec 21, 2022

Simple rule based matchmaking for your online game with support of Redcon(RESP) protocol.

 Simple rule based matchmaking for your online game with support of Redcon(RESP) protocol.

Simple Matchmaking Simple rule based matchmaking for your online game with support of Redcon(RESP) protocol. 1- Simple Match Rule Easiest usage of sys

Jan 4, 2023

This is an extremely basic 2 player online game.

myba This is an extremely basic 2 player online game. How to play Player one moves with WASD, player 2 moves with UHJK. Once both players are either h

Dec 7, 2021

Online multiplayer board game server written in Go, using WebSockets.

BfH Server The Battle for Hermannia is a board game created as a gift by the father of hermannm, a developer of this project. This digital edition of

Nov 7, 2022

Arkanoid game in Go using Ebiten game engine with ECS.

Arkanoid game in Go using Ebiten game engine with ECS.

Arkanoid-go Arkanoid game in Go using Ebiten game engine with ECS. You must have Git LFS installed when cloning the repository to download assets. See

Oct 9, 2022

AircraftWar - a game powered by Go+ spx game engine

AircraftWar - a game powered by Go+ spx game engine

AircraftWar - a game powered by Go+ spx game engine How to run Download Go+ and build it. See https://github.com/goplus/gop#how-to-build. Download thi

Jan 5, 2022

FlappyCalf - a game powered by Go+ spx game engine

FlappyCalf - a game powered by Go+ spx game engine

FlappyCalf - a game powered by Go+ spx game engine How to run Download Go+ and build it. See https://github.com/goplus/gop#how-to-build. Download this

Nov 6, 2022

FlappyCalf - a game powered by Go+ spx game engine

FlappyCalf - a game powered by Go+ spx game engine

FlappyCalf - a game powered by Go+ spx game engine How to run Download Go+ and build it. See https://github.com/goplus/gop#how-to-build. Download this

Nov 6, 2022

MazePlay - a game powered by Go+ spx game engine

MazePlay - a game powered by Go+ spx game engine

MazePlay - a game powered by Go+ spx game engine How to run Download Go+ and build it. See https://github.com/goplus/gop#how-to-build. Download this g

Dec 16, 2021
This is a "simple" game server. Main functionalities are matching and establishing a connection between players
This is a

Game Server This is a "simple" game server. Main functionalities are matching and establishing a connection between players How to Run? run the server

Aug 28, 2022
Snake game made in Go! 🐍
Snake game made in Go! 🐍

Snake This is a Terminal based snake game made by tristangoossens. Please star this repository to help my first big project grow! Documentation can be

Nov 16, 2022
Snake game implemented in golang

little_pineapple(Snake game implemented in golang) 贪吃蛇golang实现 Snake game implemented in golang 数据结构:链表&数组 Data structures used: linked list&array 使用方

Aug 18, 2020
A simple desktop snake game

A simple desktop snake game that's supposed to run on Linux and Mac OS (maybe eventually on Windows). Work on the game is currently in progress - so i

Oct 12, 2021
snake game implementation using 2d array in Go
snake game implementation using 2d array in Go

Snake Game Implementation Snake game implementation in Go using a 2-dimensional array. Demo Install download the package git clone https://github.com/

May 14, 2022
Command line Snake Game built with Golang

Commandline Snake Game Commandline Snake Game built with Golang. Took about a whole day to complete. Had breaks inbetween progress made. Assumptions H

Jan 22, 2022
A golang Snake game in webassembly

snake A simple Snake game in Go WebAssembly, loading each grid tile from a diffe

Nov 20, 2022
lets play a game

Flashbots is a research and development organization formed to mitigate the negative externalities and existential risks posed by miner-extractable value (MEV) to smart-contract blockchains.

Jul 9, 2021
A creativity challenging word game to play with friends.

Friend Fest A creativity challenging word game to play with friends. Process Phase 1: Role Assignment Every player is given a unique number from (0, N

Feb 10, 2022
♛♔ Play chess against UCI engines in your terminal.
♛♔ Play chess against UCI engines in your terminal.

uchess ♛♔ Play chess in your terminal. Introduction uchess is an interactive terminal chess client designed to allow gameplay and move analysis in con

Nov 17, 2022