3 unstable releases

0.2.1 Jan 17, 2024
0.2.0 Oct 18, 2022
0.1.0 Oct 17, 2022

#154 in Games

Download history 20/week @ 2024-01-15 19/week @ 2024-02-19 31/week @ 2024-02-26 70/week @ 2024-03-11 34/week @ 2024-04-01

104 downloads per month
Used in sea_battle_cli_player

GPL-2.0-or-later

135KB
3.5K SLoC

Sea battle backend

Build Status Crate Documentation

A backend HTTP server for the Sea Battle game. The binary included in this crate can be used to deploy a server that will allow players to connect to play together.

The actix-web library is used to spawn HTTP server. The games are encapsulated inside websockets.

An official server is running at https://seabattleapi.communiquons.org/

Installation

You can install the backend using the following command:

cargo install sea_battle_backend

Usage

sea_battle_backend -l 0.0.0.0:7000

Note: a reverse-proxy must be used to protect

Client

A command-line client is available in the sea_battle_cli_player crate.

Dependencies

~19–33MB
~575K SLoC